mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
19 lines
330 B
Bash
Executable File
19 lines
330 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd test 1> /dev/null
|
|
|
|
length=$(($#-1))
|
|
array=${@:1:$length}
|
|
|
|
PARAM=$array
|
|
FILE=${@: -1}
|
|
|
|
if [[ $FILE == *"test-cases/regression/"* ]]
|
|
then
|
|
$VALGRIND $PARAM ./regression_tests ../$FILE
|
|
echo $VALGRIND $PARAM ./regression_tests ../$FILE
|
|
else
|
|
$VALGRIND $PARAM ./unit_tests ../$FILE
|
|
fi
|
|
cd - 1> /dev/null
|