t/950-kwalitee/010-pod.t
raw| 1 | #!perl -w |
| 2 | use strict; |
| 3 | use Test::More; |
| 4 | use ExtUtils::Manifest qw(maniread); |
| 5 | $ENV{AUTOMATED_TESTING} || $ENV{IMAGER_AUTHOR_TESTING} |
| 6 | or plan skip_all => "POD only tested under automated or author testing"; |
| 7 | eval "use Test::Pod 1.00;"; |
| 8 | plan skip_all => "Test::Pod 1.00 required for testing POD" if $@; |
| 9 | my $manifest = maniread(); |
| 10 | my @pod = grep /\.(pm|pl|pod|PL)$/, keys %$manifest; |
| 11 | plan tests => scalar(@pod); |
| 12 | for my $file (@pod) { |
| 13 | pod_file_ok($file, "pod ok in $file"); |
| 14 | } |