use File::Find;
use File::Spec::Functions;
-# Exceptions are found in dual-life bin dirs but aren't
-# installed by default
-my @not_installed = qw(
- ../cpan/Encode/bin/ucm2table
- ../cpan/Encode/bin/ucmlint
- ../cpan/Encode/bin/ucmsort
- ../cpan/Encode/bin/unidump
-);
+# Exceptions that are found in dual-life bin dirs but aren't
+# installed by default; some occur only during testing:
+my $not_installed = qr{^(?:
+ \.\./cpan/Encode/bin/u(?:cm(?:2table|lint|sort)|nidump)
+ |
+ \.\./cpan/Module-Build/MB-[\w\d]+/Simple/bin/foo\.PL
+)\z}ix;
my %dist_dir_exe;
for my $f ( @programs ) {
$f =~ s/\.\z// if $^O eq 'VMS';
- next if qr/(?i:$f)/ ~~ @not_installed;
+ next if $f =~ $not_installed;
$f = basename($f);
if(qr/\A(?i:$f)\z/ ~~ %dist_dir_exe) {
ok( -f "$dist_dir_exe{lc $f}$ext", "$f$ext");