test-main.c 545 B

123456789101112131415161718192021
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
  4. *
  5. * Logging function tests.
  6. */
  7. #include <common.h>
  8. #include <console.h>
  9. #include <log.h>
  10. #include <test/log.h>
  11. #include <test/suites.h>
  12. int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[])
  13. {
  14. struct unit_test *tests = ll_entry_start(struct unit_test, log_test);
  15. const int n_ents = ll_entry_count(struct unit_test, log_test);
  16. return cmd_ut_category("log", "log_test_",
  17. tests, n_ents, argc, argv);
  18. }