|
Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Macros | |
| #define | PRINT_DATA(fmt, ...) |
| #define | TC_STR_HELPER(x) |
| #define | TC_STR(x) |
| #define | TC_PRINT_RUNID do {} while (false) |
| Report a Run ID. | |
| #define | PRINT_LINE |
| #define | TASK_STACK_SIZE (1024 * 2) |
| #define | FMT_ERROR "%s - %s@%d. " |
| #define | TC_PASS 0 |
| #define | TC_FAIL 1 |
| #define | TC_SKIP 2 |
| #define | TC_FLAKY 3 |
| #define | TC_PASS_STR "PASS" |
| #define | TC_FAIL_STR "FAIL" |
| #define | TC_SKIP_STR "SKIP" |
| #define | TC_FLAKY_STR "FLAKY" |
| #define | TC_ERROR(fmt, ...) |
| #define | TC_PRINT(fmt, ...) |
| #define | TC_SUMMARY_PRINT(fmt, ...) |
| #define | TC_START_PRINT(name) |
| #define | TC_START(name) |
| #define | TC_END(result, fmt, ...) |
| #define | TC_END_PRINT(result, fmt, ...) |
| #define | TC_END_RESULT(result) |
| #define | TC_END_RESULT_CUSTOM(result, func) |
| #define | TC_SUITE_PRINT(fmt, ...) |
| #define | TC_SUITE_START(name) |
| #define | TC_SUITE_END(name, result) |
| #define | TC_END_POST(result) |
| #define | TC_END_REPORT(result) |
| #define | TC_CMD_DEFINE(name) |
| #define | TC_CMD_ITEM(name) |
Functions | |
| static const char * | TC_RESULT_TO_STR (int result) |
| static void | get_start_time_cyc (void) |
| static void | get_test_duration_ms (void) |
| static void | print_nothing (const char *fmt,...) |
Variables | |
| static uint32_t | tc_start_time |
| static uint32_t | tc_spend_time |
| #define FMT_ERROR "%s - %s@%d. " |
| #define PRINT_DATA | ( | fmt, | |
| ... ) |
| #define PRINT_LINE |
| #define TASK_STACK_SIZE (1024 * 2) |
| #define TC_CMD_DEFINE | ( | name | ) |
| #define TC_CMD_ITEM | ( | name | ) |
| #define TC_END | ( | result, | |
| fmt, | |||
| ... ) |
| #define TC_END_POST | ( | result | ) |
| #define TC_END_PRINT | ( | result, | |
| fmt, | |||
| ... ) |
| #define TC_END_REPORT | ( | result | ) |
| #define TC_ERROR | ( | fmt, | |
| ... ) |
| #define TC_FAIL 1 |
| #define TC_FAIL_STR "FAIL" |
| #define TC_FLAKY 3 |
| #define TC_FLAKY_STR "FLAKY" |
| #define TC_PASS 0 |
| #define TC_PASS_STR "PASS" |
| #define TC_PRINT | ( | fmt, | |
| ... ) |
| #define TC_PRINT_RUNID do {} while (false) |
Report a Run ID.
When the CPP symbol TC_RUNID is defined (for example, from the compile environment), print the defined string RunID: <TC_RUNID> when called (TC_END_REPORT() will also call it).
This is used mainly when automating the execution and running of multiple test cases, to verify that the expected image is being executed (as sometimes the targets fail to flash or reset properly).
TC_RUNID is any string, that will be converted to a string literal.
| #define TC_SKIP 2 |
| #define TC_SKIP_STR "SKIP" |
| #define TC_START | ( | name | ) |
| #define TC_START_PRINT | ( | name | ) |
| #define TC_STR | ( | x | ) |
| #define TC_STR_HELPER | ( | x | ) |
| #define TC_SUITE_END | ( | name, | |
| result ) |
| #define TC_SUITE_PRINT | ( | fmt, | |
| ... ) |
| #define TC_SUITE_START | ( | name | ) |
| #define TC_SUMMARY_PRINT | ( | fmt, | |
| ... ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |