This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate CPAN release of version.pm 0.9905
[perl5.git] / cpan / Locale-Maketext-Simple / t / 0-signature.t
CommitLineData
c9d0c046
JB
1#!/usr/bin/perl
2
3use strict;
4print "1..1\n";
5
6if (!$ENV{TEST_SIGNATURE}) {
7 print "ok 1 # skip set the environment variable TEST_SIGNATURE to enable this test\n";
8}
9elsif (!-s 'SIGNATURE') {
10 print "ok 1 # skip No signature file found\n";
11}
12elsif (!eval { require Module::Signature; 1 }) {
13 print "ok 1 # skip ",
14 "Next time around, consider install Module::Signature, ",
15 "so you can verify the integrity of this distribution.\n";
16}
17elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
18 print "ok 1 # skip ",
19 "Cannot connect to the keyserver\n";
20}
21else {
22 (Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
23 or print "not ";
24 print "ok 1 # Valid signature\n";
25}
26
27__END__