blob: d35cd83a4eb30eb9be2f156f8b4a0314756a3799 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Joe Hershberger11dd7cc2015-05-20 14:27:28 -05002/*
3 * (C) Copyright 2015
4 * Joe Hershberger, National Instruments, joe.hershberger@ni.com
Joe Hershberger11dd7cc2015-05-20 14:27:28 -05005 */
6
7#ifndef __TEST_SUITES_H__
8#define __TEST_SUITES_H__
9
Simon Glassed38aef2020-05-10 11:40:03 -060010struct cmd_tbl;
Simon Glass81cbe1c2017-11-25 11:57:29 -070011struct unit_test;
12
13/**
14 * cmd_ut_category() - Run a category of unit tests
15 *
16 * @name: Category name
Philippe Reynes1f99f842019-12-17 19:07:04 +010017 * @prefix: Prefix of test name
Simon Glass81cbe1c2017-11-25 11:57:29 -070018 * @tests: List of tests to run
19 * @n_ents: Number of tests in @tests
Heinrich Schuchardtd41a3822018-08-27 22:04:10 +020020 * @argc: Argument count provided. Must be >= 1. If this is 1 then all
Simon Glass81cbe1c2017-11-25 11:57:29 -070021 * 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
24 */
Philippe Reynes1f99f842019-12-17 19:07:04 +010025int cmd_ut_category(const char *name, const char *prefix,
26 struct unit_test *tests, int n_ents,
Simon Glassed38aef2020-05-10 11:40:03 -060027 int argc, char *const argv[]);
Simon Glass81cbe1c2017-11-25 11:57:29 -070028
Bin Meng261fc062021-02-25 17:22:35 +080029int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
30 char *const argv[]);
Simon Glass07a88862020-11-05 10:33:38 -070031int do_ut_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glassed38aef2020-05-10 11:40:03 -060032int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
33 char *const argv[]);
Steffen Jaeckele1788f92021-07-08 15:57:40 +020034int do_ut_common(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glassed38aef2020-05-10 11:40:03 -060035int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
36 char *const argv[]);
37int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
38int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
39int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
40int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
Simon Glass573c0fa2020-07-28 19:41:14 -060041int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glassed38aef2020-05-10 11:40:03 -060042int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
43int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
44 char *const argv[]);
Simon Glassd2423682021-05-08 06:59:58 -060045int do_ut_print(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass663a2c12020-11-01 14:15:35 -070046int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
47 char *const argv[]);
Simon Glassed38aef2020-05-10 11:40:03 -060048int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
49int do_ut_time(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
50int do_ut_unicode(struct cmd_tbl *cmdtp, int flag, int argc,
51 char *const argv[]);
Joe Hershberger9dc1d712015-05-20 14:27:29 -050052
Joe Hershberger11dd7cc2015-05-20 14:27:28 -050053#endif /* __TEST_SUITES_H__ */