[libanyevent-http-perl] 01/05: Don't run tests which try to connect to the internet.

gregor herrmann gregoa at debian.org
Fri Jul 15 14:32:51 UTC 2016


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

gregoa pushed a commit to branch master
in repository libanyevent-http-perl.

commit 03145074017c57a2977b7e88e2d8fae2a2f4a5c6
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Jul 15 16:28:20 2016 +0200

    Don't run tests which try to connect to the internet.
    
    Thanks: Chris Lamb for the bug report.
    Closes: #830355
---
 debian/rules                     | 6 ++++++
 debian/tests/pkg-perl/smoke-skip | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..c536268 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,10 @@
 #!/usr/bin/make -f
 
+SKIP_TESTS=$(shell cat debian/tests/pkg-perl/smoke-skip)
+TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))
+
 %:
 	dh $@
+
+override_dh_auto_test:
+	http_proxy= 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..177db37
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -0,0 +1,2 @@
+t/01_basic.t
+t/02_ip_literals.t

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



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