diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-06-02 08:46:41 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-06-02 08:46:41 +0200 |
commit | 9a7d94ef19fc170c3cac472a31f467828efc1cd4 (patch) | |
tree | 8f63d4b8d209d50bf8a341e61e5018a3fca73a86 /lib/ExtUtils/t/metafile_data.t | |
parent | 0e945d0082cb70df3b6da49ba9241db5ee15f208 (diff) | |
parent | 5bc8648cf6ac025ca43fa76c724554b043d49ab6 (diff) | |
download | perl-9a7d94ef19fc170c3cac472a31f467828efc1cd4.tar.gz |
Merge branch 'eumm652' into blead
Diffstat (limited to 'lib/ExtUtils/t/metafile_data.t')
-rw-r--r-- | lib/ExtUtils/t/metafile_data.t | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/lib/ExtUtils/t/metafile_data.t b/lib/ExtUtils/t/metafile_data.t index c1b16793b8..ddb986b2c6 100644 --- a/lib/ExtUtils/t/metafile_data.t +++ b/lib/ExtUtils/t/metafile_data.t @@ -9,7 +9,7 @@ BEGIN { } use strict; -use Test::More tests => 5; +use Test::More tests => 6; use Data::Dumper; @@ -233,3 +233,43 @@ my $new_mm = sub { }, ]; } + +# Test CONFIGURE_REQUIRES +{ + my $mm = $new_mm->( + DISTNAME => 'Foo-Bar', + VERSION => 1.23, + CONFIGURE_REQUIRES => { + "Fake::Module1" => 1.01, + }, + PM => { + "Foo::Bar" => 'lib/Foo/Bar.pm', + }, + ); + + is_deeply [$mm->metafile_data], [ + name => 'Foo-Bar', + version => 1.23, + abstract => undef, + author => [], + license => 'unknown', + distribution_type => 'module', + + configure_requires => { + 'Fake::Module1' => 1.01, + }, + build_requires => { + 'ExtUtils::MakeMaker' => 0, + }, + + no_index => { + directory => [qw(t inc)], + }, + + generated_by => "ExtUtils::MakeMaker version $ExtUtils::MakeMaker::VERSION", + 'meta-spec' => { + url => 'http://module-build.sourceforge.net/META-spec-v1.4.html', + version => 1.4 + }, + ],'CONFIGURE_REQUIRES'; +} |