my @xt_dist_tests = map { "$_/*.t" } sort keys %$xt_dist_dirs;
+my $parallel_jobs = ( $^O eq 'MSWin32' )
+ ? 1 # FIXME for some reason windows hangs on parallel jobs at `make dist`
+ : 4
+;
+
# inject an explicit xt test run, mainly to check the contents of
# lib and the generated POD's *before* anything is copied around
#
# perl cmd
join( ' ',
'$(ABSPERLRUN)',
- map { $mm_proto->quote_literal($_) } qw(-e $ENV{RELEASE_TESTING}=1;$ENV{HARNESS_OPTIONS}=j4;)
+ map { $mm_proto->quote_literal($_) } (
+ '-e',
+ "\$ENV{RELEASE_TESTING}=1;\$ENV{HARNESS_OPTIONS}=j$parallel_jobs;"
+ ),
),
# test list
join( ' ',
# perl cmd
join( ' ',
'$(ABSPERLRUN)',
- map { $mm_proto->quote_literal($_) } qw(-Ilib -e $ENV{RELEASE_TESTING}=1;$ENV{HARNESS_OPTIONS}=j4;)
+ map { $mm_proto->quote_literal($_) } (
+ '-Ilib',
+ '-e',
+ "\$ENV{RELEASE_TESTING}=1;\$ENV{HARNESS_OPTIONS}=j$parallel_jobs;"
+ ),
),
'xt/dist/postdistdir/*.t',
)