[libnet-http-perl] 01/02: Skip tests which try to get internet access during build and autopkgtest.
gregor herrmann
gregoa at debian.org
Tue Aug 15 16:13:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libnet-http-perl.
commit d55829ec4f872c4f8b1be75cd5317e2f71893ea4
Author: gregor herrmann <gregoa at debian.org>
Date: Tue Aug 15 18:11:00 2017 +0200
Skip tests which try to get internet access during build and autopkgtest.
---
debian/rules | 6 ++++++
debian/tests/pkg-perl/smoke-skip | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/debian/rules b/debian/rules
index 27111bf..835b099 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
+SKIP_TESTS=$(shell cat debian/tests/pkg-perl/smoke-skip)
+TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))
+
%:
dh $@
@@ -10,3 +13,6 @@ override_dh_auto_install:
dh_auto_install
# empty/boilerplate manpage
$(RM) -v $(TMP)/usr/share/man/man3/Net::HTTP::Methods.3pm
+
+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
new file mode 100644
index 0000000..31618fc
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -0,0 +1,4 @@
+# need internet access
+t/live-https.t
+t/live.t
+t/rt-112313.t
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-http-perl.git
More information about the Pkg-perl-cvs-commits
mailing list