diff options
author | David Golden <dagolden@cpan.org> | 2010-07-18 20:51:30 -0400 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2010-07-18 20:51:30 -0400 |
commit | ef9dbfd81928becb09f9819cad411d8b62defab6 (patch) | |
tree | b9c1967208174adaf5328083e9376b90a54e2404 /t/porting/dual-life.t | |
parent | 360b85604cef450c7dccc87fe5fa44dcf82f3c7d (diff) | |
download | perl-ef9dbfd81928becb09f9819cad411d8b62defab6.tar.gz |
Added t/porting/dual-life.t
Because we manually generate Makefiles, any executables need to be
generated from .PL files in utils/. This test checks if dual-life
executables show up in utils/.
Diffstat (limited to 't/porting/dual-life.t')
-rw-r--r-- | t/porting/dual-life.t | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/t/porting/dual-life.t b/t/porting/dual-life.t new file mode 100644 index 0000000000..cf3c337017 --- /dev/null +++ b/t/porting/dual-life.t @@ -0,0 +1,29 @@ +#!/perl -w +use strict; + +# This tests properties of dual-life modules: +# +# * Are all dual-life programs being generated in utils/? + +use File::Basename; +use File::Find; +use File::Spec::Functions; +use Test::More; END { done_testing } + +my @programs; + +find( + sub { + my $name = $File::Find::name; + return if $name =~ /blib/; + return unless $name =~ m{/(?:bin|scripts?)/\S+\z}; + + push @programs, $name; + }, + qw( ../cpan ../dist ../ext ), +); + +for my $f ( @programs ) { + ok( -f catfile('..', 'utils', basename($f)), "$f" ); +} + |