6 if (!eval { require Module::Signature; 1 }) {
8 "Next time around, consider installing Module::Signature, ".
9 "so you can verify the integrity of this distribution.";
11 elsif ( !-e 'SIGNATURE' ) {
12 plan skip_all => "SIGNATURE not found";
14 elsif ( -s 'SIGNATURE' == 0 ) {
15 plan skip_all => "SIGNATURE file empty";
17 elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
18 plan skip_all => "Cannot connect to the keyserver to check module ".
25 my $ret = Module::Signature::verify();
27 skip "Module::Signature cannot verify", 1
28 if $ret eq Module::Signature::CANNOT_VERIFY();
30 cmp_ok $ret, '==', Module::Signature::SIGNATURE_OK(), "Valid signature";