forked from andk/cpanpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03pkgs.t
36 lines (31 loc) · 954 Bytes
/
03pkgs.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# test if our own version numbers meet expectations
use strict;
eval 'use warnings';
use lib "lib";
my @m;
if ($ENV{PERL_CORE}){
@m = ("CPAN", map { "CPAN::$_" } qw(Debug
DeferredCode
Distroprefs
FirstTime
Kwalify
Nox
Queue
Tarzip
Version
));
} else {
opendir DH, "lib/CPAN" or die;
@m = ("CPAN", map { "CPAN::$_" } grep { s/\.pm$// } readdir DH);
}
use Test::More;
plan(tests => scalar @m);
for my $m (@m) {
local $^W = 0;
eval "require $m";
ok($m->VERSION >= 1.76, sprintf "Found version > 1.76 for %20s: %s", $m, $m->VERSION);
}
# Local Variables:
# mode: cperl
# cperl-indent-level: 2
# End: