Added tests/realmath to "make test"
authorClifford Wolf <clifford@clifford.at>
Sun, 15 Jun 2014 07:31:03 +0000 (09:31 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 15 Jun 2014 07:31:03 +0000 (09:31 +0200)
Makefile
tests/asicworld/run-test.sh
tests/hana/run-test.sh
tests/realmath/run-test.sh
tests/simple/run-test.sh

index a84215b274446c2b7bbaa4442bd3303925ce81b2..61fb5dc49450ba613c17a77c08551ab656197b9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -161,6 +161,7 @@ test: $(TARGETS) $(EXTRA_TARGETS)
        cd tests/simple && bash run-test.sh
        cd tests/hana && bash run-test.sh
        cd tests/asicworld && bash run-test.sh
+       cd tests/realmath && bash run-test.sh
        cd tests/techmap && bash run-test.sh
        cd tests/sat && bash run-test.sh
 
index bf27d15f8ed47142543f89687f9d61e0b8e628a7..9153f55ff5970345864a971e6fdc66f643e06250 100755 (executable)
@@ -1,3 +1,2 @@
 #!/bin/bash
-make -C ../.. || exit 1
 exec bash ../tools/autotest.sh *.v
index b8e7231c7770f1e3490c9bd9d3338059ac506c0f..199bb916e149905ab03d3c3595cffb41ac922802 100755 (executable)
@@ -1,3 +1,2 @@
 #!/bin/bash
-make -C ../.. || exit 1
 exec bash ../tools/autotest.sh -l hana_vlib.v test_*.v
index 48e87417c3aca2c4283334f6423eb06a47e2b7d8..a28863d31460fc9aa828ae6c24a04218978682eb 100755 (executable)
@@ -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
 
index eb6fd10bab57b0599b31466a728e00aec120ded3..3d00c7eb23c10e255c68ef73175e11987c4dbb8b 100755 (executable)
@@ -6,5 +6,4 @@ if ! which iverilog > /dev/null ; then
   exit 1
 fi
 
-make -C ../.. || exit 1
 exec bash ../tools/autotest.sh *.v