From: Joey Hess Date: Thu, 12 Mar 2009 23:03:50 +0000 (-0400) Subject: dh_auto_test: Support DEB_BUILD_OPTIONS=nocheck. Closes: #519374 X-Git-Tag: 7.2.6~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=121a54e21f8bfa6784b2e8c40171e4800ffd1718;p=debhelper.git dh_auto_test: Support DEB_BUILD_OPTIONS=nocheck. Closes: #519374 --- diff --git a/debian/changelog b/debian/changelog index 37eff5c..9f7ee04 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ debhelper (7.2.6) UNRELEASED; urgency=low * Examples files updated to add dh_bugfiles, remove obsolete dh_python. + * dh_auto_test: Support DEB_BUILD_OPTIONS=nocheck. Closes: #519374 -- Joey Hess Thu, 12 Mar 2009 19:00:35 -0400 diff --git a/dh_auto_test b/dh_auto_test index baccd10..ea2d7fd 100755 --- a/dh_auto_test +++ b/dh_auto_test @@ -37,10 +37,19 @@ or override the any standard parameters that dh_auto_test passes. =back +=head1 NOTES + +If the DEB_BUILD_OPTIONS environment variable contains "nocheck", no +tests will be performed. + =cut init(); +if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~ /nocheck/) { + exit 0; +} + if (-e "Makefile" || -e "makefile" || -e "GNUmakefile") { $ENV{MAKE}="make" unless exists $ENV{MAKE}; foreach my $target (qw{test check}) {