summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2010-07-19 21:51:30 -0700
committerDavid Golden <dagolden@cpan.org>2010-07-19 21:54:53 -0700
commit52143fbb9d625195866dfd908e7e2ed2c9492c50 (patch)
treee257769f29e4ea39706e7d8f5564ca716ca48202
parent09476ae38ccc4a195ebeff83ef2774054aa87b97 (diff)
downloadperl-52143fbb9d625195866dfd908e7e2ed2c9492c50.tar.gz
Add exceptions to dual-life.t
-rw-r--r--t/porting/dual-life.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/porting/dual-life.t b/t/porting/dual-life.t
index cf3c337017..cf53d9aa0c 100644
--- a/t/porting/dual-life.t
+++ b/t/porting/dual-life.t
@@ -1,4 +1,5 @@
#!/perl -w
+use 5.010;
use strict;
# This tests properties of dual-life modules:
@@ -10,6 +11,15 @@ use File::Find;
use File::Spec::Functions;
use Test::More; END { done_testing }
+# Exceptions are found in dual-life bin dirs but aren't
+# installed by default
+my @exceptions = qw(
+ ../cpan/Encode/bin/ucm2table
+ ../cpan/Encode/bin/ucmlint
+ ../cpan/Encode/bin/ucmsort
+ ../cpan/Encode/bin/unidump
+);
+
my @programs;
find(
@@ -19,11 +29,12 @@ find(
return unless $name =~ m{/(?:bin|scripts?)/\S+\z};
push @programs, $name;
- },
+ },
qw( ../cpan ../dist ../ext ),
);
for my $f ( @programs ) {
+ next if $f ~~ @exceptions;
ok( -f catfile('..', 'utils', basename($f)), "$f" );
}