r68387 - in /trunk/liblivejournal-perl/debian: changelog control patches/network_tests.patch patches/series rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Fri Feb 11 20:21:47 UTC 2011


Author: gregoa
Date: Fri Feb 11 20:15:58 2011
New Revision: 68387

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=68387
Log:
Turn off tests that need a network connection (patch + debian/rules).

Added:
    trunk/liblivejournal-perl/debian/patches/network_tests.patch
Modified:
    trunk/liblivejournal-perl/debian/changelog
    trunk/liblivejournal-perl/debian/control
    trunk/liblivejournal-perl/debian/patches/series
    trunk/liblivejournal-perl/debian/rules

Modified: trunk/liblivejournal-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblivejournal-perl/debian/changelog?rev=68387&op=diff
==============================================================================
--- trunk/liblivejournal-perl/debian/changelog (original)
+++ trunk/liblivejournal-perl/debian/changelog Fri Feb 11 20:15:58 2011
@@ -20,6 +20,7 @@
   * Add build dependency on libwww-perl.
   * Split out the changes from -2 into a proper patch.
   * Add 2 patches (spelling mistakes, pod errors).
+  * Turn off tests that need a network connection (patch + debian/rules).
 
  -- gregor herrmann <gregoa at debian.org>  Fri, 11 Feb 2011 17:13:46 +0100
 

Modified: trunk/liblivejournal-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblivejournal-perl/debian/control?rev=68387&op=diff
==============================================================================
--- trunk/liblivejournal-perl/debian/control (original)
+++ trunk/liblivejournal-perl/debian/control Fri Feb 11 20:15:58 2011
@@ -1,7 +1,7 @@
 Source: liblivejournal-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7)
+Build-Depends: debhelper (>= 7.0.50~)
 Build-Depends-Indep: perl, libwww-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: gregor herrmann <gregoa at debian.org>

Added: trunk/liblivejournal-perl/debian/patches/network_tests.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblivejournal-perl/debian/patches/network_tests.patch?rev=68387&op=file
==============================================================================
--- trunk/liblivejournal-perl/debian/patches/network_tests.patch (added)
+++ trunk/liblivejournal-perl/debian/patches/network_tests.patch Fri Feb 11 20:15:58 2011
@@ -1,0 +1,23 @@
+Description: add variable to turn off network tests
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2011-02-11
+
+--- liblivejournal-perl-1.3.orig/t/lj.t
++++ liblivejournal-perl-1.3/t/lj.t
+@@ -2,12 +2,14 @@
+ 
+ # $Id: lj.t,v 1.2 2001/03/15 23:11:31 archon Exp $
+ 
+-BEGIN { $| = 1; print "1..3\n"; }
++BEGIN { $| = 1; my $tests = ( $ENV{NO_NETWORK} ? 1 : 3 ); print "1..$tests\n"; }
+ END {print "not ok 1\n" unless $loaded;}
+ use LiveJournal;
+ $loaded = 1;
+ print "ok 1\n";
+ 
++exit if $ENV{NO_NETWORK};
++
+ # we just want to try login()
+ my $login = "bogus";
+ my $pass = "bogus";

Modified: trunk/liblivejournal-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblivejournal-perl/debian/patches/series?rev=68387&op=diff
==============================================================================
--- trunk/liblivejournal-perl/debian/patches/series (original)
+++ trunk/liblivejournal-perl/debian/patches/series Fri Feb 11 20:15:58 2011
@@ -1,3 +1,4 @@
 date.patch
 spelling.patch
 pod.patch
+network_tests.patch

Modified: trunk/liblivejournal-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblivejournal-perl/debian/rules?rev=68387&op=diff
==============================================================================
--- trunk/liblivejournal-perl/debian/rules (original)
+++ trunk/liblivejournal-perl/debian/rules Fri Feb 11 20:15:58 2011
@@ -2,3 +2,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_test:
+	NO_NETWORK=1 dh_auto_test




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