1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: skip network tests if NO_NETWORK is set
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-02-07
--- a/t/20-synchronous.t
+++ b/t/20-synchronous.t
@@ -13,6 +13,7 @@
debug_level => 0
);
+plan skip_all => 'network tests disabled via NO_NETWORK' if $ENV{NO_NETWORK};
plan skip_all => 'resolver not loaded' unless $resolver;
plan skip_all => 'no local nameserver' unless $resolver->nameserver;
plan tests => 4;
--- a/t/25-decode.t
+++ b/t/25-decode.t
@@ -10,6 +10,7 @@
my $resolver = Net::DNS::Resolver::Unbound->new();
+plan skip_all => 'network tests disabled via NO_NETWORK' if $ENV{NO_NETWORK};
plan skip_all => 'resolver not loaded' unless $resolver;
plan tests => 4;
--- a/t/30-asynchronous.t
+++ b/t/30-asynchronous.t
@@ -9,6 +9,7 @@
my $resolver = Net::DNS::Resolver::Unbound->new();
+plan skip_all => 'network tests disabled via NO_NETWORK' if $ENV{NO_NETWORK};
plan skip_all => 'resolver not loaded' unless $resolver;
plan skip_all => 'no local nameserver' unless $resolver->nameserver;
plan tests => 7;
|