[libhttp-oai-perl] 01/04: Add patch to skip tests which do a DNS query.

gregor herrmann gregoa at debian.org
Fri Jul 15 19:02:32 UTC 2016


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

gregoa pushed a commit to branch master
in repository libhttp-oai-perl.

commit f2a70ebff0f524a0a5bea71f551a44f98df6f27d
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Jul 15 20:55:19 2016 +0200

    Add patch to skip tests which do a DNS query.
    
    Thanks: Chris Lamb for the bug report.
    Closes: #830356
---
 debian/patches/network-tests.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/network-tests.patch b/debian/patches/network-tests.patch
new file mode 100644
index 0000000..b6a0617
--- /dev/null
+++ b/debian/patches/network-tests.patch
@@ -0,0 +1,29 @@
+Description: Skip more tests which need network access.
+ These tests at least try to do a DNS lookup.
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/830356
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2016-07-15
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=116184
+Bug: https://rt.cpan.org/Ticket/Display.html?id=116184
+
+--- a/t/listidentifiers.t
++++ b/t/listidentifiers.t
+@@ -17,6 +17,11 @@
+ 
+ ok(1);
+ 
++my $dotest = defined($ENV{"HTTP_OAI_NETTESTS"});
++
++SKIP : {
++	skip "Skipping net tests (set HTTP_OAI_NETTESTS env. variable to enable)", 2 unless $dotest;
++
+ my $ha = HTTP::OAI::Harvester->new(baseURL=>'http://domain.invalid/');
+ $r = $ha->ListRecords(metadataPrefix=>'oai_dc', from=>'2005-01-01');
+ my $uri = URI->new($r->request->uri);
+@@ -24,3 +29,5 @@
+ ok($args{metadataPrefix} eq 'oai_dc' && $args{'from'} eq '2005-01-01','Request arguments');
+ 
+ ok(1);
++
++}
diff --git a/debian/patches/series b/debian/patches/series
index 48ad9d6..5091721 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-pod-errors.patch
+network-tests.patch

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



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