File: runtests.pl

package info (click to toggle)
ack 2.14-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,496 kB
  • ctags: 230
  • sloc: perl: 8,016; ansic: 21; fortran: 11; makefile: 7; sh: 5
file content (20 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/perl
#---------------------------------------------------------------------
# Run tests for ack
#
# Windows makes it hard to temporarily set environment variables, and
# has horrible quoting rules, so what should be a one-liner gets its
# own script.
#---------------------------------------------------------------------

use ExtUtils::Command::MM;

$ENV{PERL_DL_NONLAZY} = 1;
$ENV{ACK_TEST_STANDALONE} = shift;

# Make sure the tests' standard input is *never* a pipe (messes with ack's filter detection).
open STDIN, '<', '/dev/null';

printf("Running tests on %s\n",
       $ENV{ACK_TEST_STANDALONE} ? '/usr/bin/ack' : 'blib/script/ack');
test_harness(shift, shift, shift);