Fail if iverilog fails
authorEddie Hung <eddie@fpgeh.com>
Thu, 22 Aug 2019 21:03:02 +0000 (14:03 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 22 Aug 2019 23:05:12 +0000 (16:05 -0700)
tests/ice40/run-test.sh

index 184d8f09b6abde36dfe2d27178040f078d29343f..90a8a3c839d2cde45c8e35df10f4ce2ccb3af5a7 100755 (executable)
@@ -18,8 +18,8 @@ for t in *_tb.v; do
        echo "all:: run-$t"
        echo "run-$t:"
        echo "  @echo 'Running $t..'"
-       echo "  @iverilog -o ${t%_tb.v}_testbench  $t ${t%_tb.v}_synth.v common.v $COMMON_PREFIX/simcells.v $TECHLIBS_PREFIX/ice40/cells_sim.v"
-       echo "  @if ! vvp -N ${t%_tb.v}_testbench > ${t%_tb.v}_testbench.log 2>&1; then grep 'ERROR' ${t%_tb.v}_testbench.log; exit 0; elif grep 'ERROR' ${t%_tb.v}_testbench.log || ! grep 'OKAY' ${t%_tb.v}_testbench.log; then echo "FAIL"; exit 0; fi"
+       echo "  @iverilog -o ${t%_tb.v}_testbench  $t ${t%_tb.v}_synth.v common.v $TECHLIBS_PREFIX/ice40/cells_sim.v"
+       echo "  @vvp -N ${t%_tb.v}_testbench"
 done
 for s in *.sh; do
        if [ "$s" != "run-test.sh" ]; then