4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
16 use Test::More tests => 8;
17 use MakeMaker::Test::Utils;
19 # 'make disttest' sets a bunch of environment variables which interfere
21 delete @ENV{qw(PREFIX LIB MAKEFLAGS)};
23 my $Perl = which_perl();
24 my $Makefile = makefile_name();
25 my $Is_VMS = $^O eq 'VMS';
27 chdir($Is_VMS ? 'BFD_TEST_ROOT:[t]' : 't');
32 ok( chdir('Big-Dummy'), "chdir'd to Big-Dummy" ) ||
33 diag("chdir failed: $!");
36 my $prereq_out = run(qq{$Perl Makefile.PL "PREREQ_PRINT=1"});
37 ok( !-r $Makefile, "PREREQ_PRINT produces no $Makefile" );
38 is( $?, 0, ' exited normally' );
40 package _Prereq::Print;
42 $PREREQ_PM = undef; # shut up "used only once" warning.
44 ::is_deeply( $PREREQ_PM, { strict => 0 }, 'prereqs dumped' );
45 ::is( $@, '', ' without error' );
49 $prereq_out = run(qq{$Perl Makefile.PL "PRINT_PREREQ=1"});
50 ok( !-r $Makefile, "PRINT_PREREQ produces no $Makefile" );
51 is( $?, 0, ' exited normally' );
52 ::like( $prereq_out, qr/^perl\(strict\) \s* >= \s* 0 \s*$/x,
57 #my $prereq_out = run(qq{$Perl Makefile.PL "PREREQ_PRINT=0"});
58 #ok( -r $Makefile, "PREREQ_PRINT=0 produces a $Makefile" );
59 #is( $?, 0, ' exited normally' );
63 #my $prereq_out = run(qq{$Perl Makefile.PL "PRINT_PREREQ=1"});
64 #ok( -r $Makefile, "PRINT_PREREQ=0 produces a $Makefile" );
65 #is( $?, 0, ' exited normally' );