// SPDX-License-Identifier: MIT12/*3* Copyright © 2019 Intel Corporation4*/56#ifndef __SELFTEST_H__7#define __SELFTEST_H__89#include <linux/compiler.h>1011#define selftest(name, func) int func(void);12#include "selftests.h"13#undef selftest1415struct subtest {16int (*func)(void *data);17const char *name;18};1920int __subtests(const char *caller,21const struct subtest *st,22int count,23void *data);24#define subtests(T, data) \25__subtests(__func__, T, ARRAY_SIZE(T), data)2627#define SUBTEST(x) { x, #x }2829#endif /* __SELFTEST_H__ */303132