tests.h (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) | tests.h (f215054d749b17c56e014fdca2fcc592dac4529c) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef TESTS_H 3#define TESTS_H 4 5#include <stdbool.h> 6 7#define TEST_ASSERT_VAL(text, cond) \ 8do { \ --- 166 unchanged lines hidden (view full) --- 175int test__arch_unwind_sample(struct perf_sample *sample, 176 struct thread *thread); 177#endif 178 179#if defined(__arm__) 180DECLARE_SUITE(vectors_page); 181#endif 182 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef TESTS_H 3#define TESTS_H 4 5#include <stdbool.h> 6 7#define TEST_ASSERT_VAL(text, cond) \ 8do { \ --- 166 unchanged lines hidden (view full) --- 175int test__arch_unwind_sample(struct perf_sample *sample, 176 struct thread *thread); 177#endif 178 179#if defined(__arm__) 180DECLARE_SUITE(vectors_page); 181#endif 182 |
183/* 184 * Define test workloads to be used in test suites. 185 */ 186typedef int (*workload_fnptr)(int argc, const char **argv); 187 188struct test_workload { 189 const char *name; 190 workload_fnptr func; 191}; 192 193#define DECLARE_WORKLOAD(work) \ 194 extern struct test_workload workload__##work 195 196#define DEFINE_WORKLOAD(work) \ 197struct test_workload workload__##work = { \ 198 .name = #work, \ 199 .func = work, \ 200} 201 202/* The list of test workloads */ 203DECLARE_WORKLOAD(noploop); 204 |
|
183#endif /* TESTS_H */ | 205#endif /* TESTS_H */ |