1509N/AAllows to run test suite when it's configured and build outside of
1509N/Asource directory.
1509N/A
1509N/A--- modsecurity-apache_2.7.2/tests/run-unit-tests.pl.in Tue Jan 22 18:47:08 2013
1509N/A+++ modsecurity-apache_2.7.2/tests/run-unit-tests.pl.in Wed Mar 13 08:23:44 2013
1509N/A@@ -16,7 +16,7 @@
1509N/A my @TYPES = qw(tfn op action);
1509N/A my $TEST = "./msc_test";
1509N/A my $SCRIPT = basename($0);
1509N/A-my $SCRIPTDIR = dirname($0);
1509N/A+my $SCRIPTDIR = "@srcdir@";
1509N/A my $PASSED = 0;
1509N/A my $TOTAL = 0;
1509N/A my $DEBUG = $ENV{MSC_TEST_DEBUG} || 0;
1509N/A@@ -85,7 +85,10 @@
1509N/A $param = escape($t{output});
1509N/A }
1509N/A elsif ($t{type} eq "op") {
1509N/A- $param = escape($t{param});
1509N/A+ $param = escape($t{param});
1509N/A+ if ($t{name} eq "pmFromFile") {
1509N/A+ $param = "$SCRIPTDIR/$param";
1509N/A+ }
1509N/A }
1509N/A elsif ($t{type} eq "action") {
1509N/A $param = escape($t{param});