Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2008 20:30:21 +0200
From:      Kris Kennaway <kris@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: regression-test
Message-ID:  <485AA5BD.6080302@FreeBSD.org>
In-Reply-To: <20080619164702.GA22382@eborcom.com>
References:  <676047.76296.qm@web32706.mail.mud.yahoo.com>	<20080619163501.GB12160@atarininja.org> <20080619164702.GA22382@eborcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485AA5BD.6080302>