[PATCH v2 12/44] test: Drop the function for running bdinfo tests
Simon Glass
sjg at chromium.org
Mon Jan 20 22:25:34 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 | 1 -
test/cmd/bdinfo.c | 8 --------
test/cmd_ut.c | 2 +-
3 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/include/test/suites.h b/include/test/suites.h
index c1119e44999..b6af9295424 100644
--- a/include/test/suites.h
+++ b/include/test/suites.h
@@ -32,7 +32,6 @@ int cmd_ut_category(const char *name, const char *prefix,
int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[]);
-int do_ut_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
int do_ut_bootm(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[]);
diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index 46482b1f56b..11f717bf43e 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -282,11 +282,3 @@ static int bdinfo_test_eth(struct unit_test_state *uts)
return 0;
}
BDINFO_TEST(bdinfo_test_eth, UTF_CONSOLE);
-
-int do_ut_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
- struct unit_test *tests = UNIT_TEST_SUITE_START(bdinfo);
- const int n_ents = UNIT_TEST_SUITE_COUNT(bdinfo);
-
- return cmd_ut_category("bdinfo", "bdinfo_test_", tests, n_ents, argc, argv);
-}
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index c5df8b397b3..bbd329912d4 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -123,7 +123,7 @@ SUITE_DECL(upl);
static struct suite suites[] = {
SUITE_CMD(info, do_ut_info),
#ifdef CONFIG_CMD_BDI
- SUITE_CMD(bdinfo, do_ut_bdinfo),
+ SUITE(bdinfo),
#endif
#ifdef CONFIG_UT_BOOTSTD
SUITE_CMD(bootstd, do_ut_bootstd),
--
2.43.0
More information about the U-Boot
mailing list