test suite updates: highlight failed test scripts; optionally save failed test output; report number of successful tests; exit based on number of test failures; indent warning messages to make them stand out

This commit is contained in:
Chet Ramey
2025-10-16 11:44:26 -04:00
parent 6a48b39bba
commit 2a645237d3
132 changed files with 1364 additions and 813 deletions
+3 -1
View File
@@ -15,6 +15,8 @@ if (( $UID == 0 )); then
echo "test-tests: the test suite should not be run as root" >&2
fi
. ./test-aux-functions
b()
{
[ "$@" ]
@@ -505,4 +507,4 @@ t \( \)
t 1 = 1 -a \( \) -a -n ""
${THIS_SH} ./test1.sub
test_runsub ./test1.sub