Skip to content

Commit dffa26d

Browse files
sasdfnasahlpa
authored andcommitted
[cov,crypto] Add coverage_view_test for otcrypto library
This adds a `coverage_view_test` rule for the `otcrypto_export_size` binary to support coverage analysis. It also adds the `silicon_creator` execution environment to the binary since the coverage_view_test requires a silicon target. Change-Id: I662893fb2a1cfd648619aed369f6eb070fae85eb Signed-off-by: Yi-Hsuan Deng <yhdeng@google.com>
1 parent 0ae4b2f commit dffa26d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • sw/device/tests/crypto

sw/device/tests/crypto/BUILD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ load(
1818
"verilator_params",
1919
)
2020
load("@ot_python_deps//:requirements.bzl", "requirement")
21+
load("//rules/coverage:view.bzl", "coverage_view_test")
2122

2223
package(default_visibility = ["//visibility:public"])
2324

@@ -49,6 +50,7 @@ opentitan_binary(
4950
copts = ["-fno-lto"],
5051
exec_env = [
5152
"//hw/top_earlgrey:fpga_cw310_rom_ext",
53+
"//hw/top_earlgrey:silicon_creator",
5254
],
5355
linker_script = "//sw/device/silicon_owner/bare_metal:ld_slot_a",
5456
manifest = "//sw/device/silicon_owner/bare_metal:manifest",
@@ -59,6 +61,11 @@ opentitan_binary(
5961
],
6062
)
6163

64+
coverage_view_test(
65+
name = "otcrypto_coverage_view",
66+
elf = "otcrypto_export_size",
67+
)
68+
6269
opentitan_test(
6370
name = "aes_functest",
6471
srcs = ["aes_functest.c"],

0 commit comments

Comments
 (0)