blob: bf7ed53a40c5286b3eb5e6e05b3ebd4225cc545c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
################################################################################
#
# !!!!! Do NOT edit this file directly! !!!!!
#
# Edit mktests.PL and/or parts/inc/podtest instead.
#
################################################################################
BEGIN {
if ($ENV{'PERL_CORE'}) {
chdir 't' if -d 't';
@INC = ('../lib', '../ext/Devel/PPPort/t') if -d '../lib' && -d '../ext';
require Config; import Config;
use vars '%Config';
if (" $Config{'extensions'} " !~ m[ Devel/PPPort ]) {
print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
exit 0;
}
}
else {
unshift @INC, 't';
}
sub load {
eval "use Test";
require 'testutil.pl' if $@;
}
if (0) {
load();
plan(tests => 0);
}
}
use Devel::PPPort;
use strict;
$^W = 1;
package Devel::PPPort;
use vars '@ISA';
require DynaLoader;
@ISA = qw(DynaLoader);
bootstrap Devel::PPPort;
package main;
my @pods = qw( HACKERS PPPort.pm ppport.h devel/regenerate devel/buildperl.pl );
my $reason = '';
if ($ENV{'SKIP_SLOW_TESTS'}) {
$reason = 'SKIP_SLOW_TESTS';
}
else {
# Try loading Test::Pod
eval q{
use Test::Pod;
$Test::Pod::VERSION >= 0.95
or die "Test::Pod version only $Test::Pod::VERSION";
import Test::Pod tests => scalar @pods;
};
$reason = 'Test::Pod >= 0.95 required' if $@;
}
if ($reason) {
load();
plan(tests => scalar @pods);
}
for (@pods) {
print "# checking $_\n";
if ($reason) {
skip("skip: $reason", 0);
}
else {
pod_file_ok($_);
}
}
|