regression-test

Kris Kennaway kris at FreeBSD.org
Thu Jun 19 18:30:21 UTC 2008


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


More information about the freebsd-ports mailing list