zephyr/tests/kernel/timer/timer_behavior
Chen Peng1 02f5e14b65 test: timer: behavior: Enhancement for running this test
Zephyr timer is based on system ticks, there usually exists some time drift
due to round up/down errors between cycles, ticks and time delay, we
need to add those expected time drift into the bound calculation for
running this test.
Add a new config TIMER_TEST_PERIOD_MAX_DRIFT_PERCENT for users to set
expected maximum drift percentage for the timer period.

Signed-off-by: Chen Peng1 <peng1.chen@intel.com>
2022-09-21 18:43:11 +00:00
..
src test: timer: behavior: Enhancement for running this test 2022-09-21 18:43:11 +00:00
CMakeLists.txt kernel: Timer behavioral testing 2022-08-24 13:59:24 -04:00
Kconfig test: timer: behavior: Enhancement for running this test 2022-09-21 18:43:11 +00:00
README test: timer_behavior: Rename readme.md to readme 2022-09-06 17:54:52 -04:00
prj.conf kernel: Timer behavioral testing 2022-08-24 13:59:24 -04:00
testcase.yaml test: timer: Disable nsim_em 2022-09-02 11:04:23 +00:00

README

# 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.