tests: add select -unset tests
authorEddie Hung <eddie@fpgeh.com>
Tue, 14 Apr 2020 17:58:51 +0000 (10:58 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 16 Apr 2020 17:51:58 +0000 (10:51 -0700)
tests/select/unset.ys [new file with mode: 0644]
tests/select/unset2.ys [new file with mode: 0644]

diff --git a/tests/select/unset.ys b/tests/select/unset.ys
new file mode 100644 (file)
index 0000000..4f60781
--- /dev/null
@@ -0,0 +1,10 @@
+read_verilog <<EOT
+module top(input i, output o);
+assign o = i;
+endmodule
+EOT
+select -set foo w:*
+select -assert-any @foo
+select -unset foo
+logger -expect error "Selection '\\foo' does not exist!" 1
+select -unset foo
diff --git a/tests/select/unset2.ys b/tests/select/unset2.ys
new file mode 100644 (file)
index 0000000..456b84c
--- /dev/null
@@ -0,0 +1,10 @@
+read_verilog <<EOT
+module top(input i, output o);
+assign o = i;
+endmodule
+EOT
+select -set foo w:*
+select -assert-any @foo
+select -unset foo
+logger -expect error "Selection @foo is not defined!" 1
+select -list @foo