| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
|
| 6 |
use Test::More tests => 3; |
| 7 |
use File::Spec; |
| 8 |
|
| 9 |
sub _is_present |
| 10 |
{ |
| 11 |
my $path = shift; |
| 12 |
|
| 13 |
my $fn = File::Spec->catfile( File::Spec->curdir(), @$path ); |
| 14 |
|
| 15 |
return ( ( -e $fn ) and ( ( -s $fn ) > 0 ) ); |
| 16 |
} |
| 17 |
|
| 18 |
{ |
| 19 |
# TEST*3 |
| 20 |
foreach my $path ( |
| 21 |
[qw#lib XML LibXML DOM.pod#], |
| 22 |
[qw#lib XML LibXML Document.pod#], |
| 23 |
[qw#lib XML LibXML Parser.pod#], |
| 24 |
) |
| 25 |
{ |
| 26 |
if ( !ok( scalar( _is_present($path) ), "Path [@$path] exists." ) ) |
| 27 |
{ |
| 28 |
diag('Perhaps you should run "make docs"'); |
| 29 |
} |
| 30 |
} |
| 31 |
} |
| 32 |
|