mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-10 20:20:38 +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:
+17
-12
@@ -11,6 +11,8 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
. ./test-aux-functions
|
||||
#
|
||||
# These should all be safe
|
||||
LC_ALL=C
|
||||
LC_CTYPE=C
|
||||
@@ -348,31 +350,34 @@ readonly xx=5
|
||||
echo $((xx=5))
|
||||
echo $?
|
||||
|
||||
${THIS_SH} ./errors1.sub
|
||||
${THIS_SH} ./errors2.sub
|
||||
${THIS_SH} ./errors3.sub
|
||||
${THIS_SH} ./errors4.sub
|
||||
test_runsub ./errors1.sub
|
||||
test_runsub ./errors2.sub
|
||||
test_runsub ./errors3.sub
|
||||
test_runsub ./errors4.sub
|
||||
printf '\terrors4.sub\n'
|
||||
${THIS_SH} -o posix ./errors4.sub
|
||||
|
||||
${THIS_SH} ./errors5.sub
|
||||
test_runsub ./errors5.sub
|
||||
|
||||
${THIS_SH} ./errors6.sub
|
||||
test_runsub ./errors6.sub
|
||||
printf '\terrors6.sub\n'
|
||||
THIS_SH="${THIS_SH} -o posix" ${THIS_SH} ./errors6.sub
|
||||
|
||||
${THIS_SH} ./errors7.sub
|
||||
test_runsub ./errors7.sub
|
||||
printf '\terrors7.sub\n'
|
||||
${THIS_SH} -o posix ./errors7.sub
|
||||
|
||||
${THIS_SH} ./errors8.sub
|
||||
${THIS_SH} ./errors9.sub
|
||||
test_runsub ./errors8.sub
|
||||
test_runsub ./errors9.sub
|
||||
|
||||
# invalid numeric arguments and too many arguments
|
||||
${THIS_SH} ./errors10.sub
|
||||
test_runsub ./errors10.sub
|
||||
|
||||
# invalid identifiers to readonly/export
|
||||
${THIS_SH} ./errors11.sub
|
||||
test_runsub ./errors11.sub
|
||||
|
||||
# EOF when parsing compound commands
|
||||
${THIS_SH} ./errors12.sub
|
||||
test_runsub ./errors12.sub
|
||||
|
||||
${THIS_SH} -c 'return ; echo after return' bash
|
||||
${THIS_SH} -o posix -c 'return ; echo after return' bash
|
||||
|
||||
Reference in New Issue
Block a user