blob: 346c58769a15a9e149b84ce51b2f981f41122c29 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
BEGIN {
if ($ENV{PERL_CORE}) {
chdir 't' if -d 't';
@INC = ("../lib", "lib/compress");
}
}
use lib qw(t t/compress);
use strict ;
use warnings ;
use Test::More ;
BEGIN
{
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
my $VERSION = '2.031';
my @NAMES = qw(
);
my @OPT = qw(
);
plan tests => 1 + @NAMES + @OPT + $extra ;
ok 1;
foreach my $name (@NAMES)
{
use_ok($name, $VERSION);
}
foreach my $name (@OPT)
{
eval " require $name " ;
if ($@)
{
ok 1, "$name not available"
}
else
{
my $ver = eval("\$${name}::VERSION");
is $ver, $VERSION, "$name version should be $VERSION"
or diag "$name version is $ver, need $VERSION" ;
}
}
}
|