test: Drop the function for running hush tests
Use the new suite-runner to run these tests instead. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -32,7 +32,6 @@ int cmd_ut_category(const char *name, const char *prefix,
|
|||||||
|
|
||||||
int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
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_loadm(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_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
|
||||||
int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
|
@@ -178,7 +178,7 @@ static struct suite suites[] = {
|
|||||||
SUITE(addrmap),
|
SUITE(addrmap),
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_IS_ENABLED(HUSH_PARSER)
|
#if CONFIG_IS_ENABLED(HUSH_PARSER)
|
||||||
SUITE_CMD(hush, do_ut_hush),
|
SUITE(hush),
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_CMD_LOADM
|
#ifdef CONFIG_CMD_LOADM
|
||||||
SUITE_CMD(loadm, do_ut_loadm),
|
SUITE_CMD(loadm, do_ut_loadm),
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
# (C) Copyright 2021
|
# (C) Copyright 2021
|
||||||
# Francis Laniel, Amarula Solutions, francis.laniel@amarulasolutions.com
|
# Francis Laniel, Amarula Solutions, francis.laniel@amarulasolutions.com
|
||||||
|
|
||||||
obj-y += cmd_ut_hush.o
|
|
||||||
obj-y += if.o
|
obj-y += if.o
|
||||||
ifdef CONFIG_CONSOLE_RECORD
|
ifdef CONFIG_CONSOLE_RECORD
|
||||||
obj-y += dollar.o
|
obj-y += dollar.o
|
||||||
|
@@ -1,19 +0,0 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
|
||||||
/*
|
|
||||||
* (C) Copyright 2021
|
|
||||||
* Francis Laniel, Amarula Solutions, francis.laniel@amarulasolutions.com
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <command.h>
|
|
||||||
#include <test/hush.h>
|
|
||||||
#include <test/suites.h>
|
|
||||||
#include <test/ut.h>
|
|
||||||
|
|
||||||
int do_ut_hush(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|
||||||
{
|
|
||||||
struct unit_test *tests = UNIT_TEST_SUITE_START(hush);
|
|
||||||
const int n_ents = UNIT_TEST_SUITE_COUNT(hush);
|
|
||||||
|
|
||||||
return cmd_ut_category("hush", "hush_test_",
|
|
||||||
tests, n_ents, argc, argv);
|
|
||||||
}
|
|
Reference in New Issue
Block a user