Tests: Fix top_filename to properly test (#3767)

This commit is contained in:
Wilson Snyder 2022-11-19 17:09:43 -05:00
parent d3e1c40238
commit 0af3efda5c
6 changed files with 24 additions and 34 deletions

View File

@ -1,11 +1,6 @@
%Error: t/t_mailbox.pl:1:1: syntax error, unexpected '#'
1 | #!/usr/bin/env perl
| ^
%Error-UNSUPPORTED: t/t_mailbox.pl:2:19: Unsupported: Verilog 2001-config reserved word not implemented: 'use'
2 | if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
| ^~~
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest
%Error-UNSUPPORTED: t/t_mailbox.pl:3:47: Unsupported: SystemVerilog 2005 reserved word not implemented: 'expect'
3 | # DESCRIPTION: Verilator: Verilog Test driver/expect definition
| ^~~~~~
%Error: Exiting due to
%Error: t/t_mailbox.v:24:4: Can't find typedef: 'mailbox'
24 | mailbox #(int) m;
| ^~~~~~~
%Error: Internal Error: t/t_mailbox.v:24:14: ../V3LinkDot.cpp:#: Pin not under instance?
24 | mailbox #(int) m;
| ^~~

View File

@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
scenarios(simulator => 1);
top_filename("t/t_mailbox.pl");
top_filename("t/t_mailbox.v");
compile(
v_flags2 => ["+define+T_MAILBOX+std::mailbox"],

View File

@ -1,11 +1,10 @@
%Error: t/t_process.pl:1:1: syntax error, unexpected '#'
1 | #!/usr/bin/env perl
| ^
%Error-UNSUPPORTED: t/t_process.pl:2:19: Unsupported: Verilog 2001-config reserved word not implemented: 'use'
2 | if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
| ^~~
%Error: t/t_process.v:22:4: Can't find typedef: 'process'
22 | process p;
| ^~~~~~~
%Error-UNSUPPORTED: t/t_process.v:26:20: Unsupported: 'process'
26 | p = process::self();
| ^~~~
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest
%Error-UNSUPPORTED: t/t_process.pl:3:47: Unsupported: SystemVerilog 2005 reserved word not implemented: 'expect'
3 | # DESCRIPTION: Verilator: Verilog Test driver/expect definition
| ^~~~~~
%Error: Exiting due to
%Error: Internal Error: t/t_process.v:26:11: ../V3LinkDot.cpp:#: Bad package link
26 | p = process::self();
| ^~~~~~~

View File

@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
scenarios(simulator => 1);
top_filename("t/t_process.pl");
top_filename("t/t_process.v");
compile(
v_flags2 => ["+define+T_PROCESS+std::process"],

View File

@ -1,11 +1,7 @@
%Error: t/t_semaphore.pl:1:1: syntax error, unexpected '#'
1 | #!/usr/bin/env perl
| ^
%Error-UNSUPPORTED: t/t_semaphore.pl:2:19: Unsupported: Verilog 2001-config reserved word not implemented: 'use'
2 | if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
| ^~~
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest
%Error-UNSUPPORTED: t/t_semaphore.pl:3:47: Unsupported: SystemVerilog 2005 reserved word not implemented: 'expect'
3 | # DESCRIPTION: Verilator: Verilog Test driver/expect definition
| ^~~~~~
%Error: t/t_semaphore.v:21:4: Can't find typedef: 'semaphore'
21 | semaphore s;
| ^~~~~~~~~
%Error: t/t_semaphore.v:22:4: Can't find typedef: 'semaphore'
22 | semaphore s2;
| ^~~~~~~~~
%Error: Exiting due to

View File

@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
scenarios(simulator => 1);
top_filename("t/t_semaphore.pl");
top_filename("t/t_semaphore.v");
compile(
v_flags2 => ["+define+T_SEMAPHORE+std::semaphore"],