10
# Skip if doing a regular install
11
unless ( $ENV{AUTOMATED_TESTING} ) {
12
plan( skip_all => "Author tests not required for installation" );
15
# Load the testing modules
16
eval "use Test::Pod 1.00";
18
# Can we run the version tests
19
eval "use Test::MinimumVersion;";
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"
33
if ( $Test::Pod::VERSION ) {
34
$begin = \&Pod::Simple::BlackBox::_ponder_begin;
38
my $content = join ' ', splice @$para, 2;
39
$content =~ s/^\s+//s;
40
$content =~ s/\s+$//s;
41
my @words = split /\s+/, $content;
42
if ( $words[0] =~ /^test(?:ing)?\z/s ) {
43
foreach ( 2 .. $#$para ) {
46
$para->[2] = $words[0];
56
if ( $Test::Pod::VERSION ) {
57
*Pod::Simple::BlackBox::_ponder_begin = \&mybegin;
61
#####################################################################
63
#####################################################################
66
ok( 1, "Running author tests" );
69
if ( $Test::Pod::VERSION ) {
74
if ( $Test::MinimumVersion::VERSION and $Test::MinimumVersion::VERSION > 0.05 ) {
75
all_minimum_version_from_metayml_ok();