* 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
=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}) {