zephyr/tests/kernel/timer/timer_behavior
Andrzej Głąbek a30a65215d tests: kernel: timer_behavior: Fix building on targets with small SRAM
In the default configuration of the test, with 10000 timer samples,
the `periodic_data` array is too big to fit in SRAM on many targets.
Use lower counts of samples for those, depending on their SRAM size,
leaving at least 8 kB for other variables, buffers, stacks etc.
Exclude the test for targets with less than 16 kB.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-09-29 13:36:00 -05:00
..
src test: timer: behavior: Enhancement for running this test 2022-09-21 18:43:11 +00:00
CMakeLists.txt
Kconfig tests: kernel: timer_behavior: Fix building on targets with small SRAM 2022-09-29 13:36:00 -05:00
prj.conf
README test: timer_behavior: Rename readme.md to readme 2022-09-06 17:54:52 -04:00
testcase.yaml tests: kernel: timer_behavior: Fix building on targets with small SRAM 2022-09-29 13:36:00 -05: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.