Add tests for `select` command warnings.

This commit is contained in:
Alberto Gonzalez 2020-03-23 06:13:48 +00:00
parent 5026f36250
commit 1b333d49ef
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
4 changed files with 13 additions and 0 deletions

View File

@ -716,6 +716,7 @@ test: $(TARGETS) $(EXTRA_TARGETS)
+cd tests/memories && bash run-test.sh $(ABCOPT) $(SEEDOPT)
+cd tests/bram && bash run-test.sh $(SEEDOPT)
+cd tests/various && bash run-test.sh
+cd tests/select && bash run-test.sh
+cd tests/sat && bash run-test.sh
+cd tests/svinterfaces && bash run-test.sh $(SEEDOPT)
+cd tests/svtypes && bash run-test.sh $(SEEDOPT)

View File

@ -0,0 +1,3 @@
logger -expect-no-warnings
select n:foo/bar*
select t:$assert

6
tests/select/run-test.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
for x in *.ys; do
echo "Running $x.."
../../yosys -ql ${x%.ys}.log $x
done

View File

@ -0,0 +1,3 @@
logger -expect warning "did not match any module." 1
logger -expect warning "did not match any object." 1
select foo/bar