Skip to content

Commit 7d50157

Browse files
author
Felipe Zimmerle
committed
Adds tests from ModSecurity version 2
Some modifications were made in order to have it workable in the v3 three.
1 parent 5450553 commit 7d50157

55 files changed

Lines changed: 9028 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

configure.ac

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,51 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
99
FIND_APXS()
1010
FIND_LIBMOD()
1111
AX_PROG_APACHE()
12+
AC_PATH_PROGS(PERL, [perl perl5], )
1213
AC_SUBST(APXS)
1314
AC_SUBST(V3LIB)
1415
AC_SUBST(V3INCLUDE)
16+
17+
# Some directories
18+
MSC_BASE_DIR=`pwd`
19+
MSC_PKGBASE_DIR="$MSC_BASE_DIR/.."
20+
MSC_TEST_DIR="$MSC_BASE_DIR/tests"
21+
MSC_REGRESSION_DIR="$MSC_TEST_DIR/regression"
22+
MSC_REGRESSION_SERVERROOT_DIR="$MSC_REGRESSION_DIR/server_root"
23+
MSC_REGRESSION_CONF_DIR="$MSC_REGRESSION_SERVERROOT_DIR/conf"
24+
MSC_REGRESSION_LOGS_DIR="$MSC_REGRESSION_SERVERROOT_DIR/logs"
25+
MSC_REGRESSION_DOCROOT_DIR="$MSC_REGRESSION_SERVERROOT_DIR/htdocs"
26+
27+
AC_SUBST(MSC_BASE_DIR)
28+
AC_SUBST(MSC_PKGBASE_DIR)
29+
AC_SUBST(MSC_TEST_DIR)
30+
AC_SUBST(MSC_REGRESSION_DIR)
31+
AC_SUBST(MSC_REGRESSION_SERVERROOT_DIR)
32+
AC_SUBST(MSC_REGRESSION_CONF_DIR)
33+
AC_SUBST(MSC_REGRESSION_LOGS_DIR)
34+
AC_SUBST(MSC_REGRESSION_DOCROOT_DIR)
35+
36+
37+
38+
APXS_SBINDIR="`$APXS -q SBINDIR`"
39+
APXS_PROGNAME="`$APXS -q PROGNAME`"
40+
41+
APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
42+
AC_SUBST(APXS_HTTPD)
43+
APXS_LIBEXECDIR="`$APXS -q LIBEXECDIR`"
44+
if test "xx$APXS_LIBEXECDIR" = "xx"; then APXS_LIBEXECDIR="`$APXS -q LIBDIR`/modules"; fi
45+
AC_SUBST(APXS_LIBEXECDIR)
46+
47+
48+
1549
AC_CONFIG_FILES([\
1650
Makefile \
1751
build/apxs-wrapper \
52+
tests/regression/server_root/conf/httpd.conf \
53+
tests/regression/misc/40-secRemoteRules.t \
54+
tests/regression/misc/60-pmfromfile-external.t \
55+
tests/regression/misc/50-ipmatchfromfile-external.t \
56+
tests/run-regression-tests.pl
1857
])
1958

2059
#[chmod +x build/apxs-wrapper])

tests/.deps/msc_test-msc_test.Po

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# dummy

0 commit comments

Comments
 (0)