zephyr/tests/kernel/timer/timer_behavior
Nicolas Pitre a1d21ca69b tests: timer_behavior: don't fail the test with timer wrap-arounds
If the timer driver only implements sys_clock_cycle_get_32() (meaning
CONFIG_TIMER_HAS_64BIT_CYCLE_COUNTER=n) and the hardware clock is high
enough then the reported cycle count may wrap an uint32_t during the
test. This makes validating the total test duration pointless as it
cannot be measured. Just print a warning instead of failing the test
in that case.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2023-04-18 16:46:13 -04:00
..
src tests: timer_behavior: don't fail the test with timer wrap-arounds 2023-04-18 16:46:13 -04:00
CMakeLists.txt
Kconfig tests: kernel: timer_behavior: Decrease tick rate for nRF 2023-04-05 08:30:15 +02:00
prj.conf tests: kernel: timer_behavior: improve timer_tick_train output 2023-02-19 20:34:37 -05:00
README
testcase.yaml yamllint: fix all yamllint line-length errors 2023-01-04 01:16:45 +09:00

# Test a timer implementations variance and long term drift

Records and calculates statistical values against a timer validating that.

1. Timer variance and standard deviation is below defined acceptable values.
2. Periodic timers do not drift in either direction from expected total time.

Timers are meant to be precise and accurate. This test validates an implementation is both.