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