do case insensitive grepping when checking tests

This commit is contained in:
Michael Schaffner 2018-09-05 09:28:57 +02:00 committed by Florian Zaruba
parent 90619fd80b
commit 0de8beca5b

View file

@ -38,10 +38,10 @@ echo "checking files:"
ls "${1}"*.log
# check for patterns
NUM_PASSED=`grep -s "SUCCESS" ${1}*.log | wc -l`
NUM_FAILED=`grep -s "FAILED" ${1}*.log | wc -l`
NUM_FATAL=`grep -s "Fatal:" ${1}*.log | wc -l`
NUM_ERROR=`grep -s "Error:" ${1}*.log | wc -l`
NUM_PASSED=`grep -i -s "SUCCESS" ${1}*.log | wc -l`
NUM_FAILED=`grep -i -s "FAILED" ${1}*.log | wc -l`
NUM_FATAL=`grep -i -s "Fatal:" ${1}*.log | wc -l`
NUM_ERROR=`grep -i -s "Error:" ${1}*.log | wc -l`
echo "NUM_TOTAL: $NUM_TOTAL"
echo "NUM_PASSED: $NUM_PASSED"