# A template for Makefile.PL used by Arena Networks. # - Set the $PACKAGE variable to the name of your module. # - Set $LAST_API_CHANGE to reflect the last version you changed the API # of your module. # - Fill in your dependencies in PREREQ_PM # Alternatively, you can say the hell with this and use h2xs. use 5.004; use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. $LAST_API_CHANGE = 0.10; eval { require Pod::Tests }; unless ($@) { # Make sure we did find the module. if( $Pod::Tests::VERSION < $LAST_API_CHANGE ) { warn < 'Pod-Tests', VERSION_FROM => 'lib/Pod/Tests.pm', EXE_FILES => [ 'bin/pod2test' ], PREREQ_PM => { 'Test::More' => 0.33, 'Test::Harness' => 1.22, }, 'dist' => { COMPRESS => 'gzip -9', SUFFIX => '.gz', DIST_DEFAULT => 'all tardist', }, ); # If PERL_TEST_ALL is set, run "make test" against other perls # as well as the current perl. { package MY; sub test_via_harness { my($self, $orig_perl, $tests) = @_; my @other_perls = qw(bleadperl perl5.6.1 perl5.005_03 perl5.004_05 perl5.004_04 perl5.004 ); my @perls = ($orig_perl); push @perls, @other_perls if $ENV{PERL_TEST_ALL}; my $out; foreach my $perl (@perls) { $out .= $self->SUPER::test_via_harness($perl, $tests); } return $out; } } # Generating pod2test's tests. print "Running pod2test.\n"; system(qq{$^X "-Ilib" bin/pod2test t/02_tests.t t/03_pod2test.t}); # Test that pod2test generates no file when given something that has no # tests. system(qq{$^X "-Ilib" bin/pod2test MANIFEST t/i_should_not_be_written.t});