From 13cb77496d17771977a0a76ab9cb9c116f67f2c8 Mon Sep 17 00:00:00 2001 From: tth Date: Wed, 17 Mar 2021 11:18:26 +0100 Subject: [PATCH] run a few tests --- funcs/alltests.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 funcs/alltests.sh diff --git a/funcs/alltests.sh b/funcs/alltests.sh new file mode 100755 index 0000000..f164cb4 --- /dev/null +++ b/funcs/alltests.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# +# trying to run a maximum of ugly code +# + +for trial in $(./t -l) +do + + printf "============ %-10s ============\n" $trial + + make t + error=$? + if [ 0 -ne $error ] + then + echo "make error is " $error + exit 1 + fi + + + ./t -v $trial + error=$? + if [ 0 -ne $error ] + then + echo "run error is " $error + exit 1 + fi + + printf "\t=== return code %d\n" $error + echo + sleep 10 + +done