Upgrade to Test::Harness 2.30.
[p5sagit/p5-mst-13.2.git] / lib / Test / Harness / t / pod.t
CommitLineData
e8df9912 1BEGIN {
2 eval "use Test::More";
3 if ($@) {
4 print "1..0 # SKIPPED: Test::More not installed.\n";
5 exit;
6 }
7}
0bf5423d 8
9use File::Spec;
10use File::Find;
11use strict;
12
13eval "use Test::Pod 0.95";
14
15if ($@) {
16 plan skip_all => "Test::Pod v0.95 required for testing POD";
17} else {
0bf5423d 18 my @files;
19 my $blib = File::Spec->catfile(qw(blib lib));
20 find( sub {push @files, $File::Find::name if /\.p(l|m|od)$/}, $blib);
21 plan tests => scalar @files;
cf2ab31a 22 Test::Pod::pod_file_ok($_) foreach @files;
0bf5423d 23}