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
View File
@@ -44,9 +44,11 @@ eval 'X() { (a)>\' ; . ./bar 2>/dev/null
rm -f cve7169-bad2 $TMPDIR/bar
# CVE-2014-7186
printf '\texportfunc1.sub\n'
${THIS_SH} ./exportfunc1.sub
# CVE-2014-7187
printf '\texportfunc2.sub\n'
${THIS_SH} ./exportfunc2.sub
# CVE-2014-6277
@@ -90,4 +92,5 @@ unset -f foo
env $'BASH_FUNC_#badname%%'=$'() { :; }\nfoo () { echo transform-4; } ' ${THIS_SH} -c 'foo' 2>/dev/null
# tests of exported names
printf '\texportfunc3.sub\n'
${THIS_SH} ./exportfunc3.sub