diff options
author | Tom Rini <trini@konsulko.com> | 2023-10-14 10:50:20 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-14 10:50:20 -0400 |
commit | 3c3f1626919cd93cbe6c56e3849937de5be18dbb (patch) | |
tree | 97483e691431094e5a668fcc9ac1cc96032ef543 /test | |
parent | 25edd247a84a31298c22a34ec5cf2851cbf61f70 (diff) | |
parent | 74aae507bc4d5726308c191d3191d9cd624ba0d2 (diff) | |
download | u-boot-3c3f1626919cd93cbe6c56e3849937de5be18dbb.tar.gz u-boot-3c3f1626919cd93cbe6c56e3849937de5be18dbb.tar.bz2 u-boot-3c3f1626919cd93cbe6c56e3849937de5be18dbb.zip |
Merge tag 'dm-pull-13oct23' of https://source.denx.de/u-boot/custodians/u-boot-dm
improvements with dev_read_addr_..._ptr()
scan all entries in multi-device boot_targets
EFI empty-capsule support
Diffstat (limited to 'test')
-rw-r--r-- | test/boot/bootdev.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/boot/bootdev.c b/test/boot/bootdev.c index 6b29213416..c5f14a7a13 100644 --- a/test/boot/bootdev.c +++ b/test/boot/bootdev.c @@ -221,6 +221,16 @@ static int bootdev_test_order(struct unit_test_state *uts) ut_asserteq_str("mmc2.bootdev", iter.dev_used[1]->name); bootflow_iter_uninit(&iter); + /* Make sure it scans a bootdevs in each target */ + ut_assertok(env_set("boot_targets", "mmc spi")); + ut_asserteq(0, bootflow_scan_first(NULL, NULL, &iter, 0, &bflow)); + ut_asserteq(-ENODEV, bootflow_scan_next(&iter, &bflow)); + ut_asserteq(3, iter.num_devs); + ut_asserteq_str("mmc2.bootdev", iter.dev_used[0]->name); + ut_asserteq_str("mmc1.bootdev", iter.dev_used[1]->name); + ut_asserteq_str("mmc0.bootdev", iter.dev_used[2]->name); + bootflow_iter_uninit(&iter); + return 0; } BOOTSTD_TEST(bootdev_test_order, UT_TESTF_DM | UT_TESTF_SCAN_FDT); |