summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-17 20:47:34 +0300
committerTom Rini <trini@konsulko.com>2023-01-24 02:11:40 +0300
commitc7b63d500df707bd9c9041e0dae3a25f56098978 (patch)
tree1e9e545f889364b42b4772393bfd93f0e365baa4 /test
parentbd90b092882099afa3786829036c82d6a4241fc8 (diff)
downloadu-boot-c7b63d500df707bd9c9041e0dae3a25f56098978.tar.xz
bootstd: Support running bootdev hunters
Add a way to run a bootdev hunter to find bootdevs of a certain type. Add this to the 'bootdev hunt' command. Test for this are added in a later patch, since a useful test needs some hunters to work with. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/boot/bootdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/boot/bootdev.c b/test/boot/bootdev.c
index a8ca12a3c8..45a00c34c0 100644
--- a/test/boot/bootdev.c
+++ b/test/boot/bootdev.c
@@ -237,6 +237,9 @@ static int bootdev_test_hunter(struct unit_test_state *uts)
ut_assert_nextline("(total hunters: 0)");
ut_assert_console_end();
+ ut_assertok(bootdev_hunt("mmc1", false));
+ ut_assert_console_end();
+
return 0;
}
BOOTSTD_TEST(bootdev_test_hunter, UT_TESTF_DM | UT_TESTF_SCAN_FDT);