diff options
Diffstat (limited to 'dh_auto_test')
-rwxr-xr-x | dh_auto_test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dh_auto_test b/dh_auto_test index baccd10a..ea2d7fdc 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}) { |