summaryrefslogtreecommitdiff
path: root/dh_auto_test
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-03-12 19:03:50 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-03-12 19:03:50 -0400
commit121a54e21f8bfa6784b2e8c40171e4800ffd1718 (patch)
treebfcab0f467e305254ff0f391a217e16112929e29 /dh_auto_test
parent3215b78589e1b75ecaed40796effd119b323946c (diff)
dh_auto_test: Support DEB_BUILD_OPTIONS=nocheck. Closes: #519374
Diffstat (limited to 'dh_auto_test')
-rwxr-xr-xdh_auto_test9
1 files changed, 9 insertions, 0 deletions
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}) {