use strict;
use lib 't/lib';
use Test::More 'no_plan';
use ExtUtils::MakeMaker;
use MakeMaker::Test::Utils;
use MakeMaker::Test::Setup::BFD;
my $perl = which_perl();
my $makefile = makefile_name();
my $make = make_run();
{
chdir 't';
perl_lib;
ok( setup_recurs(), 'setup' );
END {
ok( chdir File::Spec->updir );
ok( teardown_recurs(), 'teardown' );
}
ok( chdir('Big-Dummy'), "chdir'd to Big-Dummy" ) ||
diag("chdir failed: $!");
}
{
run_ok(qq{$perl Makefile.PL});
run_ok($make);
ok( -e "blib/lib/Big/Dummy.pm", "blib copied pm file" );
}
{
sleep 2;
ok( open my $fh, ">>", "lib/Big/Dummy.pm" ) or die $!;
print $fh "Something else\n";
close $fh;
run_ok($make);
like slurp("blib/lib/Big/Dummy.pm"), qr/Something else\n$/;
}
{
run_ok(qq{$perl Makefile.PL});
like run_ok($make), qr/^Skip /ms;
ok( -e "blib/lib/Big/Dummy.pm", "blib copied pm file" );
}