box-o-sand/lcthw-remnants-2/ex29/tests/runtests.sh

20 lines
296 B
Bash
Raw Normal View History

2016-04-16 20:00:17 +00:00
echo "Running unit tests:"
for i in tests/*_tests
do
if test -f $i
then
if $VALGRIND ./$i 2>> tests/tests.log
then
echo $i PASS
else
echo "ERROR in test $i: here's tests/tests.log"
echo "------"
tail tests/tests.log
exit 1
fi
fi
done
echo ""