Codebase list libexception-class-dbi-perl / 8b452c4
Updated the POD test to properly make use of Test::POD 1.20 or newer. David Wheeler 15 years ago
3 changed file(s) with 11 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
00 use Module::Build;
11
2 my $build = Module::Build->new
3 ( module_name => 'Exception::Class::DBI',
2 my $build = Module::Build->new(
3 module_name => 'Exception::Class::DBI',
44 license => 'perl',
55 create_makefile_pl => 'passthrough',
66 configure_requires => { 'Module::Build' => '0.2701' },
77 recommends => { 'Test::Pod' => '1.20' },
88 build_requires => {
9 'Module::Build' => '0.2701',
910 'Test::More' => '0.17',
1011 'Test::Harness' => '2.03',
1112 },
1314 'DBI' => '1.28',
1415 'Exception::Class' => '1.02',
1516 },
16 );
17 );
1718 $build->create_build_script;
55 Bunce.
66 - Added the "configure_requires", and "recommends" parameters to
77 Build.PL.
8 - Updated the POD test to properly make use of Test::POD 1.20 or
9 newer.
810
911 0.95 2006-07-18T22:14:41
1012 - Fixed test failure for localized error messages. Reported by Jens
00 #!perl -w
11
2 # $Id: z_pod.t,v 1.1 2003/08/26 02:24:44 david Exp $
2 # $Id$
33
4 use strict;
45 use Test::More;
5 use File::Spec;
6 use File::Find;
7 use strict;
8
9 eval "use Test::Pod 0.95";
10
11 if ($@) {
12 plan skip_all => "Test::Pod v0.95 required for testing POD";
13 } else {
14 Test::Pod->import;
15 my @files;
16 my $blib = File::Spec->catfile(qw(blib lib));
17 find( sub {push @files, $File::Find::name if /\.p(l|m|od)$/}, $blib);
18 plan tests => scalar @files;
19 foreach my $file (@files) {
20 pod_file_ok($file);
21 }
22 }
6 eval "use Test::Pod 1.20";
7 plan skip_all => "Test::Pod 1.20 required for testing POD" if $@;
8 all_pod_files_ok();