mirror of https://github.com/zachjs/sv2v.git
test runner surfaces failures
This commit is contained in:
parent
f3e8f530d9
commit
9c1fc7d020
|
|
@ -2,10 +2,18 @@
|
|||
|
||||
cd `dirname "${BASH_SOURCE[0]}"`
|
||||
|
||||
failures=0
|
||||
for script in `ls */run.sh`; do
|
||||
suite=`dirname $script`
|
||||
echo "--------------------"
|
||||
echo "SUITE: $suite"
|
||||
echo "--------------------"
|
||||
(cd $suite; ./run.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
failures=`expr $failures + 1`
|
||||
fi
|
||||
done
|
||||
if [ $failures -ne 0 ]; then
|
||||
echo "$failures test suite(s) failed"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue