diff options
Diffstat (limited to 'tests/realmath/run-test.sh')
-rwxr-xr-x | tests/realmath/run-test.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/realmath/run-test.sh b/tests/realmath/run-test.sh new file mode 100755 index 000000000..b8e222ad6 --- /dev/null +++ b/tests/realmath/run-test.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -e + +rm -rf temp +mkdir -p temp +echo "generating tests.." +python generate.py + +cd temp +echo "running tests.." +for ((i = 0; i < 100; i++)); do + echo -n "[$i]" + 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 | tee uut_${idx}.err + if test -s uut_${idx}.err; then + echo "Note: Make sure that 'iverilog' is an up-to-date git checkout of icarus verilog." + exit 1 + fi + rm -f uut_${idx}.err +done +echo + |