![]() |
ChibiOS/RT Architecture - Reference Manual - Guides |
Tests support header. More...
Go to the source code of this file.
Data Structures | |
| struct | testcase |
| Structure representing a test case. More... | |
Defines | |
| #define | DELAY_BETWEEN_TESTS 200 |
| Delay inserted between test cases. | |
| #define | TEST_NO_BENCHMARKS FALSE |
If TRUE then benchmarks are not included. | |
| #define | test_fail(point) |
| Test failure enforcement. | |
| #define | test_assert(point, condition, msg) |
| Test assertion. | |
| #define | test_assert_sequence(point, expected) |
| Test sequence assertion. | |
| #define | test_assert_time_window(point, start, end) |
| Test time window assertion. | |
Functions | |
| msg_t | TestThread (void *p) |
| Test execution thread function. | |
| void | test_printn (uint32_t n) |
| Prints a decimal unsigned number. | |
| void | test_print (char *msgp) |
| Prints a line without final end-of-line. | |
| void | test_println (char *msgp) |
| Prints a line. | |
| void | test_emit_token (char token) |
| Emits a token into the tokens buffer. | |
| void | test_terminate_threads (void) |
| Pends a termination request in all the test-spawned threads. | |
| void | test_wait_threads (void) |
| Waits for the completion of all the test-spawned threads. | |
| systime_t | test_wait_tick (void) |
| Delays execution until next system time tick. | |
| void | test_start_timer (unsigned ms) |
| Starts the test timer. | |
| void | test_cpu_pulse (unsigned duration) |
| CPU pulse. | |
Tests support header.
Definition in file test.h.
1.7.1