diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-07 17:35:12 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 09:57:31 -0500 |
commit | 8482356f48c96eb49f1bd9efd53c887d09a1cf64 (patch) | |
tree | 901aeec297da03af8910e0790edf48d060d4807d /arch/sandbox | |
parent | 2a2814d5f2714a7b0aef9ea7f9d8d67a34875d55 (diff) | |
download | u-boot-8482356f48c96eb49f1bd9efd53c887d09a1cf64.zip u-boot-8482356f48c96eb49f1bd9efd53c887d09a1cf64.tar.gz u-boot-8482356f48c96eb49f1bd9efd53c887d09a1cf64.tar.bz2 |
test: Allow SPL to run any available test
At present SPL only runs driver model tests. Update it to run all
available tests, i.e. in any test suite.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/cpu/spl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index 3779d58..ce5aae8 100644 --- a/arch/sandbox/cpu/spl.c +++ b/arch/sandbox/cpu/spl.c @@ -13,7 +13,7 @@ #include <asm/global_data.h> #include <asm/spl.h> #include <asm/state.h> -#include <test/test.h> +#include <test/ut.h> DECLARE_GLOBAL_DATA_PTR; @@ -63,9 +63,12 @@ void spl_board_init(void) preloader_console_init(); if (state->run_unittests) { + struct unit_test *tests = UNIT_TEST_ALL_START(); + const int count = UNIT_TEST_ALL_COUNT(); int ret; - ret = dm_test_run(state->select_unittests); + ret = ut_run_list("spl", NULL, tests, count, + state->select_unittests); /* continue execution into U-Boot */ } } |