blob: 0748185eaf75b05011ccc52b8474383e8ed298fe [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 Glass81cbe1c2017-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
Philippe Reynes1f99f842019-12-17 19:07:04 +010016 * @prefix: Prefix of test name
Simon Glass81cbe1c2017-11-25 11:57:29 -070017 * @tests: List of tests to run
18 * @n_ents: Number of tests in @tests
Heinrich Schuchardtd41a3822018-08-27 22:04:10 +020019 * @argc: Argument count provided. Must be >= 1. If this is 1 then all
Simon Glass81cbe1c2017-11-25 11:57:29 -070020 * tests are run, otherwise only the one named @argv[1] is run.
21 * @argv: Arguments: argv[1] is the test to run (if @argc >= 2)
22 * @return 0 if OK, CMD_RET_FAILURE on failure
23 */
Philippe Reynes1f99f842019-12-17 19:07:04 +010024int cmd_ut_category(const char *name, const char *prefix,
25 struct unit_test *tests, int n_ents,
Simon Glass81cbe1c2017-11-25 11:57:29 -070026 int argc, char * const argv[]);
27
Simon Glass78b0ef52018-11-15 18:43:53 -070028int do_ut_bloblist(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
Heinrich Schuchardtb8b6c812018-08-31 21:31:28 +020029int do_ut_compression(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
Joe Hershberger9dc1d712015-05-20 14:27:29 -050030int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershberger26e038f2015-05-20 14:27:36 -050031int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Heinrich Schuchardtf77a6352019-01-30 07:53:31 +010032int do_ut_lib(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Heiko Stuebner1c9bb9b2019-10-23 16:46:41 +020033int do_ut_optee(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Maxime Ripard0e31a112016-07-05 10:26:46 +020034int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershbergeree20efe2015-05-20 14:27:30 -050035int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Heinrich Schuchardtb8b6c812018-08-31 21:31:28 +020036int do_ut_unicode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershberger9dc1d712015-05-20 14:27:29 -050037
Joe Hershberger11dd7cc2015-05-20 14:27:28 -050038#endif /* __TEST_SUITES_H__ */