cmd_ut_lib.c 545 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2019 Heinrich Schuchardt <xypron.glpk@gmx.de>
  4. *
  5. * Unit tests for library functions
  6. */
  7. #include <common.h>
  8. #include <command.h>
  9. #include <test/lib.h>
  10. #include <test/suites.h>
  11. #include <test/ut.h>
  12. int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
  13. {
  14. struct unit_test *tests = ll_entry_start(struct unit_test, lib_test);
  15. const int n_ents = ll_entry_count(struct unit_test, lib_test);
  16. return cmd_ut_category("lib", "lib_test_", tests, n_ents, argc, argv);
  17. }