|
rusEFI
The most advanced open source ECU
|
Tests support header.
Definition in file test.h.
Data Structures | |
| struct | testcase |
| Structure representing a test case. More... | |
| union | test_buffers |
Functions | |
| msg_t | TestThread (void *p) |
| Test execution thread function. | |
| void | test_printn (uint32_t n) |
| Prints a decimal unsigned number. | |
| void | test_print (const char *msgp) |
| Prints a line without final end-of-line. | |
| void | test_println (const char *msgp) |
| Prints a line. | |
| void | test_emit_token (char token) |
| Emits a token into the tokens buffer. | |
| bool | _test_fail (unsigned point) |
| bool | _test_assert (unsigned point, bool condition) |
| bool | _test_assert_sequence (unsigned point, char *expected) |
| bool | _test_assert_time_window (unsigned point, systime_t start, systime_t end) |
| void | test_terminate_threads (void) |
| Sets 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. | |
| void | ChkIntSources (void) |
Variables | |
| Thread * | threads [MAX_THREADS] |
| union test_buffers | test |
| void *ROMCONST | wa [] |
| bool | test_timer_done |
Set to TRUE when the test timer reaches its deadline. | |