ole added no stop on fail

This commit is contained in:
alexmadison 2022-04-12 10:31:50 +02:00
parent cefe78fa24
commit 276efdede5

View File

@ -29,7 +29,7 @@ run_test () {
cat $1/run/prsim.in | prsim -r $1/run/test.prs > $1/run/prsim.out cat $1/run/prsim.in | prsim -r $1/run/test.prs > $1/run/prsim.out
if egrep '(WRONG|WARNING|Node)' $1/run/prsim.out >/dev/null; then if egrep '(WRONG|WARNING|Node)' $1/run/prsim.out >/dev/null; then
echo "${bold}*** simulation failed seed: $2 ***${normal}" echo "${bold}*** simulation failed seed: $2 ***${normal}"
faildirs="${faildirs} ${1}-sim" faildirs="${faildirs} ${1}-sim($2)"
failed=1 failed=1
echo echo
fi fi
@ -56,9 +56,9 @@ cd "unit_tests"
# run all test except single one is specified # run all test except single one is specified
if [ ! -z $3 ]; then if [ ! -z $3 ]; then
numberofruns=$2+$3
iteration=$3 iteration=$3
elif [ ! -z $2 ]; then fi
if [ ! -z $2 ]; then
numberofruns=$2 numberofruns=$2
fi fi
@ -66,7 +66,7 @@ if [ -z $1 ]; then
for i in * for i in *
do do
if [ -d $i -a -f $i/test.act ]; then if [ -d $i -a -f $i/test.act ]; then
while [ $failed = 0 ] && [ $iteration -lt $numberofruns ] while [ $iteration -lt $numberofruns ]
do do
run_test $iteration run_test $iteration
iteration=$iteration+1 iteration=$iteration+1
@ -74,7 +74,7 @@ if [ -z $1 ]; then
fi fi
done done
else else
while [ $failed -eq 0 ] && [ $iteration -lt $numberofruns ] while [ $iteration -lt $numberofruns ]
do do
run_test $1 $iteration run_test $1 $iteration
iteration=$((iteration+1)) iteration=$((iteration+1))