1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/bin/sh
##
## comment:
## omalloc testing/verification may oversee some memory error in some random cases:
## this simple wrapper is meant to work around those unlucky cases by running a few
## number of tests instead of just one test.
##
SCRIPTNAME=${0##*/}
SCRIPTDIR=${0%/*}
CHECK_PROGRAM=${SCRIPTNAME#getlucky-}
NUMBEROF_TRIAL=11
for idx in $(seq 1 $NUMBEROF_TRIAL); do
${SCRIPTDIR}/$CHECK_PROGRAM && { echo "$SCRIPTNAME: SUMMARY: $idx trial(s)" ; exit 0 ; }
sleep 3
done
echo "$SCRIPTNAME: SUMMARY: $idx failed trials"
exit 1
# eos
|