This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update to MakeMaker 6.30
[perl5.git] / lib / ExtUtils / t / PL_FILES.t
CommitLineData
7292dc67
RGS
1#!/usr/bin/perl -w
2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't' if -d 't';
6 @INC = ('../lib', 'lib');
7 }
8 else {
9 unshift @INC, 't/lib';
10 }
11}
12chdir 't';
13
14use strict;
4325052d 15use Test::More tests => 9;
7292dc67
RGS
16
17use File::Spec;
18use MakeMaker::Test::Setup::PL_FILES;
19use MakeMaker::Test::Utils;
20
21my $perl = which_perl();
22my $make = make_run();
23perl_lib();
24
25setup;
26
27END {
28 ok( chdir File::Spec->updir );
29 ok( teardown );
30}
31
32ok chdir('PL_FILES-Module');
33
34run(qq{$perl Makefile.PL});
35cmp_ok( $?, '==', 0 );
36
37my $make_out = run("$make");
38is( $?, 0 ) || diag $make_out;
39
4325052d 40foreach my $file (qw(single.out 1.out 2.out blib/lib/PL/Bar.pm)) {
7292dc67
RGS
41 ok( -e $file, "$file was created" );
42}