10 # Skip if doing a regular install
11 unless ( $ENV{AUTOMATED_TESTING} ) {
12 plan( skip_all => "Author tests not required for installation" );
15 # Can we run the POD tests?
16 eval "use Test::Pod 1.00";
18 plan( skip_all => "Test::Pod 1.00 required for testing POD" );
25 #####################################################################
26 # WARNING: INSANE BLACK MAGIC
27 #####################################################################
29 # Hack Pod::Simple::BlackBox to ignore the Test::Inline
30 # "Extended Begin" syntax.
31 # For example, "=begin has more than one word errors"
32 my $begin = \&Pod::Simple::BlackBox::_ponder_begin;
35 my $content = join ' ', splice @$para, 2;
36 $content =~ s/^\s+//s;
37 $content =~ s/\s+$//s;
38 my @words = split /\s+/, $content;
39 if ( $words[0] =~ /^test(?:ing)?\z/s ) {
40 foreach ( 2 .. $#$para ) {
43 $para->[2] = $words[0];
53 *Pod::Simple::BlackBox::_ponder_begin = \&mybegin;
56 #####################################################################
58 #####################################################################