tests.h (4935e2cd1b980cad8f3c8b78302740f6543d8dc9) | tests.h (848ddf5999d224050f6cde8c165630fd7671085f) |
---|---|
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 { \ --- 30 unchanged lines hidden (view full) --- 39}; 40 41struct test_suite { 42 const char *desc; 43 struct { 44 bool skip_if_fail; 45 } subtest; 46 struct test_case *test_cases; | 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 { \ --- 30 unchanged lines hidden (view full) --- 39}; 40 41struct test_suite { 42 const char *desc; 43 struct { 44 bool skip_if_fail; 45 } subtest; 46 struct test_case *test_cases; |
47 bool (*is_supported)(void); | |
48 void *priv; 49}; 50 51#define DECLARE_SUITE(name) \ 52 extern struct test_suite suite__##name; 53 54#define TEST_CASE(description, _name) \ 55 { \ --- 131 unchanged lines hidden --- | 47 void *priv; 48}; 49 50#define DECLARE_SUITE(name) \ 51 extern struct test_suite suite__##name; 52 53#define TEST_CASE(description, _name) \ 54 { \ --- 131 unchanged lines hidden --- |