test: Drop the function for running mem 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-01-20 14:25:45 -07:00 committed by Tom Rini
parent 1ade3afa2d
commit bda212bad5
4 changed files with 2 additions and 22 deletions

View file

@ -40,7 +40,6 @@ int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
int do_ut_hush(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
int do_ut_loadm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
int do_ut_measurement(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
int do_ut_mem(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[]);
int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[]);

View file

@ -10,7 +10,7 @@ endif
ifdef CONFIG_CONSOLE_RECORD
obj-$(CONFIG_CMD_PAUSE) += test_pause.o
endif
obj-y += exit.o mem.o
obj-y += exit.o
obj-$(CONFIG_X86) += cpuid.o msr.o
obj-$(CONFIG_CMD_ADDRMAP) += addrmap.o
obj-$(CONFIG_CMD_BDI) += bdinfo.o

View file

@ -1,19 +0,0 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Executes tests for memory-related commands
*
* Copyright 2020 Google LLC
*/
#include <command.h>
#include <test/suites.h>
#include <test/test.h>
int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
struct unit_test *tests = UNIT_TEST_SUITE_START(mem);
const int n_ents = UNIT_TEST_SUITE_COUNT(mem);
return cmd_ut_category("mem", "mem_test_", tests, n_ents, argc,
argv);
}

View file

@ -161,7 +161,7 @@ static struct suite suites[] = {
&& defined(CONFIG_MMC_SANDBOX) && defined(CONFIG_MMC_WRITE)
SUITE(mbr),
#endif
SUITE_CMD(mem, do_ut_mem),
SUITE(mem),
#if defined(CONFIG_SANDBOX) && defined(CONFIG_CMD_SETEXPR)
SUITE_CMD(setexpr, do_ut_setexpr),
#endif