]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_auto_test: Support DEB_BUILD_OPTIONS=nocheck. Closes: #519374
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 12 Mar 2009 23:03:50 +0000 (19:03 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 12 Mar 2009 23:03:50 +0000 (19:03 -0400)
debian/changelog
dh_auto_test

index 37eff5c046460c8584cd984f4ab0cde0571ede31..9f7ee041d6e2d13184f9f4d1ca08944ae6e73cbe 100644 (file)
@@ -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 <joeyh@debian.org>  Thu, 12 Mar 2009 19:00:35 -0400
 
index baccd10af59b7233903a9baa84e0e15539f352c4..ea2d7fdc2c70b18c92a822d0cb5112beacf2fc9e 100755 (executable)
@@ -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}) {