Skip to content

Commit 2df8439

Browse files
more tests if you want em
1 parent dfac33e commit 2df8439

File tree

8 files changed

+18
-7
lines changed

8 files changed

+18
-7
lines changed

t/plugins/autoprereqs.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ $tzil = Builder->from_config(
6464
[ AutoPrereqs => { skip => '^DZPA::Skip',
6565
configure_finder => ':IncModules' } ],
6666
[ MetaYAML => { version => 2 } ],
67+
[ MetaConfig => ],
6768
),
6869
'source/inc/DZPA.pm' => "use DZPA::NotInDist;\n use DZPA::Configure;\n",
6970
},
@@ -99,6 +100,7 @@ $tzil = Builder->from_config(
99100
qw(GatherDir ExecDir),
100101
[ AutoPrereqs => { scanner => 'Perl5', extra_scanner => 'Aliased' } ],
101102
[ MetaYAML => { version => 2 } ],
103+
[ MetaConfig => ],
102104
),
103105
'source/lib/DZPA/Aliased.pm' => "use aliased 'Long::Class::Name';\n",
104106
},

t/plugins/autoversion.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use YAML::Tiny;
1414
{ version => undef },
1515
'GatherDir',
1616
[ AutoVersion => { major => 6, format => '{{$major}}.{{$^T}}' } ],
17+
[ MetaConfig => ],
1718
),
1819
},
1920
},

t/plugins/confirmrelease.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sub new_tzil {
1111
{
1212
add_files => {
1313
'source/dist.ini' =>
14-
simple_ini(qw(GatherDir ConfirmRelease FakeRelease)),
14+
simple_ini(qw(GatherDir ConfirmRelease FakeRelease MetaConfig)),
1515
},
1616
},
1717
);

t/plugins/extratests.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ my $tzil = Builder->from_config(
2727
{ dist_root => 'corpus/dist/DZT' },
2828
{
2929
add_files => {
30-
'source/dist.ini' => simple_ini(qw<GatherDir ExtraTests AutoPrereqs>),
30+
'source/dist.ini' => simple_ini(qw<GatherDir ExtraTests AutoPrereqs MetaConfig>),
3131
(map {; "source/xt/$_/huffer.t" => sprintf($generic_test, $_) }
3232
@xt_types, qw(blort))
3333
},

t/plugins/fakerelease.t

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Test::Fatal qw(exception);
1010
{ dist_root => 'corpus/dist/DZT' },
1111
{
1212
add_files => {
13-
'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
13+
'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease MetaConfig)),
1414
},
1515
},
1616
);
@@ -32,7 +32,8 @@ use Test::Fatal qw(exception);
3232
[ '@Filter' => {
3333
bundle => '@FakeClassic',
3434
remove => 'ConfirmRelease',
35-
} ]
35+
} ],
36+
'MetaConfig',
3637
),
3738
},
3839
},
@@ -52,7 +53,7 @@ use Test::Fatal qw(exception);
5253
{ dist_root => 'corpus/dist/DZT' },
5354
{
5455
add_files => {
55-
'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
56+
'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease MetaConfig)),
5657
},
5758
},
5859
);

t/plugins/ffbyname.t

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ sub make_tzil {
7777

7878
#---------------------------------------------------------------------
7979
make_tzil([ 'FileFinder::ByName' => {qw(dir corpus skip archives)}],
80-
[ 'FileFinder::Filter' => {qw(finder FileFinder::ByName skip DZT)}]);
80+
[ 'FileFinder::Filter' => {qw(finder FileFinder::ByName skip DZT)}],
81+
[ 'MetaConfig']);
8182

8283
is_found('FileFinder::ByName' => [qw(
8384
corpus/DZT/README
@@ -105,6 +106,7 @@ make_tzil(
105106
{ finder => [qw(InBin AllPerl Plugins Synopsis)] }],
106107
[ 'FileFinder::Filter' => NoPluginM =>
107108
{ finder => 'AllPerl', skip => 'Plugin/M' }],
109+
[ 'MetaConfig'],
108110
);
109111

110112
is_found(InBin => [qw(
@@ -176,7 +178,9 @@ is_found(NoPluginM => [qw(
176178
#---------------------------------------------------------------------
177179
make_tzil([ 'FileFinder::ByName' => 'Everything' ],
178180
[ 'FileFinder::ByName' => 'EverythingButPerl' =>
179-
{skip => [qw( \.t$ (?i)\.p[lm]$ )]} ]);
181+
{skip => [qw( \.t$ (?i)\.p[lm]$ )]} ],
182+
[ 'MetaConfig'],
183+
);
180184

181185
is_found(Everything => [ map { $_->name } @dist_files ]);
182186

t/plugins/filefinders.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ my $tzil = Builder->from_config(
2626
[ ExecDir => ],
2727
[ ShareDir => ],
2828
'Manifest',
29+
'MetaConfig',
2930
),
3031
},
3132
also_copy => { 'corpus/dist/DZT_Inc' => 'corpus/dist/DZT_Inc',

t/plugins/generatefile.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ my $tzil = Builder->from_config(
3030
],
3131
}
3232
],
33+
'MetaConfig',
3334
)
3435
},
3536
},
@@ -96,6 +97,7 @@ $tzil = Builder->from_config(
9697
],
9798
}
9899
],
100+
'MetaConfig',
99101
)
100102
},
101103
},

0 commit comments

Comments
 (0)