test: Drop the function for running fdt_overlay tests

Use the new suite-runner to run these tests instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2025-02-07 11:30:47 -07:00 committed by Tom Rini
parent a7290bc4b7
commit ba1112839a
3 changed files with 1 additions and 20 deletions

View file

@ -36,8 +36,6 @@ int cmd_ut_category(struct unit_test_state *uts, const char *name,
int do_ut_bootstd(struct unit_test_state *uts, struct cmd_tbl *cmdtp, int flag,
int argc, char *const argv[]);
int do_ut_fdt_overlay(struct unit_test_state *uts, struct cmd_tbl *cmdtp,
int flag, int argc, char *const argv[]);
int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
#endif /* __TEST_SUITES_H__ */

View file

@ -134,9 +134,7 @@ static struct suite suites[] = {
SUITE(env, "environment"),
SUITE(exit, "shell exit and variables"),
SUITE(fdt, "fdt command"),
#ifdef CONFIG_UT_FDT_OVERLAY
SUITE_CMD(fdt_overlay, do_ut_fdt_overlay, "device tree overlays"),
#endif
SUITE(fdt_overlay, "device tree overlays"),
SUITE(font, "font command"),
SUITE(hush, "hush behaviour"),
SUITE(lib, "library functions"),

View file

@ -236,18 +236,3 @@ static int fdt_overlay_test_stacked(struct unit_test_state *uts)
return CMD_RET_SUCCESS;
}
FDT_OVERLAY_TEST(fdt_overlay_test_stacked, 0);
int do_ut_fdt_overlay(struct unit_test_state *uts, struct cmd_tbl *cmdtp,
int flag, int argc, char *const argv[])
{
struct unit_test *tests = UNIT_TEST_SUITE_START(fdt_overlay);
const int n_ents = UNIT_TEST_SUITE_COUNT(fdt_overlay);
int ret = -ENOMEM;
ret = cmd_ut_category(uts, "fdt_overlay", "fdt_overlay_test_", tests,
n_ents, argc, argv);
free(fdt);
return ret;
}