ModSecurity/test/test-suite.sh
Felipe Zimmerle f0155e3f32 Adds support to make check
The regression and unit tests are now integrated with `make check`.
It is possible to use make check -jN to have multiple tests running
in parallel.
2016-06-14 09:47:41 -03:00

12 lines
187 B
Bash
Executable File

#!/bin/bash
TEST=$1 1> /dev/null
cd test 1> /dev/null
if [[ $TEST == *"test-cases/regression/"* ]]
then
./regression_tests ../$*
else
./unit_tests ../$*
fi
cd - 1> /dev/null