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 tests => 13;
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 sprintf("Warning: prerequisite strict 99999 not found. We have %s.\n",
68 "I::Do::Not::Exist" => 0,
72 "Warning: prerequisite I::Do::Not::Exist 0 not found.\n";
78 "I::Do::Not::Exist" => 0,
83 "Warning: prerequisite I::Do::Not::Exist 0 not found.\n".
84 sprintf("Warning: prerequisite strict 99999 not found. We have %s.\n",
92 "I::Do::Not::Exist" => 0,
101 is $@, <<'END', "PREREQ_FATAL";
102 MakeMaker FATAL: prerequisites not found.
103 I::Do::Not::Exist not installed
104 Nor::Do::I not installed
107 Please install these modules first and rerun 'perl Makefile.PL'.
114 NAME => 'Big::Dummy',
116 "I::Do::Not::Exist" => 0,
119 require I::Do::Not::Exist;
126 is $@, <<'END', "PREREQ_FATAL happens before CONFIGURE";
127 MakeMaker FATAL: prerequisites not found.
128 I::Do::Not::Exist not installed
130 Please install these modules first and rerun 'perl Makefile.PL'.