1#!/usr/bin/perl -w
2
3BEGIN {
4    unshift @INC, 't/lib';
5}
6chdir 't';
7
8use strict;
9use Test::More tests => 9;
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
34foreach my $file (qw(single.out 1.out 2.out blib/lib/PL/Bar.pm)) {
35    ok( -e $file, "$file was created" );
36}
37