blob: 5f2e519084f2f3e6c92d9214f253217e24884d4b [file] [log] [blame]
Joe Hershberger11dd7cc2015-05-20 14:27:28 -05001/*
2 * (C) Copyright 2015
3 * Joe Hershberger, National Instruments, joe.hershberger@ni.com
4 *
5 * SPDX-License-Identifier: GPL-2.0
6 */
7
8#ifndef __TEST_SUITES_H__
9#define __TEST_SUITES_H__
10
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
17 * @tests: List of tests to run
18 * @n_ents: Number of tests in @tests
19 * @argc: Argument count provided. Must be <= 1. If this is 1 then all
20 * 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 */
24int cmd_ut_category(const char *name, struct unit_test *tests, int n_ents,
25 int argc, char * const argv[]);
26
Joe Hershberger9dc1d712015-05-20 14:27:29 -050027int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershberger26e038f2015-05-20 14:27:36 -050028int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Maxime Ripard0e31a112016-07-05 10:26:46 +020029int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Joe Hershbergeree20efe2015-05-20 14:27:30 -050030int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Simon Glass1edaed02017-11-25 11:57:33 -070031int do_ut_compression(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
Joe Hershberger9dc1d712015-05-20 14:27:29 -050032
Joe Hershberger11dd7cc2015-05-20 14:27:28 -050033#endif /* __TEST_SUITES_H__ */