Debian Codegraph @

t/00signature.t

raw symbols SCIP
1 #!/usr/bin/perl
2
3 # t/00signature.t
4 # Test that the SIGNATURE matches the distribution
5 #
6 # $Id: 00signature.t 8192 2009-07-24 22:39:15Z [email protected] $
7
8 use strictscip-perl cpan Video-FourCC-Info 1.005 strict/;
9 use warningsscip-perl cpan Video-FourCC-Info 1.005 warnings/;
10
11 use Test::Morescip-perl cpan Video-FourCC-Info 1.005 Test/More/;
12
13 unless ($ENVscip-perl cpan Video-FourCC-Info 1.005 main/`%ENV`.{AUTOMATED_TESTING} or $ENVscip-perl cpan Video-FourCC-Info 1.005 main/`%ENV`.{RELEASE_TESTING}) {
14 planscip-perl cpan Video-FourCC-Info 1.005 main/plan(). skip_all => 'Author tests not required for installation';
15 }
16
17 unless ($ENVscip-perl cpan Video-FourCC-Info 1.005 main/`%ENV`.{HAS_INTERNET}) {
18 planscip-perl cpan Video-FourCC-Info 1.005 main/plan(). skip_all => 'Set HAS_INTERNET to enable tests requiring Internet';
19 }
20
21 my %MODULES = (
22 'Test::Signature' => 0,
23 );
24
25 while (my ($module, $version) = eachscip-perl cpan Video-FourCC-Info 1.005 main/each(). %MODULES) {
26 eval "use $module $version";
27 next unless $@scip-perl cpan Video-FourCC-Info 1.005 main/`$@`.;
28
29 if ($ENVscip-perl cpan Video-FourCC-Info 1.005 main/`%ENV`.{RELEASE_TESTING}) {
30 diescip-perl cpan Video-FourCC-Info 1.005 main/die(). 'Could not load release-testing module ' . $module;
31 }
32 else {
33 planscip-perl cpan Video-FourCC-Info 1.005 main/plan(). skip_all => $module . ' not available for testing';
34 }
35 }
36
37 planscip-perl cpan Video-FourCC-Info 1.005 main/plan(). tests => 1;
38
39 signature_okscip-perl cpan Video-FourCC-Info 1.005 main/signature_ok().();