Updated the POD test to properly make use of Test::POD 1.20 or newer.
David Wheeler
15 years ago
0 | 0 |
use Module::Build;
|
1 | 1 |
|
2 | |
my $build = Module::Build->new
|
3 | |
( module_name => 'Exception::Class::DBI',
|
|
2 |
my $build = Module::Build->new(
|
|
3 |
module_name => 'Exception::Class::DBI',
|
4 | 4 |
license => 'perl',
|
5 | 5 |
create_makefile_pl => 'passthrough',
|
6 | 6 |
configure_requires => { 'Module::Build' => '0.2701' },
|
7 | 7 |
recommends => { 'Test::Pod' => '1.20' },
|
8 | 8 |
build_requires => {
|
|
9 |
'Module::Build' => '0.2701',
|
9 | 10 |
'Test::More' => '0.17',
|
10 | 11 |
'Test::Harness' => '2.03',
|
11 | 12 |
},
|
|
13 | 14 |
'DBI' => '1.28',
|
14 | 15 |
'Exception::Class' => '1.02',
|
15 | 16 |
},
|
16 | |
);
|
|
17 |
);
|
17 | 18 |
$build->create_build_script;
|
5 | 5 |
Bunce.
|
6 | 6 |
- Added the "configure_requires", and "recommends" parameters to
|
7 | 7 |
Build.PL.
|
|
8 |
- Updated the POD test to properly make use of Test::POD 1.20 or
|
|
9 |
newer.
|
8 | 10 |
|
9 | 11 |
0.95 2006-07-18T22:14:41
|
10 | 12 |
- Fixed test failure for localized error messages. Reported by Jens
|
0 | 0 |
#!perl -w
|
1 | 1 |
|
2 | |
# $Id: z_pod.t,v 1.1 2003/08/26 02:24:44 david Exp $
|
|
2 |
# $Id$
|
3 | 3 |
|
|
4 |
use strict;
|
4 | 5 |
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();
|