Commit | Line | Data |
---|---|---|
554a9ef5 | 1 | # test if our own version numbers meet expectations |
2 | ||
0a78cd5d | 3 | use strict; |
c7588fc8 | 4 | eval 'use warnings'; |
135a59c2 | 5 | use lib "lib"; |
4d1321a7 | 6 | |
4d1321a7 | 7 | my @m; |
8 | if ($ENV{PERL_CORE}){ | |
135a59c2 | 9 | @m = ("CPAN", map { "CPAN::$_" } qw(Debug FirstTime Nox Queue Tarzip Version)); |
4d1321a7 | 10 | } else { |
28b6a607 | 11 | opendir DH, "lib/CPAN" or die; |
4d1321a7 | 12 | @m = ("CPAN", map { "CPAN::$_" } grep { s/\.pm$// } readdir DH); |
13 | } | |
554a9ef5 | 14 | |
15 | use Test::More; | |
f3fe0ae6 | 16 | plan(tests => scalar @m); |
554a9ef5 | 17 | |
18 | for my $m (@m) { | |
0a78cd5d | 19 | local $^W = 0; |
554a9ef5 | 20 | eval "require $m"; |
135a59c2 | 21 | ok($m->VERSION >= 1.76, sprintf "Found version > 1.76 for %20s: %s", $m, $m->VERSION); |
554a9ef5 | 22 | } |
23 | ||
24 | # Local Variables: | |
25 | # mode: cperl | |
26 | # cperl-indent-level: 2 | |
27 | # End: |