ModSecurity icon indicating copy to clipboard operation
ModSecurity copied to clipboard

README bug on the running of tests

Open paul-hammant opened this issue 10 months ago • 9 comments

Describe the bug

In the readme, there's advice for

$ cd test
$ ./regression-tests
$ ./unit-tests

The second line should be $ ./regression_tests (underscore not dash), but I can't intuit how to run the unit tests, but am sure that tests/unit-tests doesn't exist anymore. There is a test-suite.sh in the same folder this is what I get without any params passed to it:

$ cd test/
/test$ ./test-suite.sh 
./test-suite.sh: line 3: cd: test: No such file or directory
./test-suite.sh: line 6: $length: substring expression < 0
./test-suite.sh: line 29: ./unit_tests: No such file or directory
:test-result: SKIP: json is not enabled. (unit/127) .././test-suite.sh

OK, after a fresh clone-recursive I get back to attempting to run /test$ ./test_suite.sh again and it completes: "Ran a total of: 4326 unit tests - 11 failed." Not sure of zero failures was expected but 11 is better than 4326 failures.

paul-hammant avatar Jan 13 '25 16:01 paul-hammant