blob: 01bee09346cffa7eccc567cbdd529d5ef1b304b9 [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 Glass4d869c12017-11-25 11:57:29 -070010struct unit_test;
11
12/**
13 * cmd_ut_category() - Run a category of unit tests
14 *
15 * @name: Category name
16 * @tests: List of tests to run
17 * @n_ents: Number of tests in @tests
Heinrich Schuchardt4b0a2d32018-08-27 22:04:10 +020018 * @argc: Argument count provided. Must be >= 1. If this is 1 then all
Simon Glass4d869c12017-11-25 11:57:29 -070019 * tests are run, otherwise only the one named @argv[1] is run.
20 * @argv: Arguments: argv[1] is the test to run (if @argc >= 2)
21 * @return 0 if OK, CMD_RET_FAILURE on failure
22 */
23int cmd_ut_category(const char *name, struct unit_test *tests, int n_ents,
24 int argc, char * const argv[]);
25
Simon Glass919e7a82018-11-15 18:43:53 -070026int do_ut_bloblist(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
Heinrich Schuchardtf11a1642018-08-31 21:31:28 +020027int do_ut_compression(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
Joe Hershberger40441e02015-05-20 14:27:29 -050028int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershberger421f86f2015-05-20 14:27:36 -050029int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Heinrich Schuchardt2dd01112019-01-30 07:53:31 +010030int do_ut_lib(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Maxime Ripardf2a99422016-07-05 10:26:46 +020031int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershbergerc812f722015-05-20 14:27:30 -050032int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Heinrich Schuchardtf11a1642018-08-31 21:31:28 +020033int do_ut_unicode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershberger40441e02015-05-20 14:27:29 -050034
Joe Hershbergerc617ede2015-05-20 14:27:28 -050035#endif /* __TEST_SUITES_H__ */