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
|
#!/usr/bin/env perl
use warnings;
use strict;
use lib 'lib';
use Test::More;
# The versions of the following packages are reported to help understanding
# the environment in which the tests are run. This is certainly not a
# full list of all installed modules.
my @show_versions =
qw/Test::More
Log::Report
Log::Report::Optional
Log::Report::Lexicon
String::Print
Template
/;
foreach my $package (@show_versions)
{ eval "require $package";
no strict 'refs';
my $report
= !$@ ? "version ". (${"$package\::VERSION"} || 'unknown')
: $@ =~ m/^Can't locate/ ? "not installed"
: "reports error";
warn "$package $report\n";
}
require_ok('Log::Report::Template');
require_ok('Log::Report::Template::Extract');
require_ok('Log::Report::Template::Textdomain');
done_testing;
|