#!/bin/bash
printf "" > exit  # so dosbox will run 'external' command 'exit' correctly
printf "" >ALLTESTS.LOG
for TESTS in `ls *.EXE`; do
    printf "Running ${TESTS} inside DOSBox...\n"
    dosbox -conf ../platforms/Dos/dosbox-0.74.conf exit \
    -c "echo *** ${TESTS} (`wc -c <${TESTS}` bytes) *********************>>ALLTESTS.LOG" \
    -c "${TESTS}>>ALLTESTS.LOG" \
    -noconsole -exit || exit 1
done
printf "\n"
[ "`cat ALLTESTS.LOG`" ] || { printf "There were no tests to run!\n"; exit 1; }
cat ALLTESTS.LOG
[ -z "`cat ALLTESTS.LOG|grep Failure`" ] || { printf "There were failed tests!\n"; exit 1; }

#!/bin/bash
printf "" > exit  # so dosbox will run 'external' command 'exit' correctly
printf "" >ALLTESTS.LOG
for TESTS in `ls *.EXE`; do
    printf "Running ${TESTS} inside DOSBox...\n"
    dosbox -conf ../platforms/Dos/dosbox-0.74.conf exit \
    -c "echo *** ${TESTS} ************************************>>ALLTESTS.LOG" \
    -c "${TESTS}>>ALLTESTS.LOG" \
    -noconsole -exit || exit 1
done
printf "\n"
[ "`cat ALLTESTS.LOG`" ] || { printf "There were no tests to run!\n"; exit 1; }
cat ALLTESTS.LOG
[ -z "`cat ALLTESTS.LOG|grep Failure`" ] || { printf "There were failed tests!\n"; exit 1; }

--- 
+++ 
@@ -4,7 +4,7 @@
 for TESTS in `ls *.EXE`; do
     printf "Running ${TESTS} inside DOSBox...\n"
     dosbox -conf ../platforms/Dos/dosbox-0.74.conf exit \
-    -c "echo *** ${TESTS} ************************************>>ALLTESTS.LOG" \
+    -c "echo *** ${TESTS} (`wc -c <${TESTS}` bytes) *********************>>ALLTESTS.LOG" \
     -c "${TESTS}>>ALLTESTS.LOG" \
     -noconsole -exit || exit 1
 done
Add EXE size in bytes to log file
