diff options
author | Simon Glass <sjg@chromium.org> | 2025-01-20 14:25:38 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-24 14:34:40 -0600 |
commit | 3e5e638e62574fa1f9989f2fd35dd9dd7b6d72b5 (patch) | |
tree | fd1346c1ca2205e474a0f873b0a7740ca3ec8bf3 | |
parent | 7c012db10608afaa04c784187a1bc8f07b9ac4eb (diff) |
test: Drop the function for running env tests
Use the new suite-runner to run these tests instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | include/test/suites.h | 1 | ||||
-rw-r--r-- | test/cmd_ut.c | 2 | ||||
-rw-r--r-- | test/env/cmd_ut_env.c | 9 |
3 files changed, 1 insertions, 11 deletions
diff --git a/include/test/suites.h b/include/test/suites.h index 414613c593e..b78436fe2b2 100644 --- a/include/test/suites.h +++ b/include/test/suites.h @@ -37,7 +37,6 @@ int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); -int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_font(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); diff --git a/test/cmd_ut.c b/test/cmd_ut.c index a0905ec54b7..155b187ad4b 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -136,7 +136,7 @@ static struct suite suites[] = { SUITE(dm), #endif #if defined(CONFIG_UT_ENV) - SUITE_CMD(env, do_ut_env), + SUITE(env), #endif SUITE_CMD(exit, do_ut_exit), #ifdef CONFIG_CMD_FDT diff --git a/test/env/cmd_ut_env.c b/test/env/cmd_ut_env.c index 332139bb803..81d1bb2f80d 100644 --- a/test/env/cmd_ut_env.c +++ b/test/env/cmd_ut_env.c @@ -4,7 +4,6 @@ * Joe Hershberger, National Instruments, joe.hershberger@ni.com */ -#include <command.h> #include <test/env.h> #include <test/suites.h> #include <test/ut.h> @@ -74,11 +73,3 @@ static int env_test_env_cmd(struct unit_test_state *uts) return 0; } ENV_TEST(env_test_env_cmd, UTF_CONSOLE); - -int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) -{ - struct unit_test *tests = UNIT_TEST_SUITE_START(env); - const int n_ents = UNIT_TEST_SUITE_COUNT(env); - - return cmd_ut_category("env", "env_test_", tests, n_ents, argc, argv); -} |