Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 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 | |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 8 | #include <command.h> |
| 9 | #include <test/lib.h> |
| 10 | #include <test/suites.h> |
| 11 | #include <test/ut.h> |
| 12 | |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 13 | int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 14 | { |
Simon Glass | b50211f | 2021-03-07 17:35:10 -0700 | [diff] [blame] | 15 | struct unit_test *tests = UNIT_TEST_SUITE_START(lib_test); |
| 16 | const int n_ents = UNIT_TEST_SUITE_COUNT(lib_test); |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 17 | |
Philippe Reynes | 1f99f84 | 2019-12-17 19:07:04 +0100 | [diff] [blame] | 18 | return cmd_ut_category("lib", "lib_test_", tests, n_ents, argc, argv); |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 19 | } |