[PATCH v2 28/44] test: Drop the function for running addrmap tests
Simon Glass
sjg at chromium.org
Mon Jan 20 22:25:50 CET 2025
Use the new suite-runner to run these tests instead.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
include/test/suites.h | 2 --
test/cmd/addrmap.c | 9 ---------
test/cmd_ut.c | 2 +-
3 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/include/test/suites.h b/include/test/suites.h
index 77af692be3c..54fddaa6bac 100644
--- a/include/test/suites.h
+++ b/include/test/suites.h
@@ -30,8 +30,6 @@ int cmd_ut_category(const char *name, const char *prefix,
struct unit_test *tests, int n_ents,
int argc, char *const argv[]);
-int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
- char *const argv[]);
int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[]);
int do_ut_hush(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
diff --git a/test/cmd/addrmap.c b/test/cmd/addrmap.c
index fd0117102e2..1f2deb15052 100644
--- a/test/cmd/addrmap.c
+++ b/test/cmd/addrmap.c
@@ -24,12 +24,3 @@ static int addrmap_test_basic(struct unit_test_state *uts)
return 0;
}
ADDRMAP_TEST(addrmap_test_basic, UTF_CONSOLE);
-
-int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
- struct unit_test *tests = UNIT_TEST_SUITE_START(addrmap);
- const int n_ents = UNIT_TEST_SUITE_COUNT(addrmap);
-
- return cmd_ut_category("addrmap", "cmd_addrmap_", tests, n_ents,
- argc, argv);
-}
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index 71283d6dd14..611171740a9 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -175,7 +175,7 @@ static struct suite suites[] = {
#endif
#endif
#ifdef CONFIG_CMD_ADDRMAP
- SUITE_CMD(addrmap, do_ut_addrmap),
+ SUITE(addrmap),
#endif
#if CONFIG_IS_ENABLED(HUSH_PARSER)
SUITE_CMD(hush, do_ut_hush),
--
2.43.0
More information about the U-Boot
mailing list