diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-07-27 20:31:31 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-07-27 20:31:31 +0000 |
commit | 0fa16c34bbe53a7015f0a9ba3310b33d220a2efe (patch) | |
tree | dac66b00dba5b4d2fefa555758a43c09412cf164 /lib/CPAN | |
parent | 4546b9e60350d925ea9a8210378c9e1a79f4a7ab (diff) | |
download | perl-0fa16c34bbe53a7015f0a9ba3310b33d220a2efe.tar.gz |
Upgrade to CPAN 1.72.
p4raw-id: //depot/perl@20243
Diffstat (limited to 'lib/CPAN')
-rw-r--r-- | lib/CPAN/t/signature.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/CPAN/t/signature.t b/lib/CPAN/t/signature.t new file mode 100644 index 0000000000..670a1aacce --- /dev/null +++ b/lib/CPAN/t/signature.t @@ -0,0 +1,18 @@ +# -*- mode: cperl -*- + +use strict; +print "1..1\n"; + +if (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) { + print "ok 1 # skip - Cannot connect to the keyserver"; +} +elsif (!eval { require Module::Signature; 1 }) { + warn "# Next time around, consider install Module::Signature,\n". + "# so you can verify the integrity of this distribution.\n"; + print "ok 1 # skip - Module::Signature not installed\n"; +} +else { + (Module::Signature::verify() == Module::Signature::SIGNATURE_OK()) + or print "not "; + print "ok 1 # Valid signature\n"; +} |