|
iPXE
|
Self-test infrastructure. More...
#include <ipxe/tables.h>Go to the source code of this file.
Data Structures | |
| struct | self_test |
| A self-test set. More... | |
Macros | |
| #define | SELF_TESTS __table ( struct self_test, "self_tests" ) |
| Self-test table. More... | |
| #define | __self_test __table_entry ( SELF_TESTS, 01 ) |
| Declare a self-test. More... | |
| #define | okx(success, file, line) test_ok ( success, file, line, #success ) |
| Report test result. More... | |
| #define | ok(success) okx ( success, __FILE__, __LINE__ ) |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | test_ok (int success, const char *file, unsigned int line, const char *test) |
| Report test result. More... | |
Self-test infrastructure.
Definition in file test.h.
| struct self_test iobuf_test __self_test __table_entry ( SELF_TESTS, 01 ) |
| #define okx | ( | success, | |
| file, | |||
| line | |||
| ) | test_ok ( success, file, line, #success ) |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void test_ok | ( | int | success, |
| const char * | file, | ||
| unsigned int | line, | ||
| const char * | test | ||
| ) |
Report test result.
| success | Test succeeded |
| file | Test code file |
| line | Test code line |
| test | Test code |
Definition at line 56 of file test.c.
References assert(), current_tests, self_test::failures, self_test::name, NULL, printf(), test, and self_test::total.
1.8.15