summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Yu <frequency@cpan.org>2023-01-23 00:24:27 +0100
committergregor herrmann <gregoa@debian.org>2023-01-23 00:24:27 +0100
commit911d8908b997d90ab9c433686444fcfe8e888157 (patch)
tree2205c464fa0f9e00d410099fff1e8b21ed690d92
parent70dbb7055c5608873f3deeefe805d8e8228517a9 (diff)
Disable tests requiring InternetHEADarchive/debian/1.222-3master
Origin: vendor Forwarded: not-needed By default, the test suite requires a connection to the CDDB server. This uses an environment variable, HAS_INTERNET to control whether live tests are run. Gbp-Pq: Name disable-internet-tests.t
-rw-r--r--t/01_cddb.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/01_cddb.t b/t/01_cddb.t
index fb24c4b..b82c65b 100644
--- a/t/01_cddb.t
+++ b/t/01_cddb.t
@@ -7,12 +7,18 @@
use strict;
use CDDB;
-use Test::More tests => 25;
+use Test::More;
BEGIN {
select(STDOUT); $|=1;
};
+if ($ENV{NO_NETWORK}) {
+ plan skip_all => 'Unset NO_NETWORK to enable live tests';
+}
+
+plan tests => 25;
+
my ($i, $result);
### test connecting