diff --git a/run-tests.sh b/run-tests.sh index 2803c33cb..a03e91bc7 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -26,14 +26,21 @@ test "x$FILTER" = "x" && FILTER=. TESTS=`grep -r --include='*.py' -l -e doctest -e unittest * | grep -E "$FILTER"` ret=0 +FAILS= for test in $TESTS; do echo "Running tests in $test" test=`echo "$test" | sed 's@[/\\]@.@g;s@[.]py$@@'` if ! $PYTHON -m $test -v; then ret=$((ret+1)) + FAILS="$FAILS +$test" fi done -if test $ret != 0; then - echo "$ret source file(s) had tests failing" >&2 + echo + echo "SUMMARY:" +if test $ret = 0; then + echo "All tests passed." +else + echo "$ret source file(s) had tests failing:$FAILS" >&2 fi exit $ret