This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to MakeMaker 6.29
[perl5.git] / lib / ExtUtils / t / FIRST_MAKEFILE.t
CommitLineData
41e5fcb0
RGS
1BEGIN {
2 if( $ENV{PERL_CORE} ) {
3 chdir 't' if -d 't';
4 @INC = ('../lib', 'lib');
5 }
6 else {
7 unshift @INC, 't/lib';
8 }
9}
10chdir 't';
11
12use strict;
13use Test::More 'no_plan';
14
15use MakeMaker::Test::Setup::BFD;
16use MakeMaker::Test::Utils;
17
18my $perl = which_perl();
19my $make = make_run();
20perl_lib();
21
22
23ok( setup_recurs(), 'setup' );
24END {
25 ok( chdir File::Spec->updir );
26 ok( teardown_recurs(), 'teardown' );
27}
28
29ok( chdir('Big-Dummy'), "chdir'd to Big-Dummy" ) ||
30 diag("chdir failed: $!");
31
32my @mpl_out = run(qq{$perl Makefile.PL FIRST_MAKEFILE=jakefile});
33cmp_ok( $?, '==', 0, 'Makefile.PL exited with zero' ) || diag @mpl_out;
34
35ok( -e 'jakefile', 'FIRST_MAKEFILE honored' );
36
37ok( grep(/^Writing jakefile for Big::Dummy/, @mpl_out) == 1,
38 'Makefile.PL output looks right' );