suites.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * (C) Copyright 2015
  4. * Joe Hershberger, National Instruments, joe.hershberger@ni.com
  5. */
  6. #ifndef __TEST_SUITES_H__
  7. #define __TEST_SUITES_H__
  8. struct unit_test;
  9. /**
  10. * cmd_ut_category() - Run a category of unit tests
  11. *
  12. * @name: Category name
  13. * @prefix: Prefix of test name
  14. * @tests: List of tests to run
  15. * @n_ents: Number of tests in @tests
  16. * @argc: Argument count provided. Must be >= 1. If this is 1 then all
  17. * tests are run, otherwise only the one named @argv[1] is run.
  18. * @argv: Arguments: argv[1] is the test to run (if @argc >= 2)
  19. * @return 0 if OK, CMD_RET_FAILURE on failure
  20. */
  21. int cmd_ut_category(const char *name, const char *prefix,
  22. struct unit_test *tests, int n_ents,
  23. int argc, char * const argv[]);
  24. int do_ut_bloblist(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
  25. int do_ut_compression(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
  26. int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  27. int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  28. int do_ut_lib(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  29. int do_ut_log(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  30. int do_ut_optee(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  31. int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  32. int do_ut_str(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
  33. int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  34. int do_ut_unicode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  35. #endif /* __TEST_SUITES_H__ */