Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Zephyr testing framework _test. More...
Go to the source code of this file.
Data Structures | |
struct | unit_test |
Macros | |
#define | ztest_unit_test_setup_teardown(fn, setup, teardown) |
Define a test with setup and teardown functions. More... | |
#define | ztest_user_unit_test_setup_teardown(fn, setup, teardown) |
Define a user mode test with setup and teardown functions. More... | |
#define | ztest_unit_test(fn) ztest_unit_test_setup_teardown(fn, unit_test_noop, unit_test_noop) |
Define a test function. More... | |
#define | ztest_user_unit_test(fn) ztest_user_unit_test_setup_teardown(fn, unit_test_noop, unit_test_noop) |
Define a test function that should run as a user thread. More... | |
#define | ztest_1cpu_unit_test(fn) ztest_unit_test_setup_teardown(fn, z_test_1cpu_start, z_test_1cpu_stop) |
Define a SMP-unsafe test function. More... | |
#define | ztest_1cpu_user_unit_test(fn) ztest_user_unit_test_setup_teardown(fn, z_test_1cpu_start, z_test_1cpu_stop) |
Define a SMP-unsafe test function that should run as a user thread. More... | |
#define | ZTEST_DMEM K_APP_DMEM(ztest_mem_partition) |
#define | ZTEST_BMEM K_APP_BMEM(ztest_mem_partition) |
#define | ZTEST_SECTION K_APP_DMEM_SECTION(ztest_mem_partition) |
#define | ztest_test_suite(suite, ...) |
Define a test suite. More... | |
#define | ztest_run_test_suite(suite) z_ztest_run_test_suite(#suite, _##suite) |
Run the specified test suite. More... | |
Functions | |
void | ztest_test_fail (void) |
Fail the currently running test. More... | |
void | ztest_test_pass (void) |
Pass the currently running test. More... | |
void | ztest_test_skip (void) |
Skip the current test. More... | |
static void | unit_test_noop (void) |
Do nothing, successfully. More... | |
Variables | |
struct k_mem_partition | ztest_mem_partition |
Zephyr testing framework _test.