regression-test
Kris Kennaway
kris at FreeBSD.org
Fri Jun 20 17:18:23 UTC 2008
Thierry Thomas wrote:
> Le Ven 20 jui 08 à 3:54:04 +0200, Garrett Cooper <yanefbsd at gmail.com>
> écrivait :
>
>>>> I try to enable regression-test when possible, but the current
>>>> implementation is a post-build target, and some ports' testings need a
>>>> post-install target. In these cases, I enclose the regression-test
>>>> target between .ifdef MAINTAINER_MODE.
>>> I'd say those ports are broken; conceptually, you should be testing whether
>>> or not your port works *before* you install it, not after.
>>>
>>> Kris
>> Agreed. Functionality verification is a requirement for acceptance in
>> any release structure, not the other way around.
>
> That's not always so simple:
>
> - when you run the configure script, it may define some paths (e.g.
> DATADIR), and some files under this directory may be required for the
> program to be run;
>
> - some runtime dependencies may be required;
>
> - the program may be unusable without some additional steps taken into
> account by a pkg-install script;
Apart from #2 (which I addressed previously), that just means that your
regression-test target and/or port patches need to be more complicated
to prepare the tests.
Kris
More information about the freebsd-ports
mailing list