File: perlcritic.t

package info (click to toggle)
spamassassin 4.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,988 kB
  • sloc: perl: 88,863; ansic: 5,193; sh: 3,737; javascript: 339; sql: 295; makefile: 209; python: 49
file content (14 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl -T
# Wrapper around test until perlcritic fixes bug running under -T

# sa_t_init handles a number of necessary cross-platform initialization that is necessary
# even though this wrapper doesn't need most things that are also in there
use lib '.'; use lib 't';
use SATest; sa_t_init('perlcritic');

use strict;
use warnings;

-d "t" && "$^X t/perlcritic.pl" =~ /(.*)/ ||
    "$^X perlcritic.pl" =~ /(.*)/;
exec($1);