3 # This is a test of the verification of the arguments to
7 if( $ENV{PERL_CORE} ) {
9 @INC = ('../lib', 'lib');
12 unshift @INC, 't/lib';
17 use Test::More 'no_plan';
20 use MakeMaker::Test::Utils;
21 use MakeMaker::Test::Setup::BFD;
23 use ExtUtils::MakeMaker;
29 ok( setup_recurs(), 'setup' );
31 ok( chdir File::Spec->updir );
32 ok( teardown_recurs(), 'teardown' );
35 ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
36 diag("chdir failed: $!");
39 ok( my $stdout = tie *STDOUT, 'TieOut' );
41 local $SIG{__WARN__} = sub {
42 $warnings .= join '', @_;
61 "Warning: prerequisite strict 99999 not found. We have $strict::VERSION.\n";
67 "I::Do::Not::Exist" => 0,
71 "Warning: prerequisite I::Do::Not::Exist 0 not found.\n";
77 "I::Do::Not::Exist" => 0,
82 "Warning: prerequisite I::Do::Not::Exist 0 not found.\n".
83 "Warning: prerequisite strict 99999 not found. We have $strict::VERSION.\n";
91 "I::Do::Not::Exist" => 0,
100 is $@, <<'END', "PREREQ_FATAL";
101 MakeMaker FATAL: prerequisites not found.
102 I::Do::Not::Exist not installed
103 Nor::Do::I not installed
106 Please install these modules first and rerun 'perl Makefile.PL'.