Tests: Rename tests to match warning name
This commit is contained in:
parent
1e08c912d7
commit
d81da042cd
|
|
@ -1,3 +0,0 @@
|
|||
`line 1 "obj_vlt/t_lint_eofline/t_lint_eofline_bad.v" 1
|
||||
|
||||
`line 2 "obj_vlt/t_lint_eofline/t_lint_eofline_bad.v" 0
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
`line 1 "obj_vlt/t_lint_eofnewline/t_lint_eofnewline_bad.v" 1
|
||||
|
||||
`line 2 "obj_vlt/t_lint_eofnewline/t_lint_eofnewline_bad.v" 0
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
import vltest_bootstrap
|
||||
|
||||
test.scenarios('vlt')
|
||||
test.top_filename = test.obj_dir + "/t_lint_eofline_bad.v"
|
||||
test.top_filename = test.obj_dir + "/t_lint_eofnewline_bad.v"
|
||||
|
||||
|
||||
def gen(filename):
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
%Warning-EOFNEWLINE: obj_vlt/t_lint_eofline_bad/t_lint_eofline_bad.v:4:10: Missing newline at end of file (POSIX 3.206).
|
||||
: ... Suggest add newline.
|
||||
%Warning-EOFNEWLINE: obj_vlt/t_lint_eofnewline_bad/t_lint_eofnewline_bad.v:4:10: Missing newline at end of file (POSIX 3.206).
|
||||
: ... Suggest add newline.
|
||||
4 | endmodule
|
||||
| ^
|
||||
... For warning description see https://verilator.org/warn/EOFNEWLINE?v=latest
|
||||
|
|
@ -10,12 +10,12 @@
|
|||
import vltest_bootstrap
|
||||
|
||||
test.scenarios('vlt')
|
||||
test.top_filename = test.obj_dir + "/t_lint_eofline_bad.v"
|
||||
test.top_filename = test.obj_dir + "/t_lint_eofnewline_bad.v"
|
||||
|
||||
|
||||
def gen(filename):
|
||||
with open(filename, 'w', encoding="utf8") as fh:
|
||||
fh.write("// Generated by t_lint_eofline_bad.py\n")
|
||||
fh.write("// Generated by t_lint_eofnewline_bad.py\n")
|
||||
fh.write("module t;\n")
|
||||
fh.write("// No newline below:\n")
|
||||
fh.write("endmodule")
|
||||
|
|
@ -10,12 +10,12 @@
|
|||
import vltest_bootstrap
|
||||
|
||||
test.scenarios('vlt')
|
||||
test.top_filename = test.obj_dir + "/t_lint_eofline_bad.v"
|
||||
test.top_filename = test.obj_dir + "/t_lint_eofnewline_bad.v"
|
||||
|
||||
|
||||
def gen(filename):
|
||||
with open(filename, 'w', encoding="utf8") as fh:
|
||||
fh.write("// Generated by t_lint_eofline_bad.py\n")
|
||||
fh.write("// Generated by t_lint_eofnewline_bad.py\n")
|
||||
fh.write("module t;\n")
|
||||
fh.write("// No newline below:\n")
|
||||
fh.write("endmodule")
|
||||
|
|
@ -24,6 +24,6 @@ def gen(filename):
|
|||
|
||||
gen(test.top_filename)
|
||||
|
||||
test.lint(verilator_flags2=["--lint-only -Wall -Wno-DECLFILENAME t/t_lint_eofline_vlt.vlt"])
|
||||
test.lint(verilator_flags2=["--lint-only -Wall -Wno-DECLFILENAME t/t_lint_eofnewline_vlt.vlt"])
|
||||
|
||||
test.passes()
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:169:7: Loop condition is always false
|
||||
: ... note: In instance 't.with_always'
|
||||
169 | while(0);
|
||||
| ^~~~~
|
||||
... For warning description see https://verilator.org/warn/UNUSEDLOOP?v=latest
|
||||
... Use "/* verilator lint_off UNUSEDLOOP */" and lint_on around source to disable this message.
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:155:7: Loop condition is always false
|
||||
: ... note: In instance 't.non_parametrized_initial'
|
||||
155 | while(0);
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:158:7: Loop condition is always false
|
||||
: ... note: In instance 't.non_parametrized_initial'
|
||||
158 | do ; while(0);
|
||||
| ^~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:114:7: Loop condition is always false
|
||||
114 | while(always_zero < 0) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:156:7: Loop condition is always false
|
||||
156 | while(always_false);
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:157:7: Loop condition is always false
|
||||
157 | while(always_zero < 0);
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:171:7: Loop condition is always false
|
||||
171 | while(always_false) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:181:7: Loop condition is always false
|
||||
181 | while(always_zero) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:185:7: Loop condition is always false
|
||||
185 | for (int i = 0; always_zero; i++)
|
||||
| ^~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:190:7: Loop condition is always false
|
||||
190 | for (int i = 0; i < always_zero; i++)
|
||||
| ^~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:136:7: Loop is not used and will be optimized out
|
||||
136 | while(param_unused_while < always_zero) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_removed_unused_loop_bad.v:280:7: Loop is not used and will be optimized out
|
||||
280 | while (m_2_ticked);
|
||||
| ^~~~~
|
||||
%Error: Exiting due to
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:169:7: Loop condition is always false
|
||||
: ... note: In instance 't.with_always'
|
||||
169 | while(0);
|
||||
| ^~~~~
|
||||
... For warning description see https://verilator.org/warn/UNUSEDLOOP?v=latest
|
||||
... Use "/* verilator lint_off UNUSEDLOOP */" and lint_on around source to disable this message.
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:155:7: Loop condition is always false
|
||||
: ... note: In instance 't.non_parametrized_initial'
|
||||
155 | while(0);
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:158:7: Loop condition is always false
|
||||
: ... note: In instance 't.non_parametrized_initial'
|
||||
158 | do ; while(0);
|
||||
| ^~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:114:7: Loop condition is always false
|
||||
114 | while(always_zero < 0) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:156:7: Loop condition is always false
|
||||
156 | while(always_false);
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:157:7: Loop condition is always false
|
||||
157 | while(always_zero < 0);
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:171:7: Loop condition is always false
|
||||
171 | while(always_false) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:181:7: Loop condition is always false
|
||||
181 | while(always_zero) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:185:7: Loop condition is always false
|
||||
185 | for (int i = 0; always_zero; i++)
|
||||
| ^~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:190:7: Loop condition is always false
|
||||
190 | for (int i = 0; i < always_zero; i++)
|
||||
| ^~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:136:7: Loop is not used and will be optimized out
|
||||
136 | while(param_unused_while < always_zero) begin
|
||||
| ^~~~~
|
||||
%Warning-UNUSEDLOOP: t/t_lint_unusedloop_removed_bad.v:280:7: Loop is not used and will be optimized out
|
||||
280 | while (m_2_ticked);
|
||||
| ^~~~~
|
||||
%Error: Exiting due to
|
||||
Loading…
Reference in New Issue