tests: Check that Icarus can parse arch sim models
authorDavid Shah <dave@ds0.me>
Wed, 26 Jun 2019 17:17:52 +0000 (18:17 +0100)
committerDavid Shah <dave@ds0.me>
Wed, 26 Jun 2019 17:46:22 +0000 (18:46 +0100)
Signed-off-by: David Shah <dave@ds0.me>
Makefile
tests/arch/run-test.sh [new file with mode: 0755]

index 76dac48a586c2ae9dd8c8b9b73f5a5c14cc5e3d6..67bcb3d154223b396dba9c1fc5a09821f01c07ca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -681,6 +681,7 @@ test: $(TARGETS) $(EXTRA_TARGETS)
        +cd tests/svinterfaces && bash run-test.sh $(SEEDOPT)
        +cd tests/opt && bash run-test.sh
        +cd tests/aiger && bash run-test.sh
+       +cd tests/arch && bash run-test.sh
        @echo ""
        @echo "  Passed \"make test\"."
        @echo ""
diff --git a/tests/arch/run-test.sh b/tests/arch/run-test.sh
new file mode 100755 (executable)
index 0000000..fc4175b
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+echo "Running syntax check on arch sim models"
+for arch in ../../techlibs/*; do
+       find $arch -name cells_sim.v -print0 | xargs -0 -n1 -r iverilog -t null -I$arch
+done