6 if (!$ENV{TEST_SIGNATURE}) {
7 print "ok 1 # skip set the environment variable TEST_SIGNATURE to enable this test\n";
9 elsif (!-s 'SIGNATURE') {
10 print "ok 1 # skip No signature file found\n";
12 elsif (!eval { require Module::Signature; 1 }) {
14 "Next time around, consider install Module::Signature, ",
15 "so you can verify the integrity of this distribution.\n";
17 elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
19 "Cannot connect to the keyserver\n";
22 (Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
24 print "ok 1 # Valid signature\n";