Tests: Rename t_lib_prot tests in prep for new options.

This commit is contained in:
Wilson Snyder 2021-11-14 08:58:04 -05:00
parent fe5822ba54
commit 28b6e79cf7
12 changed files with 19 additions and 19 deletions

View File

@ -17,12 +17,12 @@ scenarios(
);
$Self->{sim_time} = $Self->{benchmark} * 100 if $Self->{benchmark};
top_filename("t/t_prot_lib.v");
top_filename("t/t_lib_prot.v");
# Tests the same code as t_prot_lib.pl but without --protect-lib
# Tests the same code as t_lib_prot.pl but without --protect-lib
compile(
verilator_flags2 => ["t/t_prot_lib_secret.v"],
xsim_flags2 => ["t/t_prot_lib_secret.v"],
verilator_flags2 => ["t/t_lib_prot_secret.v"],
xsim_flags2 => ["t/t_lib_prot_secret.v"],
);
execute(

View File

@ -29,7 +29,7 @@ while (1) {
cmd => ["perl",
"$ENV{VERILATOR_ROOT}/bin/verilator",
"--prefix",
"Vt_prot_lib_secret",
"Vt_lib_prot_secret",
"-cc",
"-Mdir",
$secret_dir,
@ -37,7 +37,7 @@ while (1) {
$secret_prefix,
"--protect-key",
"secret-key",
"t/t_prot_lib_secret.v"],
"t/t_lib_prot_secret.v"],
verilator_run => 1,
);
last if $Self->{errors};
@ -47,7 +47,7 @@ while (1) {
"-C",
$secret_dir,
"-f",
"Vt_prot_lib_secret.mk"]);
"Vt_lib_prot_secret.mk"]);
last if $Self->{errors};
compile(

View File

@ -18,7 +18,7 @@ scenarios(
$Self->{sim_time} = $Self->{benchmark} * 100 if $Self->{benchmark};
top_filename("t/t_prot_lib.v");
top_filename("t/t_lib_prot.v");
my $secret_prefix = "secret";
my $secret_dir = "$Self->{obj_dir}/$secret_prefix";
mkdir $secret_dir;
@ -30,7 +30,7 @@ while (1) {
cmd => ["perl",
"$ENV{VERILATOR_ROOT}/bin/verilator",
"--prefix",
"Vt_prot_lib_secret",
"Vt_lib_prot_secret",
"-cc",
"-Mdir",
$secret_dir,
@ -39,7 +39,7 @@ while (1) {
$secret_prefix,
"--protect-key",
"secret-key",
"t/t_prot_lib_secret.v"],
"t/t_lib_prot_secret.v"],
verilator_run => 1,
);
last if $Self->{errors};
@ -49,7 +49,7 @@ while (1) {
"-C",
$secret_dir,
"-f",
"Vt_prot_lib_secret.mk"]);
"Vt_lib_prot_secret.mk"]);
last if $Self->{errors};
compile(

View File

@ -29,7 +29,7 @@ while (1) {
cmd => ["perl",
"$ENV{VERILATOR_ROOT}/bin/verilator",
"--prefix",
"Vt_prot_lib_secret",
"Vt_lib_prot_secret",
"-cc",
"-Mdir",
$secret_dir,
@ -37,7 +37,7 @@ while (1) {
$secret_prefix,
"--protect-key",
"secret-key",
"t/t_prot_lib_comb.v"],
"t/t_lib_prot_comb.v"],
verilator_run => 1,
);
last if $Self->{errors};
@ -47,7 +47,7 @@ while (1) {
"-C",
$secret_dir,
"-f",
"Vt_prot_lib_secret.mk"]);
"Vt_lib_prot_secret.mk"]);
last if $Self->{errors};
compile(

View File

@ -1,4 +1,4 @@
%Error-UNSUPPORTED: t/t_prot_lib_inout_bad.v:9:28: Unsupported: protect-lib port direction: INOUT
%Error-UNSUPPORTED: t/t_lib_prot_inout_bad.v:9:28: Unsupported: protect-lib port direction: INOUT
9 | inout z,
| ^
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest

View File

@ -16,7 +16,7 @@ scenarios(
vltmt => 1,
xsim => 1,
);
top_filename("t/t_prot_lib.v");
top_filename("t/t_lib_prot.v");
$Self->{sim_time} = $Self->{benchmark} * 100 if $Self->{benchmark};
@ -33,7 +33,7 @@ while (1) {
"$ENV{VERILATOR_ROOT}/bin/verilator",
($Self->{vltmt} ? ' --threads 6' : ''),
"--prefix",
"Vt_prot_lib_secret",
"Vt_lib_prot_secret",
"-cc",
"-Mdir",
$secret_dir,
@ -41,7 +41,7 @@ while (1) {
$secret_prefix,
"--protect-key",
"secret-key",
"t/t_prot_lib_secret.v"],
"t/t_lib_prot_secret.v"],
verilator_run => 1,
);
last if $Self->{errors};
@ -51,7 +51,7 @@ while (1) {
"-C",
$secret_dir,
"-f",
"Vt_prot_lib_secret.mk"]);
"Vt_lib_prot_secret.mk"]);
last if $Self->{errors};
compile(