From 5cf9f6ba2e4aa4cec4b13086131c7ff2922c7faa Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Fri, 31 Jan 2014 19:37:59 -0800 Subject: [PATCH] more tests if you want em --- t/plugins/autoprereqs.t | 2 ++ t/plugins/autoversion.t | 1 + t/plugins/confirmrelease.t | 2 +- t/plugins/extratests.t | 2 +- t/plugins/fakerelease.t | 7 ++++--- t/plugins/ffbyname.t | 8 ++++++-- t/plugins/filefinders.t | 1 + t/plugins/generatefile.t | 2 ++ 8 files changed, 18 insertions(+), 7 deletions(-) diff --git a/t/plugins/autoprereqs.t b/t/plugins/autoprereqs.t index 3f5977036..1287bbeec 100644 --- a/t/plugins/autoprereqs.t +++ b/t/plugins/autoprereqs.t @@ -63,6 +63,7 @@ $tzil = Builder->from_config( qw(GatherDir ExecDir), [ AutoPrereqs => { skip => '^DZPA::Skip', configure_finder => ':IncModules' } ], + [ MetaConfig => ], ), 'source/inc/DZPA.pm' => "use DZPA::NotInDist;\n use DZPA::Configure;\n", }, @@ -178,6 +179,7 @@ $tzil = Builder->from_config( 'source/dist.ini' => simple_ini( qw(GatherDir ExecDir), [ AutoPrereqs => { scanner => 'Perl5', extra_scanner => 'Aliased' } ], + [ MetaConfig => ], ), 'source/lib/DZPA/Aliased.pm' => "use aliased 'Long::Class::Name';\n", }, diff --git a/t/plugins/autoversion.t b/t/plugins/autoversion.t index a4e4c6d90..bd252d48b 100644 --- a/t/plugins/autoversion.t +++ b/t/plugins/autoversion.t @@ -16,6 +16,7 @@ delete $ENV{V}; { version => undef }, 'GatherDir', [ AutoVersion => { major => 6, format => '{{$major}}.{{$^T}}' } ], + [ MetaConfig => ], ), }, }, diff --git a/t/plugins/confirmrelease.t b/t/plugins/confirmrelease.t index 5338de101..25290696f 100644 --- a/t/plugins/confirmrelease.t +++ b/t/plugins/confirmrelease.t @@ -11,7 +11,7 @@ sub new_tzil { { add_files => { 'source/dist.ini' => - simple_ini(qw(GatherDir ConfirmRelease FakeRelease)), + simple_ini(qw(GatherDir ConfirmRelease FakeRelease MetaConfig)), }, }, ); diff --git a/t/plugins/extratests.t b/t/plugins/extratests.t index cd64aedd3..442d5f9de 100644 --- a/t/plugins/extratests.t +++ b/t/plugins/extratests.t @@ -27,7 +27,7 @@ my $tzil = Builder->from_config( { dist_root => 'corpus/dist/DZT' }, { add_files => { - 'source/dist.ini' => simple_ini(qw), + 'source/dist.ini' => simple_ini(qw), (map {; "source/xt/$_/huffer.t" => sprintf($generic_test, $_) } @xt_types, qw(blort)) }, diff --git a/t/plugins/fakerelease.t b/t/plugins/fakerelease.t index 7f0912c3f..1c07ba20a 100644 --- a/t/plugins/fakerelease.t +++ b/t/plugins/fakerelease.t @@ -10,7 +10,7 @@ use Test::Fatal qw(exception); { dist_root => 'corpus/dist/DZT' }, { add_files => { - 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)), + 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease MetaConfig)), }, }, ); @@ -32,7 +32,8 @@ use Test::Fatal qw(exception); [ '@Filter' => { bundle => '@FakeClassic', remove => 'ConfirmRelease', - } ] + } ], + 'MetaConfig', ), }, }, @@ -52,7 +53,7 @@ use Test::Fatal qw(exception); { dist_root => 'corpus/dist/DZT' }, { add_files => { - 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)), + 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease MetaConfig)), }, }, ); diff --git a/t/plugins/ffbyname.t b/t/plugins/ffbyname.t index 4bf9118ec..4be639aa2 100644 --- a/t/plugins/ffbyname.t +++ b/t/plugins/ffbyname.t @@ -77,7 +77,8 @@ sub make_tzil { #--------------------------------------------------------------------- make_tzil([ 'FileFinder::ByName' => {qw(dir corpus skip archives)}], - [ 'FileFinder::Filter' => {qw(finder FileFinder::ByName skip DZT)}]); + [ 'FileFinder::Filter' => {qw(finder FileFinder::ByName skip DZT)}], + [ 'MetaConfig']); is_found('FileFinder::ByName' => [qw( corpus/DZT/README @@ -105,6 +106,7 @@ make_tzil( { finder => [qw(InBin AllPerl Plugins Synopsis)] }], [ 'FileFinder::Filter' => NoPluginM => { finder => 'AllPerl', skip => 'Plugin/M' }], + [ 'MetaConfig'], ); is_found(InBin => [qw( @@ -176,7 +178,9 @@ is_found(NoPluginM => [qw( #--------------------------------------------------------------------- make_tzil([ 'FileFinder::ByName' => 'Everything' ], [ 'FileFinder::ByName' => 'EverythingButPerl' => - {skip => [qw( \.t$ (?i)\.p[lm]$ )]} ]); + {skip => [qw( \.t$ (?i)\.p[lm]$ )]} ], + [ 'MetaConfig'], +); is_found(Everything => [ map { $_->name } @dist_files ]); diff --git a/t/plugins/filefinders.t b/t/plugins/filefinders.t index 20ff79899..8b31d03c0 100644 --- a/t/plugins/filefinders.t +++ b/t/plugins/filefinders.t @@ -34,6 +34,7 @@ my $tzil = Builder->from_config( [ ExecDir => ], [ ShareDir => ], 'Manifest', + 'MetaConfig', ), (map {; "source/xt${_}more.t" => $generic_test } qw(/author/ /smoke/ /release/ /)), diff --git a/t/plugins/generatefile.t b/t/plugins/generatefile.t index ec55177e9..1c7d2002a 100644 --- a/t/plugins/generatefile.t +++ b/t/plugins/generatefile.t @@ -30,6 +30,7 @@ my $tzil = Builder->from_config( ], } ], + 'MetaConfig', ) }, }, @@ -96,6 +97,7 @@ $tzil = Builder->from_config( ], } ], + 'MetaConfig', ) }, },