D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
doc
/
perl-Test-Simple
/
t
/
Filename :
00compile.t
back
Copy
#!/usr/bin/perl -w BEGIN { if( $ENV{PERL_CORE} ) { @INC = ('../lib', 'lib'); } else { unshift @INC, 't/lib'; } } chdir 't'; use Test::More; my $Has_Test_Pod; BEGIN { $Has_Test_Pod = eval 'use Test::Pod 0.95; 1'; } chdir ".."; my $manifest = "MANIFEST"; open(my $manifest_fh, "<", $manifest) or plan(skip_all => "Can't open $manifest: $!"); my @modules = map { m{^lib/(\S+)}; $1 } grep { m{^lib/Test/\S*\.pm} } grep { !m{/t/} } <$manifest_fh>; chomp @modules; close $manifest_fh; chdir 'lib'; plan tests => scalar @modules * 2; foreach my $file (@modules) { # Make sure we look at the local files and do not reload them if # they're already loaded. This avoids recompilation warnings. local @INC = @INC; unshift @INC, "."; my @warnings; ok eval { local $SIG{__WARN__} = sub { push @warnings => @_ }; require($file); 1 } or diag "require $file failed.", "\n", @warnings, "\n", $@; SKIP: { skip "Test::Pod not installed", 1 unless $Has_Test_Pod; pod_file_ok($file); } }
Name
Size
Last Modified
Owner
Permissions
Actions
Legacy
Dir
July 28 2023 2:57:48
root
0755
Legacy_And_Test2
Dir
July 28 2023 2:57:48
root
0755
Test2
Dir
July 28 2023 2:57:48
root
0755
lib
Dir
July 28 2023 2:57:48
root
0755
regression
Dir
July 28 2023 2:57:48
root
0755
00-report.t
1.447
KB
March 30 2018 5:53:02
root
0644
00compile.t
1.092
KB
March 30 2018 5:53:02
root
0644
HashBase.t
5.471
KB
March 30 2018 5:53:02
root
0644
zzz-check-breaks.t
1.989
KB
March 30 2018 5:53:02
root
0644
2017 © D7net | D704T team