Updated 00-signature.t so that it works.
This commit is contained in:
parent
7254146bea
commit
ae2e049824
@ -1,8 +1,14 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
print "1..1\n";
|
print "1..1\n";
|
||||||
|
|
||||||
if (!-s 'SIGNATURE') {
|
$ENV{TEST_SIGNATURE} = 1;
|
||||||
|
if (!$ENV{TEST_SIGNATURE}) {
|
||||||
|
print "ok 1 # skip Set the environment variable",
|
||||||
|
" TEST_SIGNATURE to enable this test\n";
|
||||||
|
}
|
||||||
|
elsif (!-s 'SIGNATURE') {
|
||||||
print "ok 1 # skip No signature file found\n";
|
print "ok 1 # skip No signature file found\n";
|
||||||
}
|
}
|
||||||
elsif (!eval { require Module::Signature; 1 }) {
|
elsif (!eval { require Module::Signature; 1 }) {
|
||||||
@ -10,8 +16,9 @@ elsif (!eval { require Module::Signature; 1 }) {
|
|||||||
"Next time around, consider install Module::Signature, ",
|
"Next time around, consider install Module::Signature, ",
|
||||||
"so you can verify the integrity of this distribution.\n";
|
"so you can verify the integrity of this distribution.\n";
|
||||||
}
|
}
|
||||||
elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
|
elsif (!eval { require Socket; Socket::inet_aton('pool.sks-keyservers.net') }) {
|
||||||
print "ok 1 # skip Cannot connect to the keyserver\n";
|
print "ok 1 # skip ",
|
||||||
|
"Cannot connect to the keyserver\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
(Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
|
(Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
|
||||||
|
Loading…
Reference in New Issue
Block a user