6 use Test::More tests => 7;
10 require ExtUtils::MM_Any;
13 return bless { ARGS => {@_}, @_ }, 'ExtUtils::MM_Any';
18 DISTNAME => 'Foo-Bar',
21 "Foo::Bar" => 'lib/Foo/Bar.pm',
25 is_deeply [$mm->metafile_data], [
31 distribution_type => 'module',
33 configure_requires => {
34 'ExtUtils::MakeMaker' => 0,
37 'ExtUtils::MakeMaker' => 0,
41 directory => [qw(t inc)],
44 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
46 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
52 is_deeply [$mm->metafile_data({}, { no_index => { directory => [qw(foo)] } })], [
58 distribution_type => 'module',
60 configure_requires => {
61 'ExtUtils::MakeMaker' => 0,
64 'ExtUtils::MakeMaker' => 0,
68 directory => [qw(t inc foo)],
71 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
73 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
76 ], 'rt.cpan.org 39348';
82 DISTNAME => 'Foo-Bar',
91 is_deeply [$mm->metafile_data(
93 configure_requires => {
109 author => ['Some Guy'],
110 license => 'unknown',
111 distribution_type => 'script',
113 configure_requires => {
117 'ExtUtils::MakeMaker' => 0,
126 directory => [qw(t inc)],
130 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
132 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
142 # Test MIN_PERL_VERSION
145 DISTNAME => 'Foo-Bar',
148 "Foo::Bar" => 'lib/Foo/Bar.pm',
150 MIN_PERL_VERSION => 5.006,
153 is_deeply [$mm->metafile_data], [
158 license => 'unknown',
159 distribution_type => 'module',
161 configure_requires => {
162 'ExtUtils::MakeMaker' => 0,
165 'ExtUtils::MakeMaker' => 0,
173 directory => [qw(t inc)],
176 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
178 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
185 # Test MIN_PERL_VERSION
188 DISTNAME => 'Foo-Bar',
191 "Foo::Bar" => 'lib/Foo/Bar.pm',
193 MIN_PERL_VERSION => 5.006,
199 is_deeply [$mm->metafile_data], [
204 license => 'unknown',
205 distribution_type => 'module',
207 configure_requires => {
208 'ExtUtils::MakeMaker' => 0,
211 'ExtUtils::MakeMaker' => 0,
220 directory => [qw(t inc)],
223 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
225 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
231 # Test CONFIGURE_REQUIRES
234 DISTNAME => 'Foo-Bar',
236 CONFIGURE_REQUIRES => {
237 "Fake::Module1" => 1.01,
240 "Foo::Bar" => 'lib/Foo/Bar.pm',
244 is_deeply [$mm->metafile_data], [
249 license => 'unknown',
250 distribution_type => 'module',
252 configure_requires => {
253 'Fake::Module1' => 1.01,
256 'ExtUtils::MakeMaker' => 0,
260 directory => [qw(t inc)],
263 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
265 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
268 ],'CONFIGURE_REQUIRES';
271 # Test BUILD_REQUIRES
274 DISTNAME => 'Foo-Bar',
277 "Fake::Module1" => 1.01,
280 "Foo::Bar" => 'lib/Foo/Bar.pm',
284 is_deeply [$mm->metafile_data], [
289 license => 'unknown',
290 distribution_type => 'module',
292 configure_requires => {
293 'ExtUtils::MakeMaker' => 0,
296 'Fake::Module1' => 1.01,
300 directory => [qw(t inc)],
303 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
305 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
308 ],'CONFIGURE_REQUIRES';