|
#!/usr/bin/perl
unless ( $ENV {AUTOMATED_TESTING} or $ENV {RELEASE_TESTING}) {
plan skip_all => 'Author tests not required for installation' ;
}
unless ( $ENV {HAS_INTERNET}) {
plan skip_all => 'Set HAS_INTERNET to enable tests requiring Internet' ;
}
my %MODULES = (
'Test::Signature' => 0,
);
while ( my ( $module , $version ) = each %MODULES ) {
eval "use $module $version" ;
next unless $@;
if ( $ENV {RELEASE_TESTING}) {
die 'Could not load release-testing module ' . $module ;
}
else {
plan skip_all => $module . ' not available for testing' ;
}
}
plan tests => 1;
signature_ok();
|