Re: Test suite best practices ?
Le 03/06/2013 10:58, Neil Williams a écrit :
> One thing which hasn't been mentioned so far, always ensure that your
> test suite only runs if DEB_BUILD_OPTIONS="nocheck" is *not* set.
> ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
> # Code to run the package test suite.
> endif
Note that dh_auto_test (which seems to be the canonical way to call
tests during build) actually already checks that:
(...)
if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~
/nocheck/) {
exit 0;
}
Reply to: