2 if( $ENV{PERL_CORE} ) {
4 @INC = ('../lib', 'lib');
12 use Test::More tests => 5;
16 require ExtUtils::MM_Any;
19 return bless {@_}, 'ExtUtils::MM_Any';
24 DISTNAME => 'Foo-Bar',
27 "Foo::Bar" => 'lib/Foo/Bar.pm',
31 is_deeply [$mm->metafile_data], [
37 distribution_type => 'module',
39 configure_requires => {
40 'ExtUtils::MakeMaker' => 0,
44 directory => [qw(t inc)],
47 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
49 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
55 is_deeply [$mm->metafile_data({}, { no_index => { directory => [qw(foo)] } })], [
61 distribution_type => 'module',
63 configure_requires => {
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 => {
122 directory => [qw(t inc)],
126 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
128 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
138 # Test MIN_PERL_VERSION
141 DISTNAME => 'Foo-Bar',
144 "Foo::Bar" => 'lib/Foo/Bar.pm',
146 MIN_PERL_VERSION => 5.006,
149 is_deeply [$mm->metafile_data], [
154 license => 'unknown',
155 distribution_type => 'module',
157 configure_requires => {
158 'ExtUtils::MakeMaker' => 0,
166 directory => [qw(t inc)],
169 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
171 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',
178 # Test MIN_PERL_VERSION
181 DISTNAME => 'Foo-Bar',
184 "Foo::Bar" => 'lib/Foo/Bar.pm',
186 MIN_PERL_VERSION => 5.006,
192 is_deeply [$mm->metafile_data], [
197 license => 'unknown',
198 distribution_type => 'module',
200 configure_requires => {
201 'ExtUtils::MakeMaker' => 0,
210 directory => [qw(t inc)],
213 generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION",
215 url => 'http://module-build.sourceforge.net/META-spec-v1.4.html',