4 if( $ENV{PERL_CORE} ) {
5 @INC = ('../lib', 'lib');
14 use Test::More tests => 9;
20 'Big-Dummy/lib/Big/Dummy.pm' => <<'END',
27 Big::Dummy - Try "our" hot dog's
34 'Big-Dummy/Makefile.PL' => <<'END',
35 use ExtUtils::MakeMaker;
37 printf "Current package is: %s\n", __PACKAGE__;
41 VERSION_FROM => 'lib/Big/Dummy.pm',
42 PREREQ_PM => { strict => 0 },
43 ABSTRACT_FROM => 'lib/Big/Dummy.pm',
44 AUTHOR => 'Michael G Schwern <schwern@pobox.com>',
48 'Big-Dummy/t/compile.t' => <<'END',
51 print eval "use Big::Dummy; 1;" ? "ok 1\n" : "not ok 1\n";
52 print "ok 2 - TEST_VERBOSE\n";
55 'Big-Dummy/Liar/t/sanity.t' => <<'END',
58 print eval "use Big::Dummy; 1;" ? "ok 1\n" : "not ok 1\n";
59 print eval "use Big::Liar; 1;" ? "ok 2\n" : "not ok 2\n";
60 print "ok 3 - TEST_VERBOSE\n";
63 'Big-Dummy/Liar/lib/Big/Liar.pm' => <<'END',
71 'Big-Dummy/Liar/Makefile.PL' => <<'END',
72 use ExtUtils::MakeMaker;
74 my $mm = WriteMakefile(
76 VERSION_FROM => 'lib/Big/Liar.pm',
77 _KEEP_AFTER_FLUSH => 1
80 print "Big::Liar's vars\n";
81 foreach my $key (qw(INST_LIB INST_ARCHLIB)) {
82 print "$key = $mm->{$key}\n";
86 'Problem-Module/Makefile.PL' => <<'END',
87 use ExtUtils::MakeMaker;
90 NAME => 'Problem::Module',
94 'Problem-Module/subdir/Makefile.PL' => <<'END',
95 printf "\@INC %s .\n", (grep { $_ eq '.' } @INC) ? "has" : "doesn't have";
97 warn "I think I'm going to be sick\n";
103 while(my($file, $text) = each %Files) {
104 # Convert to a relative, native file path.
105 $file = File::Spec->catfile(File::Spec->curdir, split m{\/}, $file);
107 my $dir = dirname($file);
109 open(FILE, ">$file");
113 ok( -e $file, "$file created" );