4 if( $ENV{PERL_CORE} ) {
5 @INC = ('../lib', 'lib');
14 use Test::More tests => 9;
19 'Big-Dummy/lib/Big/Dummy.pm' => <<'END',
27 'Big-Dummy/Makefile.PL' => <<'END',
28 use ExtUtils::MakeMaker;
30 printf "Current package is: %s\n", __PACKAGE__;
34 VERSION_FROM => 'lib/Big/Dummy.pm',
39 'Big-Dummy/t/compile.t' => <<'END',
42 print eval "use Big::Dummy; 1;" ? "ok 1\n" : "not ok 1\n";
43 print "ok 2 - TEST_VERBOSE\n";
46 'Big-Dummy/Liar/t/sanity.t' => <<'END',
49 print eval "use Big::Dummy; 1;" ? "ok 1\n" : "not ok 1\n";
50 print eval "use Big::Liar; 1;" ? "ok 2\n" : "not ok 2\n";
51 print "ok 3 - TEST_VERBOSE\n";
54 'Big-Dummy/Liar/lib/Big/Liar.pm' => <<'END',
62 'Big-Dummy/Liar/Makefile.PL' => <<'END',
63 use ExtUtils::MakeMaker;
65 my $mm = WriteMakefile(
67 VERSION_FROM => 'lib/Big/Liar.pm',
68 _KEEP_AFTER_FLUSH => 1
71 print "Big::Liar's vars\n";
72 foreach my $key (qw(INST_LIB INST_ARCHLIB)) {
73 print "$key = $mm->{$key}\n";
77 'Problem-Module/Makefile.PL' => <<'END',
78 use ExtUtils::MakeMaker;
81 NAME => 'Problem::Module',
85 'Problem-Module/subdir/Makefile.PL' => <<'END',
86 printf "\@INC %s .\n", (grep { $_ eq '.' } @INC) ? "has" : "doesn't have";
88 warn "I think I'm going to be sick\n";
94 while(my($file, $text) = each %Files) {
95 my $dir = dirname($file);
101 ok( -e $file, "$file created" );