[libio-socket-multicast6-perl] 10/11: Add patch to skip tests which need internet access.
gregor herrmann
gregoa at debian.org
Tue Jun 9 18:15:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libio-socket-multicast6-perl.
commit d906b0d982b066ea7d20e846f3ad17514a5245ba
Author: gregor herrmann <gregoa at debian.org>
Date: Tue Jun 9 20:13:44 2015 +0200
Add patch to skip tests which need internet access.
---
debian/patches/no-network.patch | 48 +++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 3 +++
3 files changed, 52 insertions(+)
diff --git a/debian/patches/no-network.patch b/debian/patches/no-network.patch
new file mode 100644
index 0000000..e941399
--- /dev/null
+++ b/debian/patches/no-network.patch
@@ -0,0 +1,48 @@
+Description: skip tests which need internet access
+Origin: vendor
+Forwarded: not needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-06-09
+
+--- a/t/30send.t
++++ b/t/30send.t
+@@ -18,7 +18,10 @@
+ ReuseAddr=>1);
+ ok( $sock4, "Create IPv4 multicast socket" );
+
++SKIP: {
++skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
+ is($sock4->send( 'Hello World!'), 12, "Sent 12 bytes on IPv4 socket." );
++}
+
+
+
+@@ -30,4 +33,7 @@
+ ReuseAddr=>1);
+ ok( $sock6, "Create IPv6 multicast socket" );
+
++SKIP: {
++skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
+ is($sock6->send( 'Hello World!'), 12, "Sent 12 bytes on IPv6 socket." );
++}
+--- a/t/35mcastsend.t
++++ b/t/35mcastsend.t
+@@ -26,7 +26,10 @@
+ $sock4->mcast_dest( pack_sockaddr_in(2000,inet_pton(AF_INET, '239.255.30.29')) );
+ ok( defined $sock4->mcast_dest(), "Packed IPv4 destination address and port" );
+
++SKIP: {
++skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
+ is($sock4->mcast_send( 'Hello World!' ), 12, "Sent 12 bytes on IPv4 socket." );
++}
+
+
+
+@@ -43,4 +46,7 @@
+ $sock6->mcast_dest( pack_sockaddr_in6(2000,inet_pton(AF_INET6, 'ff15::5042')) );
+ ok( defined $sock6->mcast_dest(), "Packed IPv6 destination address and port" );
+
++SKIP: {
++skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
+ is($sock6->mcast_send( 'Hello World!' ), 12, "Sent 12 bytes on IPv6 socket." );
++}
diff --git a/debian/patches/series b/debian/patches/series
index 7eba1d5..1718fc3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
if-address.patch
+no-network.patch
diff --git a/debian/rules b/debian/rules
index 2d33f6a..3f91295 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,6 @@
%:
dh $@
+
+override_dh_auto_test:
+ NO_NETWORK=1 dh_auto_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libio-socket-multicast6-perl.git
More information about the Pkg-perl-cvs-commits
mailing list