1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Joe Hershberger, National Instruments, joe.hershberger@ni.com
7 #ifndef __TEST_SUITES_H__
8 #define __TEST_SUITES_H__
14 * cmd_ut_category() - Run a category of unit tests
16 * @name: Category name
17 * @prefix: Prefix of test name
18 * @tests: List of tests to run
19 * @n_ents: Number of tests in @tests
20 * @argc: Argument count provided. Must be >= 1. If this is 1 then all
21 * tests are run, otherwise only the one named @argv[1] is run.
22 * @argv: Arguments: argv[1] is the test to run (if @argc >= 2)
23 * Return: 0 if OK, CMD_RET_FAILURE on failure
25 int cmd_ut_category(const char *name, const char *prefix,
26 struct unit_test *tests, int n_ents,
27 int argc, char *const argv[]);
29 int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
31 int do_ut_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
32 int do_ut_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
33 int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc,
35 int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
37 int do_ut_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
38 int do_ut_common(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
39 int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
41 int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
42 int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
43 int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
44 int do_ut_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
45 int do_ut_font(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
46 int do_ut_hush(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
47 int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
48 int do_ut_loadm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
49 int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
50 int do_ut_mbr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
51 int do_ut_measurement(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
52 int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
53 int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
54 int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
56 int do_ut_pci_mps(struct cmd_tbl *cmdtp, int flag, int argc,
58 int do_ut_print(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
59 int do_ut_seama(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
60 int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
62 int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
63 int do_ut_time(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
64 int do_ut_unicode(struct cmd_tbl *cmdtp, int flag, int argc,
67 #endif /* __TEST_SUITES_H__ */