Skip to content

Commit 66c7e7b

Browse files
committed
[sival, spi_host] Add silicon exec_env to tests
Signed-off-by: Douglas Reis <[email protected]>
1 parent 09948a5 commit 66c7e7b

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed

sw/device/tests/BUILD

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3330,9 +3330,12 @@ opentitan_test(
33303330
name = "spi_host_smoketest",
33313331
srcs = ["spi_host_smoketest.c"],
33323332
cw310 = cw310_params(timeout = "moderate"),
3333-
exec_env = {
3334-
"//hw/top_earlgrey:fpga_cw310_test_rom": None,
3335-
},
3333+
exec_env = dicts.add(
3334+
EARLGREY_SILICON_OWNER_ROM_EXT_ENVS,
3335+
{
3336+
"//hw/top_earlgrey:fpga_cw310_test_rom": None,
3337+
},
3338+
),
33363339
deps = [
33373340
":spi_host_flash_test_impl",
33383341
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
@@ -3353,10 +3356,13 @@ opentitan_test(
33533356
opentitan_test(
33543357
name = "spi_host_winbond_flash_test",
33553358
srcs = ["spi_host_winbond_flash_test.c"],
3356-
exec_env = {
3357-
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys": None,
3358-
"//hw/top_earlgrey:fpga_cw310_test_rom": None,
3359-
},
3359+
exec_env = dicts.add(
3360+
EARLGREY_SILICON_OWNER_ROM_EXT_ENVS,
3361+
{
3362+
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys": None,
3363+
"//hw/top_earlgrey:fpga_cw310_test_rom": None,
3364+
},
3365+
),
33603366
deps = [
33613367
":spi_host_flash_test_impl",
33623368
"//hw/top_earlgrey/sw/autogen:top_earlgrey",

sw/device/tests/pmod/BUILD

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
load(
6+
"@bazel_skylib//lib:dicts.bzl",
7+
"dicts",
8+
)
59
load(
610
"//rules/opentitan:defs.bzl",
711
"EARLGREY_SILICON_OWNER_ROM_EXT_ENVS",
@@ -21,10 +25,13 @@ opentitan_test(
2125
"pmod",
2226
], # Requires the PMOD::BoB.
2327
),
24-
exec_env = {
25-
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys": None,
26-
"//hw/top_earlgrey:fpga_cw310_test_rom": None,
27-
},
28+
exec_env = dicts.add(
29+
EARLGREY_SILICON_OWNER_ROM_EXT_ENVS,
30+
{
31+
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys": None,
32+
"//hw/top_earlgrey:fpga_cw310_test_rom": None,
33+
},
34+
),
2835
deps = [
2936
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
3037
"//sw/device/lib/arch:device",

0 commit comments

Comments
 (0)