Add tests for select command warnings.
This commit is contained in:
1
Makefile
1
Makefile
@@ -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)
|
||||
|
||||
3
tests/select/no_warn_prefixed_empty_select_arg.ys
Normal file
3
tests/select/no_warn_prefixed_empty_select_arg.ys
Normal file
@@ -0,0 +1,3 @@
|
||||
logger -expect-no-warnings
|
||||
select n:foo/bar*
|
||||
select t:$assert
|
||||
6
tests/select/run-test.sh
Executable file
6
tests/select/run-test.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
for x in *.ys; do
|
||||
echo "Running $x.."
|
||||
../../yosys -ql ${x%.ys}.log $x
|
||||
done
|
||||
3
tests/select/warn_empty_select_arg.ys
Normal file
3
tests/select/warn_empty_select_arg.ys
Normal 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
|
||||
Reference in New Issue
Block a user