diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2012-02-24 21:42:41 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2012-02-24 22:42:22 +0000 |
commit | 1f629e57df116eb70c42f5e4306c2a1eb93b4c93 (patch) | |
tree | d97de90e095b8736885a05aba3e74b825423d7ab /cpan/Module-Build/t | |
parent | 236cbe8d7a6747fb6144c93dd767895f8acffd00 (diff) | |
download | perl-smoke-me/module-build.tar.gz |
Update Module-Build to CPAN version 0.40smoke-me/module-build
[DELTA]
0.40 - Fri Feb 24 18:47:48 CET 2012
- Released 0.39_02 as 0.40 without any code changes
0.39_02 - Thu Feb 17 00:33:18 MET 2012
[BUG FIXES]
- Fixed bug where modules without $VERSION might have a version of '0'
listed in 'provides' metadata, which will be rejected by PAUSE
[David Golden, reported by Christopher Fields]
- Fixed bug in PodParser to allow numerals in module names
[Tokuhirom]
- Fixed bug where giving arguments twice led to them becoming arrays,
resulting in install paths like "ARRAY(0xdeadbeef)/lib/Foo.pm"
[Leon Timmermans]
[DOCUMENTATION]
- Fixed deviance from alphabetical order in documentation of
constructor parameters. [Eric Brine]
- Add documentation for configure_requires constructor parameter.
[Eric Brine]
- Change some of the docs' language describing relationship to
MakeMaker. [Ken Williams]
[OTHER]
- List Perl-Toolchain-Gang repo as official repo
Diffstat (limited to 'cpan/Module-Build/t')
-rw-r--r-- | cpan/Module-Build/t/install.t | 6 | ||||
-rw-r--r-- | cpan/Module-Build/t/metadata.t | 15 |
2 files changed, 19 insertions, 2 deletions
diff --git a/cpan/Module-Build/t/install.t b/cpan/Module-Build/t/install.t index ffe8afca01..2d487f679b 100644 --- a/cpan/Module-Build/t/install.t +++ b/cpan/Module-Build/t/install.t @@ -2,7 +2,7 @@ use strict; use lib 't/lib'; -use MBTest tests => 34; +use MBTest tests => 35; blib_load('Module::Build'); @@ -166,6 +166,10 @@ is $@, ''; '--install_base', $basedir])}; is $@, ''; + eval {$mb->run_perl_script($cmd, [], ['install', '--destdir', $destdir, + '--install_base', $basedir, '--install_base', $basedir])}; + is $@, ''; + $install_to = File::Spec->catfile($destdir, $libdir, $dist->name ) . '.pm'; is -e $install_to, 1, "Look for file at $install_to"; diff --git a/cpan/Module-Build/t/metadata.t b/cpan/Module-Build/t/metadata.t index a495f157b4..4401e1a62d 100644 --- a/cpan/Module-Build/t/metadata.t +++ b/cpan/Module-Build/t/metadata.t @@ -2,7 +2,7 @@ use strict; use lib 't/lib'; -use MBTest tests => 52; +use MBTest tests => 53; blib_load('Module::Build'); blib_load('Module::Build::ConfigData'); @@ -296,7 +296,20 @@ is_deeply($provides, version => '1.23' }}); # XXX should be 2.34? like( $err, qr/already declared/, ' with conflicting versions reported' ); +# Missing version should not show up in provides as version "0" +$dist->change_file( 'lib/Simple.pm', <<'---' ); +package Foo; +$VERSION = undef; +1; +--- +$dist->regen( clean => 1 ); +$err = stderr_of( sub { $mb = new_build() } ); +$err = stderr_of( sub { $provides = $mb->find_dist_packages } ); +is_deeply($provides, + {'Foo' => { file => $simple_file } }, + "undef \$VERSION is omitted from 'provides'" +); ############################## Multiple Modules |