CI: added check-test.sh

This commit is contained in:
Simon Duquennoy 2017-11-16 06:49:18 -08:00
parent 59c7f356fd
commit e40d106f85
1 changed files with 10 additions and 0 deletions

10
tests/check-test.sh Executable file
View File

@ -0,0 +1,10 @@
#!/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