From 9c1fc7d0206e13e5d80449f2751a381d278354db Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Thu, 18 Apr 2019 00:58:58 -0400 Subject: [PATCH] test runner surfaces failures --- test/run-all.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/run-all.sh b/test/run-all.sh index 8db7cfc..ee651c9 100755 --- a/test/run-all.sh +++ b/test/run-all.sh @@ -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