Skip to content

Commit

Permalink
more tests if you want em
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Oct 25, 2014
1 parent 1919eea commit 22a95a2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions t/plugins/autoprereqs.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ $tzil = Builder->from_config(
[ AutoPrereqs => { skip => '^DZPA::Skip',
configure_finder => ':IncModules' } ],
[ MetaYAML => { version => 2 } ],
[ MetaConfig => ],
),
'source/inc/DZPA.pm' => "use DZPA::NotInDist;\n use DZPA::Configure;\n",
},
Expand Down Expand Up @@ -99,6 +100,7 @@ $tzil = Builder->from_config(
qw(GatherDir ExecDir),
[ AutoPrereqs => { scanner => 'Perl5', extra_scanner => 'Aliased' } ],
[ MetaYAML => { version => 2 } ],
[ MetaConfig => ],
),
'source/lib/DZPA/Aliased.pm' => "use aliased 'Long::Class::Name';\n",
},
Expand Down
1 change: 1 addition & 0 deletions t/plugins/autoversion.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use YAML::Tiny;
{ version => undef },
'GatherDir',
[ AutoVersion => { major => 6, format => '{{$major}}.{{$^T}}' } ],
[ MetaConfig => ],
),
},
},
Expand Down
2 changes: 1 addition & 1 deletion t/plugins/confirmrelease.t
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
},
},
);
Expand Down
2 changes: 1 addition & 1 deletion t/plugins/extratests.t
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ my $tzil = Builder->from_config(
{ dist_root => 'corpus/dist/DZT' },
{
add_files => {
'source/dist.ini' => simple_ini(qw<GatherDir ExtraTests AutoPrereqs MetaJSON>),
'source/dist.ini' => simple_ini(qw<GatherDir ExtraTests AutoPrereqs MetaConfig MetaJSON>),
(map {; "source/xt/$_/huffer.t" => sprintf($generic_test, $_) }
@xt_types, qw(blort))
},
Expand Down
7 changes: 4 additions & 3 deletions t/plugins/fakerelease.t
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
},
},
);
Expand All @@ -32,7 +32,8 @@ use Test::Fatal qw(exception);
[ '@Filter' => {
bundle => '@FakeClassic',
remove => 'ConfirmRelease',
} ]
} ],
'MetaConfig',
),
},
},
Expand All @@ -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)),
},
},
);
Expand Down
8 changes: 6 additions & 2 deletions t/plugins/ffbyname.t
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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 ]);

Expand Down
1 change: 1 addition & 0 deletions t/plugins/filefinders.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ my $tzil = Builder->from_config(
[ ExecDir => ],
[ ShareDir => ],
'Manifest',
'MetaConfig',
),
},
also_copy => { 'corpus/dist/DZT_Inc' => 'corpus/dist/DZT_Inc',
Expand Down
2 changes: 2 additions & 0 deletions t/plugins/generatefile.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ my $tzil = Builder->from_config(
],
}
],
'MetaConfig',
)
},
},
Expand Down Expand Up @@ -96,6 +97,7 @@ $tzil = Builder->from_config(
],
}
],
'MetaConfig',
)
},
},
Expand Down

0 comments on commit 22a95a2

Please sign in to comment.