1 Allows to run test suite when it's configured and build outside of
4 --- modsecurity-apache_2.7.2/tests/run-unit-tests.pl.in Tue Jan 22 18:47:08 2013
5 +++ modsecurity-apache_2.7.2/tests/run-unit-tests.pl.in Wed Mar 13 08:23:44 2013
7 my @TYPES = qw(tfn op action);
8 my $TEST = "./msc_test";
9 my $SCRIPT = basename($0);
10 -my $SCRIPTDIR = dirname($0);
11 +my $SCRIPTDIR = "@srcdir@";
14 my $DEBUG = $ENV{MSC_TEST_DEBUG} || 0;
16 $param = escape($t{output});
18 elsif ($t{type} eq "op") {
19 - $param = escape($t{param});
20 + $param = escape($t{param});
21 + if ($t{name} eq "pmFromFile") {
22 + $param = "$SCRIPTDIR/$param";
25 elsif ($t{type} eq "action") {
26 $param = escape($t{param});