blob: ad4fc926f48f15a20675c4f89a816c492c2e24fd [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Joe Hershbergerc617ede2015-05-20 14:27:28 -05002/*
3 * (C) Copyright 2015
4 * Joe Hershberger, National Instruments, joe.hershberger@ni.com
Joe Hershbergerc617ede2015-05-20 14:27:28 -05005 */
6
7#ifndef __TEST_SUITES_H__
8#define __TEST_SUITES_H__
9
Simon Glass09140112020-05-10 11:40:03 -060010struct cmd_tbl;
Simon Glass4d869c12017-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 Reynes4ad4edf2019-12-17 19:07:04 +010017 * @prefix: Prefix of test name
Simon Glass4d869c12017-11-25 11:57:29 -070018 * @tests: List of tests to run
19 * @n_ents: Number of tests in @tests
Heinrich Schuchardt4b0a2d32018-08-27 22:04:10 +020020 * @argc: Argument count provided. Must be >= 1. If this is 1 then all
Simon Glass4d869c12017-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)
Heinrich Schuchardt185f8122022-01-19 18:05:50 +010023 * Return: 0 if OK, CMD_RET_FAILURE on failure
Simon Glass4d869c12017-11-25 11:57:29 -070024 */
Philippe Reynes4ad4edf2019-12-17 19:07:04 +010025int cmd_ut_category(const char *name, const char *prefix,
26 struct unit_test *tests, int n_ents,
Simon Glass09140112020-05-10 11:40:03 -060027 int argc, char *const argv[]);
Simon Glass4d869c12017-11-25 11:57:29 -070028
Bin Mengea309212021-02-25 17:22:35 +080029int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
30 char *const argv[]);
Marek Vasutbf527662023-05-31 03:03:58 +020031int do_ut_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glassf158ba12020-11-05 10:33:38 -070032int do_ut_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glassfb1451b2022-04-24 23:31:24 -060033int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc,
34 char *const argv[]);
Simon Glass09140112020-05-10 11:40:03 -060035int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
36 char *const argv[]);
Steffen Jaeckel25c8b9f2021-07-08 15:57:40 +020037int do_ut_common(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass09140112020-05-10 11:40:03 -060038int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
39 char *const argv[]);
40int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
41int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Marek Vasutf08dcd92022-12-20 07:26:00 +010042int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass74724482022-07-13 06:06:59 -060043int do_ut_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass430e1672022-10-06 08:36:16 -060044int do_ut_font(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass09140112020-05-10 11:40:03 -060045int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Rui Miguel Silvabfef72e2022-05-11 10:55:40 +010046int do_ut_loadm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass09140112020-05-10 11:40:03 -060047int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
Alexander Gendin04291ee2023-10-09 01:24:36 +000048int do_ut_mbr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Eddie James5999ea22023-10-24 10:43:51 -050049int do_ut_measurement(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
Simon Glass550a9e72020-07-28 19:41:14 -060050int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass09140112020-05-10 11:40:03 -060051int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
52int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
53 char *const argv[]);
Stephen Carlson447dfbc2023-03-10 11:07:15 -080054int do_ut_pci_mps(struct cmd_tbl *cmdtp, int flag, int argc,
55 char *const argv[]);
Simon Glassfbb99dc2021-05-08 06:59:58 -060056int do_ut_print(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Linus Walleij41a29f22023-02-01 00:16:13 +010057int do_ut_seama(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Simon Glass90a99012020-11-01 14:15:35 -070058int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
59 char *const argv[]);
Simon Glass09140112020-05-10 11:40:03 -060060int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
61int do_ut_time(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
62int do_ut_unicode(struct cmd_tbl *cmdtp, int flag, int argc,
63 char *const argv[]);
Joe Hershberger40441e02015-05-20 14:27:29 -050064
Joe Hershbergerc617ede2015-05-20 14:27:28 -050065#endif /* __TEST_SUITES_H__ */