[libprotocol-acme-perl] 03/05: Skrip tests which need network access both in testsuite and autopkgtests

Salvatore Bonaccorso carnil at debian.org
Thu Jul 21 20:09:32 UTC 2016


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

carnil pushed a commit to branch master
in repository libprotocol-acme-perl.

commit ec8a8984122c28294520dedc931af05bfea3e0f1
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Thu Jul 21 21:59:39 2016 +0200

    Skrip tests which need network access both in testsuite and autopkgtests
    
    Rework how we do that. Upstream has patched the tests to respect
    NO_NETWORK environment variable. Set this to run the testsuite and set
    it as well in the environment for the autopkgtests. Drop unneeded
    patch to make NO_NETWORK available in t/04-load_key_crypt.t.
---
 debian/patches/series                 |  1 -
 debian/patches/tests_no_network.patch | 19 -------------------
 debian/tests/pkg-perl/smoke-env       |  1 +
 debian/tests/pkg-perl/smoke-skip      |  3 ---
 4 files changed, 1 insertion(+), 23 deletions(-)

diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 0027920..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-tests_no_network.patch
diff --git a/debian/patches/tests_no_network.patch b/debian/patches/tests_no_network.patch
deleted file mode 100644
index 174e3d6..0000000
--- a/debian/patches/tests_no_network.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Description: Skip tests which do need network access
-Origin: vendor
-Forwarded: no
-Author: Salvatore Bonaccorso <carnil at debian.org>
-Last-Update: 2016-07-06
-
---- a/t/04-load_key_crypt.t
-+++ b/t/04-load_key_crypt.t
-@@ -15,6 +15,10 @@ use Protocol::ACME::Test;
- 
- my $tests = 5;
- 
-+if ( defined $ENV{NO_NETWORK} ) {
-+  plan skip_all => 'Network tests disabled';
-+}
-+
- # Testing the Crypt::OpenSSL::RSA version of the library
- 
- if ( ! $Protocol::ACME::Test::rsa || ! $Protocol::ACME::Test::bignum )
diff --git a/debian/tests/pkg-perl/smoke-env b/debian/tests/pkg-perl/smoke-env
new file mode 100644
index 0000000..6d5ee6a
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-env
@@ -0,0 +1 @@
+NO_NETWORK=1
diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
deleted file mode 100644
index 5d64eb5..0000000
--- a/debian/tests/pkg-perl/smoke-skip
+++ /dev/null
@@ -1,3 +0,0 @@
-# Do not run the tests in t/04-load_key_crypt.t since they require
-# network access. Skip this test.
-t/04-load_key_crypt.t

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



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