[libhttp-tiny-perl] 03/04: Add patch to run new test which needs internet only conditionally.

gregor herrmann gregoa at debian.org
Sat Jul 19 20:39:52 UTC 2014


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

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

commit 2d43e58b47c6e9244ec6279a83cf345a87d32ae5
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Jul 19 22:37:47 2014 +0200

    Add patch to run new test which needs internet only conditionally.
---
 debian/patches/series               |  1 +
 debian/patches/tests-internet.patch | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e7a562f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+tests-internet.patch
diff --git a/debian/patches/tests-internet.patch b/debian/patches/tests-internet.patch
new file mode 100644
index 0000000..f8254b5
--- /dev/null
+++ b/debian/patches/tests-internet.patch
@@ -0,0 +1,19 @@
+Description: run new test which needs internet access only conditionally
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-07-19
+
+--- a/t/002_croakage.t
++++ b/t/002_croakage.t
+@@ -35,8 +35,10 @@
+   like ($err, qr/\Q$usage{$method}\E/, join("|",@$c) );
+ }
+ 
++if ( $ENV{HAVE_INTERNET} ) {
+ my $res =  $http->get("http://www.example.com/", { headers => { host => "www.example2.com" } } );
+ like( $res->{content}, qr/'Host' header/, "Providing a Host header is fatal" );
++}
+ 
+ done_testing;
+ 

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



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