|
Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
Functions | |
| void | test_clock_uptime (void) |
| Test clock uptime APIs functionality. | |
| void | test_clock_cycle_32 (void) |
| Test 32-bit clock cycle functionality. | |
| void | test_clock_cycle_64 (void) |
| Test 64-bit clock cycle functionality. | |
| static void | duration_expire (struct k_timer *timer) |
| static void | stop_expire (struct k_timer *timer) |
| static void | init_data_count (void) |
| void | test_ms_time_duration (void) |
| Test millisecond time duration. | |
|
static |
|
static |
|
static |
| void test_clock_cycle_32 | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/common/src/clock.c>
Test 32-bit clock cycle functionality.
Test Objective:
Testing techniques
Prerequisite Condition:
Input Specifications:
Expected Test Result:
Pass/Fail criteria:
Test Procedure:
Assumptions and Constraints
TESTPOINT: cycle elapse
TESTPOINT: cycle/uptime cross check
| void test_clock_cycle_64 | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/common/src/clock.c>
Test 64-bit clock cycle functionality.
| void test_clock_uptime | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/common/src/clock.c>
Test clock uptime APIs functionality.
TESTPOINT: uptime elapse
TESTPOINT: uptime elapse lower 32-bit
TESTPOINT: uptime straddled ms boundary
TESTPOINT: uptime delta
| void test_ms_time_duration | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/common/src/clock.c>
Test millisecond time duration.
initialize a timer, then providing time duration in millisecond, and check the duration time whether correct.
TESTPOINT: waiting time less than duration and check the count
TESTPOINT: proving duration in millisecond
TESTPOINT: waiting time more than duration and check the count
cleanup environment