File indexing completed on 2026-04-09 07:49:05
0001
0002 usage(){ cat << EOU
0003 ALL_TEST_runner.sh
0004 ===================
0005
0006 This is **SOURCED** from::
0007
0008 QSimTest_ALL.sh
0009 QEvtTest_ALL.sh
0010
0011 With lines::
0012
0013 source ALL_TEST_runner.sh QSimTest.sh
0014 source ALL_TEST_runner.sh QEvtTest.sh
0015
0016 EOU
0017 }
0018
0019 script=$1
0020
0021 count=0
0022 pass=0
0023 fail=0
0024
0025 flog=""
0026 t0="$(printf "\n$(date)"$'\n')"
0027 echo "$t0"
0028 echo
0029
0030 for t in $tests ; do
0031
0032 tt="TEST=$t $(realpath $script)"
0033
0034 l0="$(printf " === %0.3d === [ $tt "$'\n' "$count")"
0035 echo "$l0"
0036 eval "$tt" > /dev/null 2>&1
0037 rc=$?
0038
0039 if [ $rc -ne 0 ]; then
0040 msg="***FAIL***"
0041 fail=$(( $fail + 1 ))
0042 else
0043 msg=PASS
0044 pass=$(( $pass + 1 ))
0045 fi
0046 l1="$(printf " === %0.3d === ] %s "$'\n' "$count" "$msg")"
0047 echo "$l1"
0048 echo
0049
0050 if [ $rc -ne 0 ]; then
0051 flog+="$l0"$'\n'
0052 flog+="$l1"$'\n'
0053 fi
0054
0055
0056 count=$(( $count + 1 ))
0057 done
0058
0059 t1="$(printf "\n$(date)"$'\n')"
0060
0061 echo "$t0"
0062 echo "$t1"
0063 echo
0064
0065 printf " TOTAL : %d \n" $count
0066 printf " PASS : %d \n" $pass
0067 printf " FAIL : %d \n" $fail
0068
0069 echo "$flog"
0070
0071