diff options
Diffstat (limited to 'cpan/Archive-Tar/t/99_pod.t')
-rw-r--r-- | cpan/Archive-Tar/t/99_pod.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpan/Archive-Tar/t/99_pod.t b/cpan/Archive-Tar/t/99_pod.t new file mode 100644 index 0000000000..45be965f04 --- /dev/null +++ b/cpan/Archive-Tar/t/99_pod.t @@ -0,0 +1,24 @@ +use Test::More; +use File::Spec; +use File::Find; +use strict; + +BEGIN { chdir 't' if -d 't' }; + +eval 'use Test::Pod'; +plan skip_all => "Test::Pod v0.95 required for testing POD" + if $@ || $Test::Pod::VERSION < 0.95; + +plan skip_all => "Pod tests disabled under perl core" if $ENV{PERL_CORE}; + +my @files; +find( sub { push @files, File::Spec->catfile( + File::Spec->splitdir( $File::Find::dir ), $_ + ) if /\.p(?:l|m|od)$/ }, File::Spec->catdir(qw(.. blib lib) )); + +plan tests => scalar @files; +for my $file ( @files ) { + pod_file_ok( $file ); +} + + |