File: kwalitee.t

package info (click to toggle)
libdigest-jhash-perl 0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 297; makefile: 3
file content (28 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (4)
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
use Test;
use Cwd;

#$ENV{RELEASE_TESTING}++;

my $chdir = 0;
if ( cwd() =~ m/t$/ ) {
    chdir "..";
    $chdir++;
}

eval { require Test::Kwalitee;};

if ($@) {
    plan tests => 1;
    skip("Test::Kwalitee not installed; skipping");
}
else {
    if ( $ENV{RELEASE_TESTING} ) {
        Test::Kwalitee->import();
    }
    else {
        plan tests => 1;
        skip( "Author only private tests" );
    }
}

chdir "t" if $chdir;  # back to t/