suites.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 cmd_tbl;
  9. struct unit_test;
  10. /**
  11. * cmd_ut_category() - Run a category of unit tests
  12. *
  13. * @name: Category name
  14. * @prefix: Prefix of test name
  15. * @tests: List of tests to run
  16. * @n_ents: Number of tests in @tests
  17. * @argc: Argument count provided. Must be >= 1. If this is 1 then all
  18. * tests are run, otherwise only the one named @argv[1] is run.
  19. * @argv: Arguments: argv[1] is the test to run (if @argc >= 2)
  20. * @return 0 if OK, CMD_RET_FAILURE on failure
  21. */
  22. int cmd_ut_category(const char *name, const char *prefix,
  23. struct unit_test *tests, int n_ents,
  24. int argc, char *const argv[]);
  25. int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
  26. char *const argv[]);
  27. int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
  28. char *const argv[]);
  29. int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  30. int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  31. int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  32. int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
  33. int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  34. int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  35. int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
  36. char *const argv[]);
  37. int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  38. int do_ut_time(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
  39. int do_ut_unicode(struct cmd_tbl *cmdtp, int flag, int argc,
  40. char *const argv[]);
  41. #endif /* __TEST_SUITES_H__ */