r31863 - in /trunk/libpoe-component-client-http-perl/debian: changelog patches/disable_network_tests.patch patches/series rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Tue Mar 10 18:01:52 UTC 2009


Author: gregoa
Date: Tue Mar 10 18:01:48 2009
New Revision: 31863

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=31863
Log:
New patch disable_network_tests.patch: don't run tests which need internet
access if NOINTERNET is set.

Added:
    trunk/libpoe-component-client-http-perl/debian/patches/disable_network_tests.patch
Modified:
    trunk/libpoe-component-client-http-perl/debian/changelog
    trunk/libpoe-component-client-http-perl/debian/patches/series
    trunk/libpoe-component-client-http-perl/debian/rules

Modified: trunk/libpoe-component-client-http-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpoe-component-client-http-perl/debian/changelog?rev=31863&op=diff
==============================================================================
--- trunk/libpoe-component-client-http-perl/debian/changelog (original)
+++ trunk/libpoe-component-client-http-perl/debian/changelog Tue Mar 10 18:01:48 2009
@@ -38,6 +38,8 @@
     to >= 0.25.
   * debian/rules: unset http_proxy and friends, otherwise the tests can fail.
   * Refresh patch legacy_libscan_customisation_in_Makefile_PL.patch.
+  * New patch disable_network_tests.patch: don't run tests which need internet
+    access if NOINTERNET is set.
 
  -- Antonio Radici <antonio at dyne.org>  Sat, 21 Feb 2009 13:46:01 +0000
 

Added: trunk/libpoe-component-client-http-perl/debian/patches/disable_network_tests.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpoe-component-client-http-perl/debian/patches/disable_network_tests.patch?rev=31863&op=file
==============================================================================
--- trunk/libpoe-component-client-http-perl/debian/patches/disable_network_tests.patch (added)
+++ trunk/libpoe-component-client-http-perl/debian/patches/disable_network_tests.patch Tue Mar 10 18:01:48 2009
@@ -1,0 +1,17 @@
+Author: gregor herrmann <gregoa at debian.org>
+Description: disable internet tests if NOINTERNET is set.
+
+--- a/t/57_pravus_progress.t
++++ b/t/57_pravus_progress.t
+@@ -3,6 +3,11 @@
+ use warnings;
+ use strict;
+ 
++if ($ENV{NOINTERNET} ) {
++  use Test::More skip_all => "Tests disabled that need internet access.";
++}
++
++
+ use Test::More tests => 2;
+ use HTTP::Request::Common qw(GET);
+ use POE;

Modified: trunk/libpoe-component-client-http-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpoe-component-client-http-perl/debian/patches/series?rev=31863&op=diff
==============================================================================
--- trunk/libpoe-component-client-http-perl/debian/patches/series (original)
+++ trunk/libpoe-component-client-http-perl/debian/patches/series Tue Mar 10 18:01:48 2009
@@ -1,2 +1,3 @@
 legacy_libscan_customisation_in_Makefile_PL.patch
 fix_WHATIS_entry.patch
+disable_network_tests.patch

Modified: trunk/libpoe-component-client-http-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpoe-component-client-http-perl/debian/rules?rev=31863&op=diff
==============================================================================
--- trunk/libpoe-component-client-http-perl/debian/rules (original)
+++ trunk/libpoe-component-client-http-perl/debian/rules Tue Mar 10 18:01:48 2009
@@ -4,7 +4,7 @@
 
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
-	http_proxy= HTTP_PROXY= CGI_HTTP_PROXY= dh build
+	http_proxy= HTTP_PROXY= CGI_HTTP_PROXY= NOINTERNET=1 dh build
 	touch $@
 
 clean: unpatch




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