[libnet-akismet-perl] 01/07: Don't run author tests during builds and autopkgtest.

gregor herrmann gregoa at debian.org
Sat Jun 24 14:34:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libnet-akismet-perl.

commit 0b0a072efe997a7c22e3aef7bf45fc6d26d7287c
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Jun 24 16:24:20 2017 +0200

    Don't run author tests during builds and autopkgtest.
    
    One of them fails with perl 5.26, and they shouldn't be run by us anyway.
---
 debian/rules                     | 7 +++++--
 debian/tests/pkg-perl/smoke-skip | 5 +++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 657234c..e7fbe59 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,10 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+SKIP_TESTS=$(shell cat debian/tests/pkg-perl/smoke-skip)
+TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))
 
 %:
 	dh $@
+
+override_dh_auto_test:
+	dh_auto_test -- TEST_FILES="$(TEST_FILES)"
diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
index c93ca1e..442f745 100644
--- a/debian/tests/pkg-perl/smoke-skip
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -1,3 +1,4 @@
-# podcheck looks for file from source package and is not necessary as
-# as-installed test anyways, so skip it.
+# podcheck looks for file from source package and is an author test anyway
 t/Net-Akismet-podcheck.t
+# this is an author test as well
+t/Net-Akismet-coverage.t

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-akismet-perl.git



More information about the Pkg-perl-cvs-commits mailing list