From fb56f4f88005d2bb97c7e31311f51420242e9bcb Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Thu, 1 Jul 2021 23:47:33 +0100 Subject: [PATCH] Tests: make t_prot_lib*.pl name mangling deterministic This is to facilitate diffing generated files in tests. --- test_regress/t/t_prot_lib.pl | 2 ++ test_regress/t/t_prot_lib_clk_gated.pl | 2 ++ test_regress/t/t_prot_lib_comb.pl | 2 ++ test_regress/t/t_prot_lib_inout_bad.pl | 5 ++++- test_regress/t/t_prot_lib_shared.pl | 2 ++ 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/test_regress/t/t_prot_lib.pl b/test_regress/t/t_prot_lib.pl index 7f2b9b352..22fb1c6d1 100755 --- a/test_regress/t/t_prot_lib.pl +++ b/test_regress/t/t_prot_lib.pl @@ -35,6 +35,8 @@ while (1) { $secret_dir, "--protect-lib", $secret_prefix, + "--protect-key", + "secret-key", "t/t_prot_lib_secret.v"], verilator_run => 1, ); diff --git a/test_regress/t/t_prot_lib_clk_gated.pl b/test_regress/t/t_prot_lib_clk_gated.pl index 8bb14ba16..0f7fcd125 100755 --- a/test_regress/t/t_prot_lib_clk_gated.pl +++ b/test_regress/t/t_prot_lib_clk_gated.pl @@ -37,6 +37,8 @@ while (1) { "-GGATED_CLK=1", "--protect-lib", $secret_prefix, + "--protect-key", + "secret-key", "t/t_prot_lib_secret.v"], verilator_run => 1, ); diff --git a/test_regress/t/t_prot_lib_comb.pl b/test_regress/t/t_prot_lib_comb.pl index 296873c8f..856e3ebd0 100755 --- a/test_regress/t/t_prot_lib_comb.pl +++ b/test_regress/t/t_prot_lib_comb.pl @@ -35,6 +35,8 @@ while (1) { $secret_dir, "--protect-lib", $secret_prefix, + "--protect-key", + "secret-key", "t/t_prot_lib_comb.v"], verilator_run => 1, ); diff --git a/test_regress/t/t_prot_lib_inout_bad.pl b/test_regress/t/t_prot_lib_inout_bad.pl index 955f6793e..d3c7f81d2 100755 --- a/test_regress/t/t_prot_lib_inout_bad.pl +++ b/test_regress/t/t_prot_lib_inout_bad.pl @@ -12,7 +12,10 @@ scenarios(vlt => 1); compile ( verilator_flags2 => ["--protect-lib", - "secret"], + "secret", + "--protect-key", + "secret-key" + ], verilator_make_gcc => 0, fails => 1, expect_filename => $Self->{golden_filename}, diff --git a/test_regress/t/t_prot_lib_shared.pl b/test_regress/t/t_prot_lib_shared.pl index a595a4866..91e2e5cc6 100755 --- a/test_regress/t/t_prot_lib_shared.pl +++ b/test_regress/t/t_prot_lib_shared.pl @@ -39,6 +39,8 @@ while (1) { $secret_dir, "--protect-lib", $secret_prefix, + "--protect-key", + "secret-key", "t/t_prot_lib_secret.v"], verilator_run => 1, );