tests: Check that Icarus can parse arch sim models

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2019-06-26 18:17:52 +01:00
parent 0d2b87e3ed
commit 71b046d639
2 changed files with 9 additions and 0 deletions

View File

@ -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 ""

8
tests/arch/run-test.sh Executable file
View File

@ -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