Re: [Mod-security-developers] [Vote] 2.7.5
Brought to you by:
victorhora,
zimmerletw
|
From: Christian F. <chr...@ti...> - 2013-07-16 19:05:54
|
Hello Rainer,
On Tue, Jul 16, 2013 at 01:05:08PM +0200, Rainer Jung wrote:
> Hi Christian,
>
> I think when running the unit tests via "make test" you should add
> -DMSC_TEST to CFLAGS. That flag comments all httpd calls and produces
> standalone binaries.
Thanks for the info. True, it's mentioned in the reference guide.
It's just that I used outdated documentation.
Here we have the culprit:
$> make CFLAGS=-DMSC_TEST test
...
Loaded 8 tests from ./op/rx.t
1) op "rx": passed (Pattern match "" at UNIT_TEST.)
2) op "rx": passed
3) op "rx": passed (Pattern match "" at UNIT_TEST.)
4) op "rx": passed (Pattern match "abc" at UNIT_TEST.)
5) op "rx": passed (Pattern match "def" at UNIT_TEST.)
6) op "rx": passed (Pattern match "ghi" at UNIT_TEST.)
7) op "rx": passed
ERROR: Failed to create rule for op "rx": Error creating rule: Error compiling pattern (offset 2): unrecognized character after (? or (?-
Test exited with signal 11.
Executed: ./msc_test "-t" "op" "-n" "rx" "-p" "(?^i:^([^=])\s*=\s*((?:abc)+(?:def|ghi){2})$)" "-D" "0" "-r" "1"
8) op "rx": failed
Passed: 7; Failed: 1
...
576/577 tests passed.
FAIL: run-unit-tests.pl
========================================
1 of 1 test failed
Please report to su...@mo...
========================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/usr/src/modsecurity/ModSecurity-remotes-2.7.x/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/usr/src/modsecurity/ModSecurity-remotes-2.7.x/tests'
make: *** [check-recursive] Error 1
Cheers,
Christian
--
You cannot force ideas. Successful ideas are the result of slow
growth. Ideas do not reach perfection in a day, no matter how much
study is put upon them.
--- Alexander Graham Bell
|