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