3 # This is a test of the verification of the arguments to
11 use Test::More tests => 13;
14 use MakeMaker::Test::Utils;
15 use MakeMaker::Test::Setup::BFD;
17 use ExtUtils::MakeMaker;
23 ok( setup_recurs(), 'setup' );
25 ok( chdir File::Spec->updir );
26 ok( teardown_recurs(), 'teardown' );
29 ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
30 diag("chdir failed: $!");
33 ok( my $stdout = tie *STDOUT, 'TieOut' );
35 local $SIG{__WARN__} = sub {
36 $warnings .= join '', @_;
55 sprintf("Warning: prerequisite strict 99999 not found. We have %s.\n",
62 "I::Do::Not::Exist" => 0,
66 "Warning: prerequisite I::Do::Not::Exist 0 not found.\n";
72 "I::Do::Not::Exist" => 0,
77 "Warning: prerequisite I::Do::Not::Exist 0 not found.\n".
78 sprintf("Warning: prerequisite strict 99999 not found. We have %s.\n",
86 "I::Do::Not::Exist" => 0,
95 is $@, <<'END', "PREREQ_FATAL";
96 MakeMaker FATAL: prerequisites not found.
97 I::Do::Not::Exist not installed
98 Nor::Do::I not installed
101 Please install these modules first and rerun 'perl Makefile.PL'.
108 NAME => 'Big::Dummy',
110 "I::Do::Not::Exist" => 0,
113 require I::Do::Not::Exist;
120 is $@, <<'END', "PREREQ_FATAL happens before CONFIGURE";
121 MakeMaker FATAL: prerequisites not found.
122 I::Do::Not::Exist not installed
124 Please install these modules first and rerun 'perl Makefile.PL'.