File: 00use.t

package info (click to toggle)
liblog-report-lexicon-perl 1.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 452 kB
  • sloc: perl: 2,676; makefile: 9
file content (43 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download
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
#!/usr/bin/env perl
use warnings;
use strict;

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/PPI
    POSIX
    Test::Pod
    Log::Report::Optional
    Log::Report
    String::Print
   /;

warn "Perl $]\n";
foreach my $package (sort @show_versions)
{   eval "require $package";

    my $report
      = !$@                    ? "version ". ($package->VERSION || 'unknown')
      : $@ =~ m/^Can't locate/ ? "not installed"
      : "reports error";

    warn "$package $report\n";
}

use_ok('Log::Report');
use_ok('Log::Report::Extract');
use_ok('Log::Report::Lexicon::Index');
use_ok('Log::Report::Lexicon::PO');
use_ok('Log::Report::Lexicon::POT');
use_ok('Log::Report::Lexicon::POTcompact');
use_ok('Log::Report::Translator::Context');
use_ok('Log::Report::Translator');
use_ok('Log::Report::Translator::POT');

# Log::Report::Extract::PerlPPI         requires optional PPI

done_testing;