|
PatchworkOS
69292a3
A non-POSIX operating system.
|
Kernel Test Framework. More...
Kernel Test Framework.
Data Structures | |
| struct | test_t |
| Structure representing a test case. More... | |
Macros | |
| #define | TEST_ALL() |
Run all registered tests in the ._tests section. | |
| #define | TEST_DEFINE(_name) |
Define a test function to be run by TEST_ALL(). | |
| #define | TEST_ASSERT(cond) |
| Assert a condition in a test. | |
Typedefs | |
| typedef uint64_t(* | test_func_t) (void) |
| Type of a test function. | |
| #define TEST_ALL | ( | ) |
Run all registered tests in the ._tests section.
| #define TEST_DEFINE | ( | _name | ) |
Define a test function to be run by TEST_ALL().
This will register the test within the current module or if used in the kernel, the kernel itself.
Any module that wants to use the testing framework must call TEST_ALL() on its own.
| name | The name of the test function. |
| #define TEST_ASSERT | ( | cond | ) |