99
1010use strict;
1111use Config;
12- use Test::More tests => 21 ;
12+ use Test::More tests => 24 ;
1313use File::Temp qw[ tempdir] ;
1414
1515use TieOut;
@@ -57,7 +57,7 @@ ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
5757 is $warnings , ' ' , ' basic prereq' ;
5858
5959 SKIP: {
60- skip ' No CMR, no version ranges' , 1
60+ skip ' No CMR, no version ranges' , 4
6161 unless ExtUtils::MakeMaker::_has_cpan_meta_requirements;
6262 $warnings = ' ' ;
6363 WriteMakefile(
@@ -66,15 +66,55 @@ ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
6666 strict => ' >= 0, <= 99999' ,
6767 }
6868 );
69- is $warnings , ' ' , ' version range' ;
69+ isnt $warnings , ' ' , ' version range, no min EUMM specified' ;
70+
71+ $warnings = ' ' ;
72+ WriteMakefile(
73+ NAME => ' Big::Dummy' ,
74+ PREREQ_PM => {
75+ strict => ' >= 0, <= 99999' ,
76+ },
77+ CONFIGURE_REQUIRES => {
78+ ' ExtUtils::MakeMaker' => ' 7.04' ,
79+ },
80+ );
81+ isnt $warnings , ' ' , ' version range and insufficient EUMM specified' ;
82+
83+ $warnings = ' ' ;
84+ WriteMakefile(
85+ NAME => ' Big::Dummy' ,
86+ PREREQ_PM => {
87+ strict => ' >= 0, <= 99999' ,
88+ },
89+ CONFIGURE_REQUIRES => {
90+ ' ExtUtils::MakeMaker' => 7.11_01,
91+ },
92+ );
93+ is $warnings , ' ' , ' version range and sufficient EUMM specified' ;
94+
95+ $warnings = ' ' ;
96+ WriteMakefile(
97+ NAME => ' Big::Dummy' ,
98+ PREREQ_PM => {
99+ strict => ' >= 0, <= 99999' ,
100+ },
101+ META_MERGE => {
102+ prereqs => {
103+ configure => {
104+ requires => { ' ExtUtils::MakeMaker' => 7.1101 },
105+ },
106+ },
107+ },
108+ );
109+ is $warnings , ' ' , ' version range and sufficient EUMM specified meta' ;
70110 }
71111
72112 $warnings = ' ' ;
73113 WriteMakefile(
74114 NAME => ' Big::Dummy' ,
75115 PREREQ_PM => {
76116 strict => 99999
77- }
117+ },
78118 );
79119 is $warnings ,
80120 sprintf (" Warning: prerequisite strict 99999 not found. We have %s .\n " ,
0 commit comments