Commit 9c1fc7d0 by Zachary Snow

test runner surfaces failures

parent f3e8f530
...@@ -2,10 +2,18 @@ ...@@ -2,10 +2,18 @@
cd `dirname "${BASH_SOURCE[0]}"` cd `dirname "${BASH_SOURCE[0]}"`
failures=0
for script in `ls */run.sh`; do for script in `ls */run.sh`; do
suite=`dirname $script` suite=`dirname $script`
echo "--------------------" echo "--------------------"
echo "SUITE: $suite" echo "SUITE: $suite"
echo "--------------------" echo "--------------------"
(cd $suite; ./run.sh) (cd $suite; ./run.sh)
if [ $? -ne 0 ]; then
failures=`expr $failures + 1`
fi
done done
if [ $failures -ne 0 ]; then
echo "$failures test suite(s) failed"
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment