]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: Drop the function for running bdinfo tests
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:34 +0000 (14:25 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jan 2025 20:34:40 +0000 (14:34 -0600)
Use the new suite-runner to run these tests instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/test/suites.h
test/cmd/bdinfo.c
test/cmd_ut.c

index c1119e44999d326164bf149d409369c788781001..b6af92954244fcd11037e586adff90933cfb3f4f 100644 (file)
@@ -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[]);
index b0b24bcb5a78003bee0e1e8bf8168cb95e40aa2b..7408c271a307fb5a5d74099dac811b7fb6557bf9 100644 (file)
@@ -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);
-}
index c5df8b397b3717627bd8594f04659e76346312b2..bbd329912d4205012cbb9b8f99b8507625bdcbaf 100644 (file)
@@ -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),