mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-14 07:30:49 +02:00
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:
+7
-5
@@ -17,6 +17,8 @@ if [ -n "$funcs" ]; then
|
||||
unset -f $funcs
|
||||
fi
|
||||
|
||||
. ./test-aux-functions
|
||||
|
||||
a()
|
||||
{
|
||||
x=$((x - 1))
|
||||
@@ -168,20 +170,20 @@ ${THIS_SH} -c 'type -t zf'
|
||||
${THIS_SH} -c 'type zf'
|
||||
unset -f zf
|
||||
|
||||
${THIS_SH} ./func1.sub
|
||||
test_runsub ./func1.sub
|
||||
|
||||
# tests for functions whose bodies are not group commands, with and without
|
||||
# attached redirections
|
||||
${THIS_SH} ./func2.sub
|
||||
test_runsub ./func2.sub
|
||||
|
||||
# test for some posix-specific function behavior
|
||||
${THIS_SH} ./func3.sub
|
||||
test_runsub ./func3.sub
|
||||
|
||||
# FUNCNEST testing
|
||||
${THIS_SH} ./func4.sub
|
||||
test_runsub ./func4.sub
|
||||
|
||||
# function naming restrictions
|
||||
${THIS_SH} ./func5.sub
|
||||
test_runsub ./func5.sub
|
||||
|
||||
unset -f myfunction
|
||||
myfunction() {
|
||||
|
||||
Reference in New Issue
Block a user