Heinrich Schuchardt | f433d50 | 2020-02-26 21:48:18 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de> |
| 4 | * |
| 5 | * Tests for logging functions |
| 6 | */ |
| 7 | |
| 8 | #ifndef __TEST_LOG_H__ |
| 9 | #define __TEST_LOG_H__ |
| 10 | |
| 11 | #include <test/test.h> |
| 12 | |
Sean Anderson | c182182 | 2020-10-27 19:55:27 -0400 | [diff] [blame] | 13 | #define LOGF_TEST (BIT(LOGF_FUNC) | BIT(LOGF_MSG)) |
| 14 | |
Heinrich Schuchardt | f433d50 | 2020-02-26 21:48:18 +0100 | [diff] [blame] | 15 | /* Declare a new logging test */ |
Simon Glass | 0ccbde5 | 2024-08-22 07:58:01 -0600 | [diff] [blame] | 16 | #define LOG_TEST(_name) UNIT_TEST(_name, UTF_CONSOLE, log_test) |
| 17 | #define LOG_TEST_FLAGS(_name, _flags) \ |
| 18 | UNIT_TEST(_name, _flags | UTF_CONSOLE, log_test) |
Heinrich Schuchardt | f433d50 | 2020-02-26 21:48:18 +0100 | [diff] [blame] | 19 | |
| 20 | #endif /* __TEST_LOG_H__ */ |