]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/test/suites.h
test: Add a simple test for bloblist
[thirdparty/u-boot.git] / include / test / suites.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0 */
c617ede0
JH
2/*
3 * (C) Copyright 2015
4 * Joe Hershberger, National Instruments, joe.hershberger@ni.com
c617ede0
JH
5 */
6
7#ifndef __TEST_SUITES_H__
8#define __TEST_SUITES_H__
9
4d869c1e
SG
10struct 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
4b0a2d3a 18 * @argc: Argument count provided. Must be >= 1. If this is 1 then all
4d869c1e
SG
19 * 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
919e7a8f 26int do_ut_bloblist(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
f11a164b 27int do_ut_compression(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
40441e0b 28int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
421f86f3 29int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
f2a9942f 30int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
c812f722 31int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
f11a164b 32int do_ut_unicode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
40441e0b 33
c617ede0 34#endif /* __TEST_SUITES_H__ */