uboot/include/test/suites.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2/*
   3 * (C) Copyright 2015
   4 * Joe Hershberger, National Instruments, joe.hershberger@ni.com
   5 */
   6
   7#ifndef __TEST_SUITES_H__
   8#define __TEST_SUITES_H__
   9
  10struct cmd_tbl;
  11struct unit_test;
  12
  13/**
  14 * cmd_ut_category() - Run a category of unit tests
  15 *
  16 * @name:       Category name
  17 * @prefix:     Prefix of test name
  18 * @tests:      List of tests to run
  19 * @n_ents:     Number of tests in @tests
  20 * @argc:       Argument count provided. Must be >= 1. If this is 1 then all
  21 *              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)
  23 * @return 0 if OK, CMD_RET_FAILURE on failure
  24 */
  25int cmd_ut_category(const char *name, const char *prefix,
  26                    struct unit_test *tests, int n_ents,
  27                    int argc, char *const argv[]);
  28
  29int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
  30                  char *const argv[]);
  31int do_ut_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  32int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
  33                   char *const argv[]);
  34int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
  35                      char *const argv[]);
  36int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  37int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  38int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  39int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
  40int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  41int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  42int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
  43                  char *const argv[]);
  44int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
  45                  char *const argv[]);
  46int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  47int do_ut_time(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  48int do_ut_unicode(struct cmd_tbl *cmdtp, int flag, int argc,
  49                  char *const argv[]);
  50
  51#endif /* __TEST_SUITES_H__ */
  52