2 * Copyright (c) 2013 Google, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
13 * struct unit_test_state - Entire state of test system
15 * @fail_count: Number of tests that failed
16 * @start: Store the starting mallinfo when doing leak test
17 * @priv: A pointer to some other info some suites want to track
19 struct unit_test_state {
21 struct mallinfo start;
26 * struct unit_test - Information about a unit test
29 * @func: Function to call to perform test
30 * @flags: Flags indicated pre-conditions for test
34 int (*func)(struct unit_test_state *state);
38 /* Declare a new unit test */
39 #define UNIT_TEST(_name, _flags, _suite) \
40 ll_entry_declare(struct unit_test, _name, _suite) = { \
47 #endif /* __TEST_TEST_H */