diff options
author | N. Engelhardt <nak@symbioticeda.com> | 2020-03-23 20:14:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 20:14:13 +0100 |
commit | 3e46faa58c86fb85ee722abcaef5588f76bde564 (patch) | |
tree | f878ffba2caef7b63fca94a69b3102bb562a7d7d /tests | |
parent | b86905d9523767bccc9224ce33a0b51265e4950c (diff) | |
parent | 0da65d498b9f18ce0c09eedc19f16db2390e6dcb (diff) | |
download | yosys-3e46faa58c86fb85ee722abcaef5588f76bde564.tar.gz yosys-3e46faa58c86fb85ee722abcaef5588f76bde564.tar.bz2 yosys-3e46faa58c86fb85ee722abcaef5588f76bde564.zip |
Merge pull request #1763 from boqwxp/issue1762
Closes #1762. Adds warnings for `select` arguments not matching any object and for `add` command when no modules selected
Diffstat (limited to 'tests')
-rw-r--r-- | tests/select/no_warn_assert.ys | 2 | ||||
-rw-r--r-- | tests/select/no_warn_prefixed_arg_memb.ys | 5 | ||||
-rw-r--r-- | tests/select/no_warn_prefixed_empty_select_arg.ys | 3 | ||||
-rwxr-xr-x | tests/select/run-test.sh | 6 | ||||
-rw-r--r-- | tests/select/warn_empty_select_arg.ys | 3 |
5 files changed, 19 insertions, 0 deletions
diff --git a/tests/select/no_warn_assert.ys b/tests/select/no_warn_assert.ys new file mode 100644 index 000000000..889315826 --- /dev/null +++ b/tests/select/no_warn_assert.ys @@ -0,0 +1,2 @@ +logger -expect-no-warnings +select -assert-count 0 top/t:ff4 top/w:d0 %co:+[d] %i diff --git a/tests/select/no_warn_prefixed_arg_memb.ys b/tests/select/no_warn_prefixed_arg_memb.ys new file mode 100644 index 000000000..596a6ed70 --- /dev/null +++ b/tests/select/no_warn_prefixed_arg_memb.ys @@ -0,0 +1,5 @@ +logger -expect-no-warnings +read_verilog ../../examples/igloo2/example.v +hierarchy +proc +select example/t:$add diff --git a/tests/select/no_warn_prefixed_empty_select_arg.ys b/tests/select/no_warn_prefixed_empty_select_arg.ys new file mode 100644 index 000000000..617e0d63e --- /dev/null +++ b/tests/select/no_warn_prefixed_empty_select_arg.ys @@ -0,0 +1,3 @@ +logger -expect-no-warnings +select n:foo/bar* +select t:$assert diff --git a/tests/select/run-test.sh b/tests/select/run-test.sh new file mode 100755 index 000000000..44ce7e674 --- /dev/null +++ b/tests/select/run-test.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +for x in *.ys; do + echo "Running $x.." + ../../yosys -ql ${x%.ys}.log $x +done diff --git a/tests/select/warn_empty_select_arg.ys b/tests/select/warn_empty_select_arg.ys new file mode 100644 index 000000000..55aca8eb6 --- /dev/null +++ b/tests/select/warn_empty_select_arg.ys @@ -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 |