|
rusEFI
The most advanced open source ECU
|
Data Structures | |
| struct | testcase |
| Structure representing a test case. More... | |
| union | test_buffers |
Functions | |
| 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. | |
| static void | clear_tokens (void) |
| static void | print_tokens (void) |
| 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. | |
| void | test_cpu_pulse (unsigned duration) |
| CPU pulse. | |
| systime_t | test_wait_tick (void) |
| Delays execution until next system time tick. | |
| static void | tmr (void *p) |
| void | test_start_timer (unsigned ms) |
| Starts the test timer. | |
| static void | execute_test (const struct testcase *tcp) |
| static void | print_line (void) |
| msg_t | TestThread (void *p) |
| Test execution thread function. | |
| void | ChkIntSources (void) |
Variables | |
| static ROMCONST struct testcase *ROMCONST * | patterns [] |
| static bool | local_fail |
| static bool | global_fail |
| static unsigned | failpoint |
| static char | tokens_buffer [MAX_TOKENS] |
| static char * | tokp |
| union test_buffers | test |
| thread_t * | threads [MAX_THREADS] |
| void *ROMCONST | wa [5] |
| static BaseSequentialStream * | chp |
| bool | test_timer_done |
Set to TRUE when the test timer reaches its deadline. | |
| static VirtualTimer | vt |
| 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. | |
Definition at line 147 of file test.c.
Referenced by _test_assert_time_window().


Definition at line 154 of file test.c.

| bool _test_fail | ( | unsigned | point | ) |
Definition at line 139 of file test.c.
Referenced by _test_assert(), and _test_assert_sequence().

| void ChkIntSources | ( | void | ) |
Referenced by __attribute__(), bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), bmk9_execute(), test_cpu_pulse(), and thread8().

|
static |
Definition at line 112 of file test.c.
Referenced by _test_assert_sequence(), and execute_test().

|
static |
Definition at line 264 of file test.c.
Referenced by TestThread().


|
static |
Definition at line 282 of file test.c.
Referenced by TestThread().

|
static |
Definition at line 117 of file test.c.
Referenced by TestThread().

| void test_cpu_pulse | ( | unsigned | duration | ) |
CPU pulse.
| [in] | duration | CPU pulse duration in milliseconds |
Definition at line 206 of file test.c.

| void test_emit_token | ( | char | token | ) |
| void test_print | ( | const char * | msgp | ) |
Prints a line without final end-of-line.
| [in] | msgp | the message |
Definition at line 92 of file test.c.
Referenced by bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk13_execute(), bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), bmk8_execute(), bmk9_execute(), test_println(), and TestThread().

| void test_println | ( | const char * | msgp | ) |
Prints a line.
| [in] | msgp | the message |
Definition at line 103 of file test.c.
Referenced by bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk13_execute(), bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), bmk8_execute(), bmk9_execute(), and TestThread().


| void test_printn | ( | uint32_t | n | ) |
Prints a decimal unsigned number.
| [in] | n | the number to be printed |
Definition at line 73 of file test.c.
Referenced by bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk13_execute(), bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), bmk8_execute(), bmk9_execute(), and TestThread().

| void test_start_timer | ( | unsigned | ms | ) |
Starts the test timer.
| [in] | ms | time in milliseconds |
Definition at line 254 of file test.c.
Referenced by __attribute__(), bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), and bmk9_execute().


| void test_terminate_threads | ( | void | ) |
Sets a termination request in all the test-spawned threads.
Definition at line 178 of file test.c.
Referenced by bmk7_execute(), and bmk8_execute().

| void test_wait_threads | ( | void | ) |
Waits for the completion of all the test-spawned threads.
Definition at line 189 of file test.c.
Referenced by bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk7_execute(), bmk8_execute(), and execute_test().

| systime_t test_wait_tick | ( | void | ) |
Delays execution until next system time tick.
Definition at line 227 of file test.c.
Referenced by __attribute__(), bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), bmk8_execute(), and bmk9_execute().

| msg_t TestThread | ( | void * | p | ) |
Test execution thread function.
| [in] | p | pointer to a BaseChannel object for test output |
Definition at line 296 of file test.c.
Referenced by runChibioTest().


|
static |
Definition at line 243 of file test.c.
Referenced by test_start_timer().

|
static |
Definition at line 66 of file test.c.
Referenced by print_line(), print_tokens(), test_print(), test_println(), test_printn(), and TestThread().
|
static |
Definition at line 42 of file test.c.
Referenced by _test_fail(), and TestThread().
|
static |
Definition at line 41 of file test.c.
Referenced by _test_fail(), and TestThread().
|
static |
Definition at line 41 of file test.c.
Referenced by _test_fail(), execute_test(), and TestThread().
|
static |
Definition at line 36 of file test.c.
Referenced by TestThread().
| union test_buffers test |
Definition at line 50 of file test.c.
Referenced by isBigEndian(), isPhaseInRange(), and Hysteresis::test().
|
extern |
Definition at line 50 of file test.c.
Referenced by isBigEndian(), isPhaseInRange(), and Hysteresis::test().
| bool test_timer_done |
Set to TRUE when the test timer reaches its deadline.
Definition at line 240 of file test.c.
Referenced by __attribute__(), bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), bmk9_execute(), test_start_timer(), and tmr().
|
extern |
Set to TRUE when the test timer reaches its deadline.
Definition at line 240 of file test.c.
Referenced by __attribute__(), bmk10_execute(), bmk11_execute(), bmk12_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), bmk9_execute(), test_start_timer(), and tmr().
| thread_t* threads[MAX_THREADS] |
Definition at line 55 of file test.c.
Referenced by bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk7_execute(), bmk8_execute(), execute_test(), test_terminate_threads(), and test_wait_threads().
|
extern |
Definition at line 55 of file test.c.
Referenced by bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk7_execute(), bmk8_execute(), execute_test(), test_terminate_threads(), and test_wait_threads().
|
static |
Definition at line 43 of file test.c.
Referenced by _test_assert_sequence(), clear_tokens(), and print_tokens().
|
static |
Definition at line 44 of file test.c.
Referenced by _test_assert_sequence(), clear_tokens(), print_tokens(), and test_emit_token().
|
static |
Definition at line 242 of file test.c.
Referenced by test_start_timer().
| void* ROMCONST wa[5] |
Definition at line 60 of file test.c.
Referenced by bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), and bmk8_execute().
|
extern |
Definition at line 60 of file test.c.
Referenced by bmk1_execute(), bmk2_execute(), bmk3_execute(), bmk4_execute(), bmk5_execute(), bmk6_execute(), bmk7_execute(), and bmk8_execute().