File: 05_critic.t

package info (click to toggle)
libimage-size-perl 3.221-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 508 kB
  • ctags: 23
  • sloc: xml: 816; perl: 550; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 472 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
#!/usr/bin/perl

# disable the perlcritic test
use Test::More;
plan skip_all => "disable perlcritic test for distribution";

# Test that the module passes perlcritic
use strict;
BEGIN
{
    $|  = 1;
    $^W = 1;

    use Test::More;
    unless ($ENV{AUTHOR_TESTING})
    {
        plan skip_all => "Author tests not required for installation";
    }
    else
    {
        eval "use Perl::Critic;";
        eval "use Test::Perl::Critic;";
    }
}

all_critic_ok();

exit;