Tests: Upgrade some failing tests without expected .out files.
This commit is contained in:
parent
8ac8c64885
commit
c73259d2f0
|
|
@ -0,0 +1,6 @@
|
|||
%Error: t/t_const_slicesel_bad.v:12:42: Slice selection index '[3:1]' outside data type's '[2:0]'
|
||||
: ... note: In instance 't'
|
||||
12 | localparam int unsigned B32_T[1:0] = A3[3:1];
|
||||
| ^
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: Exiting due to
|
||||
|
|
@ -12,6 +12,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
test.lint(fails=True)
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -28,12 +28,9 @@ for s in [
|
|||
'EOF in unterminated string', # Instead get normal unterminated
|
||||
'Enum ranges must be integral, per spec', # Hard to hit
|
||||
'Expecting define formal arguments. Found: ', # Instead define syntax error
|
||||
'Import package not found: ', # Errors earlier, until future parser released
|
||||
'Member selection of non-struct/union object \'', # Instead dotted expression error or V3Link other
|
||||
'Return with return value isn\'t underneath a function', # Hard to hit, get other bad return messages
|
||||
'Syntax error parsing real: \'', # Instead can't lex the number
|
||||
'Syntax error: Range \':\', \'+:\' etc are not allowed in the instance ', # Instead get syntax error
|
||||
'Unsupported: Ranges ignored in port-lists', # Hard to hit
|
||||
'dynamic new() not expected in this context (expected under an assign)', # Instead get syntax error
|
||||
# Not yet analyzed
|
||||
'--pipe-filter protocol error, unexpected: ',
|
||||
|
|
@ -53,7 +50,6 @@ for s in [
|
|||
'Illegal +: or -: select; type already selected, or bad dimension: ',
|
||||
'Illegal bit or array select; type already selected, or bad dimension: ',
|
||||
'Illegal range select; type already selected, or bad dimension: ',
|
||||
'Interface port ',
|
||||
'Interface port declaration ',
|
||||
'Modport item is not a function/task: ',
|
||||
'Modport item is not a variable: ',
|
||||
|
|
@ -64,7 +60,6 @@ for s in [
|
|||
'Parameter type pin value isn\'t a type: Param ',
|
||||
'Parameter type variable isn\'t a type: Param ',
|
||||
'Pattern replication value of 0 is not legal.',
|
||||
'Reference to \'',
|
||||
'Signals inside functions/tasks cannot be marked forceable',
|
||||
'Slice size cannot be zero.',
|
||||
'Slices of arrays in assignments have different unpacked dimensions, ',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
%Error: Unknown language specified: 1-2-3-4
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: Exiting due to
|
||||
|
|
@ -11,6 +11,8 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('vlt')
|
||||
|
||||
test.lint(verilator_flags2=['--language 1-2-3-4'], fails=True)
|
||||
test.lint(verilator_flags2=['--language 1-2-3-4'],
|
||||
fails=True,
|
||||
expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
%Error: t/t_fuzz_eof_bad.v:3:31: Unterminated string
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: t/t_fuzz_eof_bad.v:2:21: EOF in (*
|
||||
2 | initial $lay(*Hello!=nendmodule
|
||||
| ^
|
||||
%Error: t/t_fuzz_eof_bad.v:2:21: syntax error, unexpected end of file
|
||||
2 | initial $lay(*Hello!=nendmodule
|
||||
| ^
|
||||
%Error: Cannot continue
|
||||
... This fatal error may be caused by the earlier error(s); resolve those first.
|
||||
|
|
@ -11,6 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
test.lint(fails=True)
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
%Error: t/t_langext_1.v:44:7: syntax error, unexpected IDENTIFIER-for-type
|
||||
44 | genvar i;
|
||||
| ^~~~~~
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: t/t_langext_1.v:51:1: syntax error, unexpected endmodule, expecting '('
|
||||
51 | endmodule
|
||||
| ^~~~~~~~~
|
||||
%Error: Cannot continue
|
||||
... This fatal error may be caused by the earlier error(s); resolve those first.
|
||||
|
|
@ -13,6 +13,6 @@ test.scenarios('linter')
|
|||
test.top_filename = "t/t_langext_1.v"
|
||||
|
||||
# This is a lint only test.
|
||||
test.lint(v_flags2=["+verilog1995ext+v"], fails=True)
|
||||
test.lint(v_flags2=["+verilog1995ext+v"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
%Error: t/t_langext_1.v:44:7: syntax error, unexpected IDENTIFIER-for-type
|
||||
44 | genvar i;
|
||||
| ^~~~~~
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: t/t_langext_1.v:51:1: syntax error, unexpected endmodule, expecting '('
|
||||
51 | endmodule
|
||||
| ^~~~~~~~~
|
||||
%Error: Cannot continue
|
||||
... This fatal error may be caused by the earlier error(s); resolve those first.
|
||||
|
|
@ -13,6 +13,6 @@ test.scenarios('linter')
|
|||
test.top_filename = "t/t_langext_1.v"
|
||||
|
||||
# This is a lint only test.
|
||||
test.lint(v_flags2=["+verilog1995ext+.v"], fails=True)
|
||||
test.lint(v_flags2=["+verilog1995ext+.v"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
%Error: t/t_langext_2.v:46:7: syntax error, unexpected IDENTIFIER-for-type
|
||||
46 | genvar i;
|
||||
| ^~~~~~
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: t/t_langext_2.v:49:21: syntax error, unexpected case
|
||||
49 | unique0 case (i)
|
||||
| ^~~~
|
||||
%Error: Cannot continue
|
||||
... This fatal error may be caused by the earlier error(s); resolve those first.
|
||||
|
|
@ -13,6 +13,6 @@ test.scenarios('linter')
|
|||
test.top_filename = "t/t_langext_2.v"
|
||||
|
||||
# This is a lint only test.
|
||||
test.lint(v_flags2=["+1364-1995ext+v"], fails=True)
|
||||
test.lint(v_flags2=["+1364-1995ext+v"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
%Error: t/t_langext_3.v:20:4: Can't find typedef/interface: 'uwire'
|
||||
20 | uwire w;
|
||||
| ^~~~~
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: Exiting due to
|
||||
|
|
@ -13,6 +13,6 @@ test.scenarios('linter')
|
|||
test.top_filename = "t/t_langext_3.v"
|
||||
|
||||
# This is a lint only test.
|
||||
test.lint(v_flags2=["+1364-2001ext+v"], fails=True)
|
||||
test.lint(v_flags2=["+1364-2001ext+v"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
%Error: t/t_langext_2.v:49:21: syntax error, unexpected case
|
||||
49 | unique0 case (i)
|
||||
| ^~~~
|
||||
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
|
||||
%Error: Cannot continue
|
||||
... This fatal error may be caused by the earlier error(s); resolve those first.
|
||||
|
|
@ -13,6 +13,6 @@ test.scenarios('linter')
|
|||
test.top_filename = "t/t_langext_2.v"
|
||||
|
||||
# This is a lint only test.
|
||||
test.lint(v_flags2=["+1800-2005ext+v"], fails=True)
|
||||
test.lint(v_flags2=["+1800-2005ext+v"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
%Error-PROCASSWIRE: t/t_mem_slice_conc_bad.v:46:10: Procedural assignment to wire, perhaps intended var (IEEE 1800-2023 6.5): 'rst'
|
||||
: ... note: In instance 't'
|
||||
46 | rst <= 1'b0;
|
||||
| ^~~
|
||||
... For error description see https://verilator.org/warn/PROCASSWIRE?v=latest
|
||||
%Error-PROCASSWIRE: t/t_mem_slice_conc_bad.v:50:10: Procedural assignment to wire, perhaps intended var (IEEE 1800-2023 6.5): 'rst'
|
||||
: ... note: In instance 't'
|
||||
50 | rst <= 1'b1;
|
||||
| ^~~
|
||||
%Error-PROCASSWIRE: t/t_mem_slice_conc_bad.v:53:10: Procedural assignment to wire, perhaps intended var (IEEE 1800-2023 6.5): 'rst'
|
||||
: ... note: In instance 't'
|
||||
53 | rst <= 1'b0;
|
||||
| ^~~
|
||||
%Error: Exiting due to
|
||||
|
|
@ -11,6 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
test.lint(fails=True)
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -14,10 +14,6 @@ module t (/*AUTOARG*/
|
|||
|
||||
wire [1:0] x = { x[0], clk };
|
||||
|
||||
initial begin
|
||||
x = 0;
|
||||
end
|
||||
|
||||
always @(posedge clk or negedge clk) begin
|
||||
|
||||
`ifdef TEST_VERBOSE
|
||||
|
|
|
|||
|
|
@ -15,10 +15,6 @@ module t (/*AUTOARG*/
|
|||
|
||||
wire [2:0] x;
|
||||
|
||||
initial begin
|
||||
x = 3'b000;
|
||||
end
|
||||
|
||||
test1 test1i ( .clk (clk),
|
||||
.xvecin (x[1:0]),
|
||||
.xvecout (x[2:1]));
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
%Warning-UNOPTFLAT: t/t_unoptflat_simple_3.v:16:15: Signal unoptimizable: Circular combinational logic: 't.x'
|
||||
16 | wire [2:0] x;
|
||||
| ^
|
||||
... For warning description see https://verilator.org/warn/UNOPTFLAT?v=latest
|
||||
... Use "/* verilator lint_off UNOPTFLAT */" and lint_on around source to disable this message.
|
||||
t/t_unoptflat_simple_3.v:16:15: Example path: t.x
|
||||
t/t_unoptflat_simple_3.v:55:19: Example path: ASSIGNW
|
||||
t/t_unoptflat_simple_3.v:53:22: Example path: t.__Vcellout__test1i__xvecout
|
||||
t/t_unoptflat_simple_3.v:20:20: Example path: ASSIGNW
|
||||
t/t_unoptflat_simple_3.v:16:15: Example path: t.x
|
||||
%Error: Exiting due to
|
||||
|
|
@ -13,6 +13,6 @@ test.scenarios('simulator')
|
|||
test.top_filename = "t/t_unoptflat_simple_3.v"
|
||||
|
||||
# Compile only
|
||||
test.compile(verilator_flags2=["-fno-dfg"], fails=True)
|
||||
test.compile(verilator_flags2=["-fno-dfg"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
%Warning-UNOPTFLAT: t/t_unoptflat_simple.v:15:15: Signal unoptimizable: Circular combinational logic: 't.x'
|
||||
15 | wire [1:0] x = { x[0], clk };
|
||||
| ^
|
||||
... For warning description see https://verilator.org/warn/UNOPTFLAT?v=latest
|
||||
... Use "/* verilator lint_off UNOPTFLAT */" and lint_on around source to disable this message.
|
||||
t/t_unoptflat_simple.v:15:15: Example path: t.x
|
||||
t/t_unoptflat_simple.v:15:17: Example path: ASSIGNW
|
||||
t/t_unoptflat_simple.v:15:15: Example path: t.x
|
||||
%Error: Exiting due to
|
||||
|
|
@ -13,6 +13,6 @@ test.scenarios('simulator')
|
|||
test.top_filename = "t/t_unoptflat_simple.v"
|
||||
|
||||
# Compile only
|
||||
test.compile(verilator_flags2=["-fno-dfg"], fails=True)
|
||||
test.compile(verilator_flags2=["-fno-dfg"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.passes()
|
||||
|
|
|
|||
Loading…
Reference in New Issue