[libnet-frame-device-perl] 07/08: Skip tests that need access to a network device

gregor herrmann gregoa at debian.org
Mon Jul 13 17:13:55 UTC 2015


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

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

commit 5d38cbb82b23413e82a16f2c2acddeee4b7bf77e
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Jul 13 19:11:40 2015 +0200

    Skip tests that need access to a network device
    
    during build and autopkgtest.
    
    Thanks: Chris West (Faux) for the bug report and further debugging.
    Closes: #792221
---
 debian/rules                     | 7 +++++++
 debian/tests/pkg-perl/skip-smoke | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/debian/rules b/debian/rules
index 7537e47..38a0191 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,16 @@
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
+# skip tests that need access to network device
+SKIP_TESTS = $(shell cat debian/tests/pkg-perl/skip-smoke)
+TEST_FILES = $(filter-out $(SKIP_TESTS), $(shell echo t/*.t))
+
 %:
 	dh $@
 
+override_dh_auto_test:
+	dh_auto_test -- TEST_FILES="$(TEST_FILES)"
+
 override_dh_auto_install:
 	dh_auto_install
 	$(RM) -v $(TMP)/usr/bin/*.pl
diff --git a/debian/tests/pkg-perl/skip-smoke b/debian/tests/pkg-perl/skip-smoke
new file mode 100644
index 0000000..c0b308f
--- /dev/null
+++ b/debian/tests/pkg-perl/skip-smoke
@@ -0,0 +1,3 @@
+# need access to network device
+t/04-new-default.t
+t/05-new-target.t

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



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