Skip to content

Commit

Permalink
test: Drop the function for running env tests
Browse files Browse the repository at this point in the history
Use the new suite-runner to run these tests instead.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Jan 24, 2025
1 parent 7c012db commit 3e5e638
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion include/test/suites.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[]);
Expand Down
2 changes: 1 addition & 1 deletion test/cmd_ut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions test/env/cmd_ut_env.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Joe Hershberger, National Instruments, [email protected]
*/

#include <command.h>
#include <test/env.h>
#include <test/suites.h>
#include <test/ut.h>
Expand Down Expand Up @@ -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);
}

0 comments on commit 3e5e638

Please sign in to comment.