3 # This test puts MakeMaker through the paces of a basic perl module
4 # build, test and installation of the Big::Fat::Dummy module.
7 if( $ENV{PERL_CORE} ) {
9 @INC = ('../lib', 'lib');
12 unshift @INC, 't/lib';
16 # The test logic is shared between MakeMaker and Install
17 # because in MakeMaker we test aspects that we are uninterested
18 # in with Install.pm, however MakeMaker needs to know if it
19 # accidentally breaks Install. So we have this two stage test file
22 # This version is distinct to MakeMaker and the core.
24 use vars qw/$TESTS $TEST_INSTALL_ONLY/;
28 $::TEST_INSTALL_ONLY= 0;
30 (my $start=$0)=~s/\.t$/.pl/;
31 (my $finish=$start)=~s/\.pl$/_finish.pl/;
33 for my $file ($start,$finish) {
34 open my $fh,$file or die "Failed to read: $file";
42 eval $code or die $@,$code;