Added note to "make test": use git checkout of iverilog
authorClifford Wolf <clifford@clifford.at>
Wed, 16 Jul 2014 08:03:07 +0000 (10:03 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 16 Jul 2014 08:03:07 +0000 (10:03 +0200)
tests/asicworld/run-test.sh
tests/hana/run-test.sh
tests/realmath/run-test.sh
tests/simple/run-test.sh
tests/tools/autotest.sh

index 9153f55ff5970345864a971e6fdc66f643e06250..a204360d73f00deb9fc52d614ef749c761527e41 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/bash
-exec bash ../tools/autotest.sh *.v
+exec bash ../tools/autotest.sh -G *.v
index 199bb916e149905ab03d3c3595cffb41ac922802..89be6d0524fb16419dddcfc857fff65752d4aaf8 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/bash
-exec bash ../tools/autotest.sh -l hana_vlib.v test_*.v
+exec bash ../tools/autotest.sh -G -l hana_vlib.v test_*.v
index a28863d31460fc9aa828ae6c24a04218978682eb..b8e222ad6512c16c681296dec349cc346d6f3b83 100755 (executable)
@@ -15,6 +15,7 @@ for ((i = 0; i < 100; i++)); do
        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
index 3d00c7eb23c10e255c68ef73175e11987c4dbb8b..ec1802cbd9e84d806223e31315b21988dc7235ea 100755 (executable)
@@ -6,4 +6,4 @@ if ! which iverilog > /dev/null ; then
   exit 1
 fi
 
-exec bash ../tools/autotest.sh *.v
+exec bash ../tools/autotest.sh -G *.v
index d459f988e7a9c88692c3db24c6d4f7d7d27fd977..ff431eaf73a8a1a5617e99146d43374f1c4e1828 100755 (executable)
@@ -11,17 +11,20 @@ backend_opts="-noattr -noexpr"
 scriptfiles=""
 scriptopt=""
 toolsdir="$(cd $(dirname $0); pwd)"
+warn_iverilog_git=false
 
 if [ ! -f $toolsdir/cmp_tbdata -o $toolsdir/cmp_tbdata.c -nt $toolsdir/cmp_tbdata ]; then
        ( set -ex;  gcc -Wall -o $toolsdir/cmp_tbdata $toolsdir/cmp_tbdata.c; ) || exit 1
 fi
 
-while getopts xml:wkvrf:s:p: opt; do
+while getopts xmGl:wkvrf:s:p: opt; do
        case "$opt" in
                x)
                        use_xsim=true ;;
                m)
                        use_modelsim=true ;;
+               G)
+                       warn_iverilog_git=true ;;
                l)
                        libs="$libs $(cd $(dirname $OPTARG); pwd)/$(basename $OPTARG)";;
                w)
@@ -145,7 +148,13 @@ do
        elif [ -f ${bn}.skip ]; then
                mv ${bn}.err ${bn}.skip
                echo "-> skip"
-       else echo "-> ERROR!"; $keeprunning || exit 1; fi
+       else
+               echo "-> ERROR!"
+               if $warn_iverilog_git; then
+                       echo "Note: Make sure that 'iverilog' is an up-to-date git checkout of icarus verilog."
+               fi
+               $keeprunning || exit 1
+       fi
 done
 
 exit 0