Upgrade to real CPAN.pm 1.76.
[p5sagit/p5-mst-13.2.git] / lib / CPAN / t / signature.t
1 # -*- mode: cperl -*-
2
3 use strict;
4 print "1..1\n";
5
6 if (!eval { require Module::Signature; 1 }) {
7   print "ok 1 # skip - no Module::Signature found\n";
8 }
9 elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
10   print "ok 1 # skip - Cannot connect to the keyserver";
11 }
12 else {
13   (Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
14       or print "not ";
15   print "ok 1 # Valid signature\n";
16 }