From: Simon Glass Date: Mon, 20 Jan 2025 21:25:46 +0000 (-0700) Subject: test: Drop the function for running setexpr tests X-Git-Tag: v2025.04-rc1~11^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cebdc5376f9663254387c5c59c095f9f64b3eb99;p=pandora-u-boot.git test: Drop the function for running setexpr tests Use the new suite-runner to run these tests instead. Signed-off-by: Simon Glass --- diff --git a/include/test/suites.h b/include/test/suites.h index cb6b6fba240..775b0a5a131 100644 --- a/include/test/suites.h +++ b/include/test/suites.h @@ -46,8 +46,6 @@ int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc, int do_ut_pci_mps(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_seama(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); -int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc, - char *const argv[]); int do_ut_upl(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); #endif /* __TEST_SUITES_H__ */ diff --git a/test/cmd/setexpr.c b/test/cmd/setexpr.c index 49eac5890aa..7f318a42ead 100644 --- a/test/cmd/setexpr.c +++ b/test/cmd/setexpr.c @@ -479,12 +479,3 @@ static int setexpr_test_fmt(struct unit_test_state *uts) } SETEXPR_TEST(setexpr_test_fmt, UTF_CONSOLE); #endif - -int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) -{ - struct unit_test *tests = UNIT_TEST_SUITE_START(setexpr); - const int n_ents = UNIT_TEST_SUITE_COUNT(setexpr); - - return cmd_ut_category("setexpr", "setexpr_test_", tests, n_ents, - argc, argv); -} diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 8ab29046969..f2a72adc16e 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -163,7 +163,7 @@ static struct suite suites[] = { #endif SUITE(mem), #if defined(CONFIG_SANDBOX) && defined(CONFIG_CMD_SETEXPR) - SUITE_CMD(setexpr, do_ut_setexpr), + SUITE(setexpr), #endif #ifdef CONFIG_MEASURED_BOOT SUITE_CMD(measurement, do_ut_measurement),