mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Changes the check script to detect segfaults
This commit is contained in:
committed by
Felipe Zimmerle
parent
ff65d618e4
commit
a88dc8efa9
@@ -10,8 +10,14 @@ FILE=${@: -1}
|
||||
|
||||
if [[ $FILE == *"test-cases/regression/"* ]]
|
||||
then
|
||||
$VALGRIND $PARAM ./regression_tests ../$FILE
|
||||
echo $VALGRIND $PARAM ./regression_tests ../$FILE
|
||||
AMOUNT=$(./regression_tests countall ../$FILE)
|
||||
for i in `seq 1 $AMOUNT`; do
|
||||
$VALGRIND $PARAM ./regression_tests ../$FILE:$i
|
||||
if [ $? -eq 139 ]; then
|
||||
echo ":test-result: FAIL segfault: ../$FILE:$i"
|
||||
fi
|
||||
echo $VALGRIND $PARAM ./regression_tests ../$FILE:$i
|
||||
done;
|
||||
else
|
||||
$VALGRIND $PARAM ./unit_tests ../$FILE
|
||||
fi
|
||||
|
Reference in New Issue
Block a user