Commit 02e948f2 by Zachary Snow

test runner automatically handles tests with top-level module inside both inputs

parent 3bef2b9c
// intentionally empty
// intentionally empty
// intentionally empty
#!/bin/bash
NO_SEPARATE_TBS=1
source ../lib/runner.sh
......@@ -66,16 +66,18 @@ assertConverts() {
simpleTest() {
sv="$1"
ve="$2"
if [ -z ${NO_SEPARATE_TBS} ]; then
tb="$3"
else
tb="$SCRIPT_DIR/empty.v"
fi
assertNotNull "SystemVerilog file not specified" $sv
assertNotNull "Verilog file not specified" $ve
assertNotNull "Testbench not specified" $tb
# some tests don't have a separate testbench, instead having the top-level
# module defined in both of the input files
if [ ! -f "$tb" ]; then
tb="$SCRIPT_DIR/empty.v"
fi
assertExists $sv
assertExists $ve
assertExists $tb
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment