1 // SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
10 #include <linux/compiler.h>
12 #define selftest(name, func) int func(void);
13 #include "selftests.h"
17 int (*func
)(void *data
);
21 int __subtests(const char *caller
,
22 const struct subtest
*st
,
25 #define subtests(T, data) \
26 __subtests(__func__, T, ARRAY_SIZE(T), data)
28 #define SUBTEST(x) { x, #x }
30 #endif /* __SELFTEST_H__ */