Skip to content

README bug on the running of tests #3328

Open
@paul-hammant

Description

@paul-hammant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xRelated to ModSecurity version 3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions