Skip to content

Commit

Permalink
[sival, spi_dev] Move tpm test out of sim_dv folder
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Reis <[email protected]>
  • Loading branch information
engdoreis committed Jan 17, 2024
1 parent 6373b9c commit fa0a6d5
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 21 deletions.
2 changes: 1 addition & 1 deletion hw/top_earlgrey/dv/chip_sim_cfg.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@
{
name: chip_sw_spi_device_tpm
uvm_test_seq: chip_sw_spi_device_tpm_vseq
sw_images: ["//sw/device/tests/sim_dv:spi_device_tpm_tx_rx_test:1:new_rules"]
sw_images: ["//sw/device/tests:spi_device_tpm_tx_rx_test:1:new_rules"]
en_run_modes: ["sw_test_mode_test_rom"]
}
{
Expand Down
44 changes: 44 additions & 0 deletions sw/device/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2938,6 +2938,50 @@ opentitan_test(
],
)

opentitan_test(
name = "spi_device_tpm_tx_rx_test",
srcs = ["spi_device_tpm_tx_rx_test.c"],
cw310 = new_cw310_params(
# This test requires the spi full duplex on the hyperdebug board.
tags = [
"broken",
"manual",
],
test_cmd = """
--bitstream="{bitstream}"
--bootstrap="{firmware}"
"{firmware:elf}"
""",
test_harness = "//sw/host/tests/chip/spi_device_tpm_test",
),
exec_env = {
"//hw/top_earlgrey:fpga_cw310_sival": None,
"//hw/top_earlgrey:silicon_owner_sival_rom_ext": "silicon_owner",
"//hw/top_earlgrey:sim_dv": None,
},
silicon_owner = silicon_params(
test_cmd = """
--bootstrap="{firmware}"
"{firmware:elf}"
""",
test_harness = "//sw/host/tests/chip/spi_device_tpm_test",
),
deps = [
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
"//sw/device/lib/arch:device",
"//sw/device/lib/base:mmio",
"//sw/device/lib/dif:pinmux",
"//sw/device/lib/dif:rv_plic",
"//sw/device/lib/dif:spi_device",
"//sw/device/lib/runtime:hart",
"//sw/device/lib/runtime:irq",
"//sw/device/lib/runtime:log",
"//sw/device/lib/testing:isr_testutils",
"//sw/device/lib/testing/test_framework:ottf_main",
"//sw/device/lib/testing/test_framework:status",
],
)

cc_library(
name = "spi_host_flash_test_impl",
srcs = ["spi_host_flash_test_impl.c"],
Expand Down
20 changes: 0 additions & 20 deletions sw/device/tests/sim_dv/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -671,26 +671,6 @@ opentitan_test(
],
)

opentitan_test(
name = "spi_device_tpm_tx_rx_test",
srcs = ["spi_device_tpm_tx_rx_test.c"],
exec_env = {"//hw/top_earlgrey:sim_dv": None},
deps = [
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
"//sw/device/lib/arch:device",
"//sw/device/lib/base:mmio",
"//sw/device/lib/dif:pinmux",
"//sw/device/lib/dif:rv_plic",
"//sw/device/lib/dif:spi_device",
"//sw/device/lib/runtime:hart",
"//sw/device/lib/runtime:irq",
"//sw/device/lib/runtime:log",
"//sw/device/lib/testing:isr_testutils",
"//sw/device/lib/testing/test_framework:ottf_main",
"//sw/device/lib/testing/test_framework:status",
],
)

opentitan_test(
name = "spi_host_tx_rx_test",
srcs = ["spi_host_tx_rx_test.c"],
Expand Down
1 change: 1 addition & 0 deletions sw/device/tests/sival/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ test_suite(
"//sw/device/tests:sensor_ctrl_alert_test",
"//sw/device/tests:sensor_ctrl_wakeup_test",
"//sw/device/tests:sleep_pwm_pulses_test",
"//sw/device/tests:spi_device_tpm_tx_rx_test",
"//sw/device/tests:sram_ctrl_memset_test",
"//sw/device/tests:sram_ctrl_sleep_sram_ret_contents_no_scramble_test",
"//sw/device/tests:sram_ctrl_subword_access_test",
Expand Down
File renamed without changes.

0 comments on commit fa0a6d5

Please sign in to comment.