4 if( $ENV{PERL_CORE} ) {
5 @INC = ('../lib', 'lib');
19 $Has_Test_Pod = eval 'use Test::Pod 0.95; 1';
22 chdir File::Spec->updir;
23 my $manifest = File::Spec->catfile('MANIFEST');
24 open(MANIFEST, $manifest) or die "Can't open $manifest: $!";
25 my @modules = map { m{^lib/(\S+)}; $1 }
26 grep { m{^lib/ExtUtils/\S*\.pm} }
27 grep { !m{/t/} } <MANIFEST>;
32 plan tests => scalar @modules * 2;
33 foreach my $file (@modules) {
34 # 5.8.0 has a bug about require alone in an eval. Thus the extra
36 eval { require($file); 1 };
37 is( $@, '', "require $file" );
40 skip "Test::Pod not installed", 1 unless $Has_Test_Pod;