Added back tests for logger
authorMiodrag Milanovic <mmicko@gmail.com>
Fri, 13 Mar 2020 14:00:18 +0000 (15:00 +0100)
committerMiodrag Milanovic <mmicko@gmail.com>
Fri, 13 Mar 2020 14:00:18 +0000 (15:00 +0100)
tests/various/logger_error.ys [new file with mode: 0644]
tests/various/logger_nowarning.ys [new file with mode: 0644]
tests/various/logger_warn.ys [new file with mode: 0644]
tests/various/logger_warning.ys [new file with mode: 0644]

diff --git a/tests/various/logger_error.ys b/tests/various/logger_error.ys
new file mode 100644 (file)
index 0000000..46fe7f5
--- /dev/null
@@ -0,0 +1,6 @@
+logger -werror "is implicitly declared." -expect error "is implicitly declared." 1
+read_verilog << EOF
+module top(...);
+       assign b = w;
+endmodule
+EOF
diff --git a/tests/various/logger_nowarning.ys b/tests/various/logger_nowarning.ys
new file mode 100644 (file)
index 0000000..87cbbc6
--- /dev/null
@@ -0,0 +1,6 @@
+logger -expect-no-warnings -nowarn "is implicitly declared."
+read_verilog << EOF
+module top(...);
+       assign b = w;
+endmodule
+EOF
diff --git a/tests/various/logger_warn.ys b/tests/various/logger_warn.ys
new file mode 100644 (file)
index 0000000..2316ae4
--- /dev/null
@@ -0,0 +1,6 @@
+logger -warn "Successfully finished Verilog frontend." -expect warning "Successfully finished Verilog frontend." 1
+read_verilog << EOF
+module top(...);
+       assign b = w;
+endmodule
+EOF
diff --git a/tests/various/logger_warning.ys b/tests/various/logger_warning.ys
new file mode 100644 (file)
index 0000000..642b1b9
--- /dev/null
@@ -0,0 +1,6 @@
+logger -expect warning "is implicitly declared." 2
+read_verilog << EOF
+module top(...);
+       assign b = w;
+endmodule
+EOF