82dee7de92a0bd35 failed to add ext/lib/Makefile.PL. Oops.
[p5sagit/p5-mst-13.2.git] / ext / ExtUtils-MakeMaker / t / PL_FILES.t
1 #!/usr/bin/perl -w
2
3 BEGIN {
4     unshift @INC, 't/lib';
5 }
6 chdir 't';
7
8 use strict;
9 use Test::More tests => 9;
10
11 use File::Spec;
12 use MakeMaker::Test::Setup::PL_FILES;
13 use MakeMaker::Test::Utils;
14
15 my $perl = which_perl();
16 my $make = make_run();
17 perl_lib();
18
19 setup;
20
21 END { 
22     ok( chdir File::Spec->updir );
23     ok( teardown );
24 }
25
26 ok chdir('PL_FILES-Module');
27
28 run(qq{$perl Makefile.PL});
29 cmp_ok( $?, '==', 0 );
30
31 my $make_out = run("$make");
32 is( $?, 0 ) || diag $make_out;
33
34 foreach my $file (qw(single.out 1.out 2.out blib/lib/PL/Bar.pm)) {
35     ok( -e $file, "$file was created" );
36 }