2 if( $ENV{PERL_CORE} ) {
4 @INC = ('../lib', 'lib');
12 use Test::More tests => 3;
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',