]> git.donarmstrong.com Git - term-progressbar.git/blobdiff - t/0-signature.t
v2.12
[term-progressbar.git] / t / 0-signature.t
index 9de4488601b1575abe51eee7cf444ac963172a76..e4713ee4a89e40bd1a033b6e933a10270ca2b5a3 100644 (file)
@@ -1,16 +1,18 @@
 #!/usr/bin/perl
 use strict;
-print "1..1\n";
+use warnings;
+
+use Test::More;
+
+plan skip_all => 'Signature has not been updated';
+
 
 if ( ! eval { require Module::Signature; 1 } ) {
-  print("ok 1 # skip ",
-        "Next time around, consider install Module::Signature, ",
-        "# so you can verify the integrity of this distribution.\n");
+  plan skip_all => 'Needs Module::Signature to verify the integrity of this distribution.';
 } elsif ( ! eval { require Socket; Socket::inet_aton('pgp.mit.edu') } ) {
-  print "ok 1 # skip ", "Cannot connect to the keyserver\n";
+  plan skip_all => 'Cannot connect to the keyserver';
 } else {
-  (Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
-    or print "not ";
-  print "ok 1 # Valid signature\n";
+  plan tests => 1;
+  is Module::Signature::verify(), Module::Signature::SIGNATURE_OK(), 'Valid signature';
 }