aboutsummaryrefslogtreecommitdiffstats
path: root/tests/realmath/run-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/realmath/run-test.sh')
-rwxr-xr-xtests/realmath/run-test.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/realmath/run-test.sh b/tests/realmath/run-test.sh
index 48e87417c..a28863d31 100755
--- a/tests/realmath/run-test.sh
+++ b/tests/realmath/run-test.sh
@@ -13,7 +13,11 @@ for ((i = 0; i < 100; i++)); do
idx=$( printf "%05d" $i )
../../../yosys -q uut_${idx}.ys
iverilog -o uut_${idx}_tb uut_${idx}_tb.v uut_${idx}.v uut_${idx}_syn.v
- ./uut_${idx}_tb
+ ./uut_${idx}_tb | tee uut_${idx}.err
+ if test -s uut_${idx}.err; then
+ exit 1
+ fi
+ rm -f uut_${idx}.err
done
echo