5 # Run all specified tests, keeping count of which succeeded.
6 # The reason for this extra layer above the test script is to
7 # protect from catastrophic failure of an individual test.
8 # We could probably do that with subshells instead.
10 integer success failure skipped retval
11 for file in "${(f)ZTST_testlist}"; do
12 $ZTST_exe +Z
-f $ZTST_srcdir/ztst.zsh
$file
14 if (( $retval == 2 )); then
16 elif (( $retval )); then
22 print
"**************************************
23 $success successful test script${${success:#1}:+s}, \
24 $failure failure${${failure:#1}:+s}, \
26 **************************************"
27 return $
(( failure ?
1 : 0 ))