3 # Test that MakeMaker honors user's PM override.
6 if( $ENV{PERL_CORE} ) {
8 @INC = ('../lib', 'lib');
11 unshift @INC, 't/lib';
16 use Test::More tests => 6;
19 use MakeMaker::Test::Utils;
20 use MakeMaker::Test::Setup::BFD;
22 use ExtUtils::MakeMaker;
28 ok( setup_recurs(), 'setup' );
30 ok( chdir File::Spec->updir );
31 ok( teardown_recurs(), 'teardown' );
34 ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
35 diag("chdir failed: $!");
37 ok( my $stdout = tie *STDOUT, 'TieOut' );
40 my $mm = WriteMakefile(
42 VERSION_FROM => 'lib/Big/Dummy.pm',
43 PM => { 'wibble' => 'woof' }
46 is_deeply( $mm->{PM}, { wibble => 'woof' } );