From b59c66032c268ae06e84c746baf600dbbe54c376 Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Tue, 23 Apr 2019 01:53:02 -0400 Subject: [PATCH] test runner checks for iverilog warnings --- test/lib/runner.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/lib/runner.sh b/test/lib/runner.sh index 3076644..ec6c3dd 100644 --- a/test/lib/runner.sh +++ b/test/lib/runner.sh @@ -17,14 +17,20 @@ simulate() { sim_top="$1"; shift # compile the files sim_prog="$SHUNIT_TMPDIR/simprog.exe" - iverilog \ + iv_output=`iverilog \ + -Wall \ + -Wno-select-range \ -o "$sim_prog" \ -g2005 \ -DTEST_VCD="\"$sim_vcd\"" \ -DTEST_TOP=$sim_top \ "$SCRIPT_DIR/tb_dumper.v" \ - "$@" + "$@" 2>&1` assertTrue "iverilog on $1 failed" $? + assertNull "iverilog emitted warnings:" "$iv_output" + if [ "$iv_output" != "" ]; then + echo "$iv_output" + fi # run the simulation $sim_prog > $sim_log assertTrue "simulating $1 failed" $?