diff options
author | Simon Glass <sjg@chromium.org> | 2022-07-13 06:06:58 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-07-26 02:30:56 -0600 |
commit | 281996110c1f42b5476e43040798cb38169b6119 (patch) | |
tree | 01b20167e46f50bead23e6d34bc5335ff58356bc /test | |
parent | 109dbdf042e2a034edd8ed7b711143c522cb1465 (diff) | |
download | u-boot-281996110c1f42b5476e43040798cb38169b6119.tar.gz u-boot-281996110c1f42b5476e43040798cb38169b6119.tar.bz2 u-boot-281996110c1f42b5476e43040798cb38169b6119.zip |
addrmap: Support on sandbox
Update this feature so that it works on sandbox, using a basic identity
mapping. This allows us to run the 'ut addrmap' test.
Also fix up the test to use the correct macros to access the linker
list, so that the 'ut addrmap' command actually works.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/cmd/addrmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/cmd/addrmap.c b/test/cmd/addrmap.c index fb744485bb..1eb5955db1 100644 --- a/test/cmd/addrmap.c +++ b/test/cmd/addrmap.c @@ -29,9 +29,8 @@ ADDRMAP_TEST(addrmap_test_basic, UT_TESTF_CONSOLE_REC); int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - struct unit_test *tests = ll_entry_start(struct unit_test, - addrmap_test); - const int n_ents = ll_entry_count(struct unit_test, addrmap_test); + struct unit_test *tests = UNIT_TEST_SUITE_START(addrmap_test); + const int n_ents = UNIT_TEST_SUITE_COUNT(addrmap_test); return cmd_ut_category("cmd_addrmap", "cmd_addrmap_", tests, n_ents, argc, argv); |