Debian Codegraph @

pubmed/t/0-signature.t

raw ◀ ▶
1 Debian patch touch this file
1 #!/usr/bin/perl
2 # $File: //member/autrijus/Module-Signature/t/0-signature.t $ $Author: greg $
3 # $Revision: 2 $ $Change: 7212 $ $DateTime: 2003/07/28 14:21:21 $
4
5 use strict;
•6 use Test::More;
7
8 unless ($ENV{NO_NETWORK}) {
9 plan tests => 1;
10 }
11 else {
12 plan skip_all => "no network";
13 }
14
15 SKIP: {
16 if (!eval { require Module::Signature; 1 }) {
17 skip("Next time around, consider install Module::Signature, ".
18 "so you can verify the integrity of this distribution.", 1);
19 }
20 elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
21 skip("Cannot connect to the keyserver", 1);
22 }
23 else {
24 ok(Module::Signature::verify() == Module::Signature::SIGNATURE_OK()
25 => "Valid signature" );
26 }
27 }
28
29 __END__