From owner-freebsd-ports@FreeBSD.ORG Thu Jun 19 18:30:21 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA2F91065689 for ; Thu, 19 Jun 2008 18:30:21 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4078C8FC17 for ; Thu, 19 Jun 2008 18:30:21 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <485AA5BD.6080302@FreeBSD.org> Date: Thu, 19 Jun 2008 20:30:21 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <676047.76296.qm@web32706.mail.mud.yahoo.com> <20080619163501.GB12160@atarininja.org> <20080619164702.GA22382@eborcom.com> In-Reply-To: <20080619164702.GA22382@eborcom.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: regression-test X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 18:30:21 -0000 Tom Hukins wrote: > On Thu, Jun 19, 2008 at 12:35:01PM -0400, Wesley Shields wrote: >> Which is why I would recommend wrapping them in checks for >> MAINTAINER_MODE or something similar. This way you, as the maintainer, >> can turn them on when you want but they don't affect anything else. > > That's true for the OS versions and architectures that a maintainer > builds on. > > I'm very fond of CPAN's culture of build, test then install for all > modules. Sure, it takes time, but it's helped me find problems on > machines I use that others, including the author, haven't encountered. > > I didn't know Ports had such options until this thread: I'm tempted to > enable regression tests whenever I build ports to benefit from the > extra sanity checking that tests provide. Please do. The only difficult situation becomes when ports require extra dependencies to run the self-tests. You can either add them unconditionally as a BUILD_DEPENDS (but this is more compilation for users who don't run the tests), or make it conditional on PACKAGE_BUILDING. Kris