82dee7de92a0bd35 failed to add ext/lib/Makefile.PL. Oops.
[p5sagit/p5-mst-13.2.git] / ext / ExtUtils-MakeMaker / t / FIRST_MAKEFILE.t
CommitLineData
4325052d 1#!/usr/bin/perl -w
2
41e5fcb0 3BEGIN {
b78fd716 4 unshift @INC, 't/lib';
41e5fcb0 5}
6chdir 't';
7
8use strict;
4325052d 9use Test::More tests => 7;
41e5fcb0 10
11use MakeMaker::Test::Setup::BFD;
12use MakeMaker::Test::Utils;
13
14my $perl = which_perl();
15my $make = make_run();
16perl_lib();
17
18
19ok( setup_recurs(), 'setup' );
20END {
21 ok( chdir File::Spec->updir );
22 ok( teardown_recurs(), 'teardown' );
23}
24
25ok( chdir('Big-Dummy'), "chdir'd to Big-Dummy" ) ||
26 diag("chdir failed: $!");
27
28my @mpl_out = run(qq{$perl Makefile.PL FIRST_MAKEFILE=jakefile});
29cmp_ok( $?, '==', 0, 'Makefile.PL exited with zero' ) || diag @mpl_out;
30
31ok( -e 'jakefile', 'FIRST_MAKEFILE honored' );
32
d04fb41e 33ok( grep(/^Writing jakefile(?:\.)? for Big::Dummy/, @mpl_out) == 1,
41e5fcb0 34 'Makefile.PL output looks right' );