summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Test/Simple/t/00signature.t33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/Test/Simple/t/00signature.t b/lib/Test/Simple/t/00signature.t
deleted file mode 100644
index 778faa3523..0000000000
--- a/lib/Test/Simple/t/00signature.t
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use Test::More;
-
-if (!eval { require Module::Signature; 1 }) {
- plan skip_all =>
- "Next time around, consider installing Module::Signature, ".
- "so you can verify the integrity of this distribution.";
-}
-elsif ( !-e 'SIGNATURE' ) {
- plan skip_all => "SIGNATURE not found";
-}
-elsif ( -s 'SIGNATURE' == 0 ) {
- plan skip_all => "SIGNATURE file empty";
-}
-elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
- plan skip_all => "Cannot connect to the keyserver to check module ".
- "signature";
-}
-else {
- plan tests => 1;
-}
-
-my $ret = Module::Signature::verify();
-SKIP: {
- skip "Module::Signature cannot verify", 1
- if $ret eq Module::Signature::CANNOT_VERIFY() or
- $ret eq Module::Signature::CIPHER_UNKNOWN();
-
- cmp_ok $ret, '==', Module::Signature::SIGNATURE_OK(), "Valid signature";
-}
-