test: Drop the function for running addrmap tests
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:50 +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/addrmap.c
test/cmd_ut.c

index 77af692..54fddaa 100644 (file)
@@ -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[]);
index fd01171..1f2deb1 100644 (file)
@@ -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);
-}
index 71283d6..6111717 100644 (file)
@@ -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),