nes-proj/tests/check-test.sh
2017-11-23 06:53:24 -08:00

11 lines
223 B
Bash
Executable File

#!/bin/bash
FAILS=`grep -c 'TEST FAIL' $1/summary`
echo "======== Test outcome ======="
if [ -f "$1/summary" ] && [ $FAILS == 0 ]; then
printf "Test %s OK\n" "$1"
exit 0
else
printf "Test %s FAIL\n" "$1"
exit 1
fi