diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-25 20:38:26 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:18 -0600 |
commit | ba96be48ad34180debcfbc11434be7329d530701 (patch) | |
tree | 2cc431ece86d4214f1309abf08d0ecfe62d81979 /test/Kconfig | |
parent | 970cd91e8c4d9c812857601475dc2972ad1cd1b4 (diff) | |
download | u-boot-ba96be48ad34180debcfbc11434be7329d530701.zip u-boot-ba96be48ad34180debcfbc11434be7329d530701.tar.gz u-boot-ba96be48ad34180debcfbc11434be7329d530701.tar.bz2 |
dm: test: Build tests for SPL
We want to run unit tests in SPL. Add a new Kconfig to control this and
enable it for sandbox_spl
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/Kconfig')
-rw-r--r-- | test/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Kconfig b/test/Kconfig index 28704a2..2646e7d 100644 --- a/test/Kconfig +++ b/test/Kconfig @@ -6,6 +6,16 @@ menuconfig UNIT_TEST This does not require sandbox to be included, but it is most often used there. +config SPL_UNIT_TEST + bool "Unit tests in SPL" + # We need to be able to unbind devices for tests to work + select SPL_DM_DEVICE_REMOVE + help + Select this to enable unit tests in SPL. Most test are designed for + running in U-Boot proper, but some are intended for SPL, such as + of-platdata and SPL handover. To run these tests with the sandbox_spl + board, use the -u (unit test) option. + config UT_LIB bool "Unit tests for library functions" depends on UNIT_TEST |