Files
u-boot/test/optee/Kconfig
Jan Kiszka 44c4919e9d test: Fix optee unit test
This was apparently not built for several years: Since a2535243e0,
optee_copy_fdt_nodes implicitly works against the U-Boot dt. We
therefore have to tweak its reference before using the function and
restore things afterwards.

If it had been built, actually trying it out would have failed next: We
need CONFIG_OPTEE_LIB to actually build the function that is primarily
being tested here. And we need to re-initialize target fdt, now that the
tests may run in random order.

Fixes: a2535243e0 ("lib: optee: migration optee_copy_fdt_nodes for OF_LIVE support")
Fixes: ba2feaf414 ("test: Split optee tests into three functions")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2025-09-24 11:04:11 -06:00

9 lines
220 B
Plaintext

config UT_OPTEE
bool "Enable OP-TEE Unit Tests"
depends on OF_CONTROL && OPTEE
select OPTEE_LIB
default y
help
This enables the 'ut optee' command which runs a series of unit
tests on the optee library code..