zephyr/tests/kernel/test_timer/nanokernel/src
Kumar Gala 7dcbbc39e7 build: move from srctree to ZEPHYR_BASE for app include paths
$srctree for the application might not be set to be $ZEPHYR_BASE, use
$ZEPHYR_BASE instead to be more explicit in the build.

Change-Id: Iefa5ff59f246b584949329044f7a6531adc6ed62
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-06-30 14:36:39 +00:00
..
Makefile build: move from srctree to ZEPHYR_BASE for app include paths 2016-06-30 14:36:39 +00:00
README tests: move kernel tests to tests/ 2016-02-11 18:06:33 +00:00
timer.c tests: move kernel tests to tests/ 2016-02-11 18:06:33 +00:00

Starting a timer
 Case 1: Add to an empty timer list
 Case 2: Add to the end of the timer list (big tick value)
 Case 3: Add to the start of the timer list (small tick value)
 Case 4: Add to the middle of the timer list (medium tick value)

Stopping a timer
 No point to stop a non-existent timer
 Case 1: Stop one at the head of the list (nothing waiting on it)
 Case 2: Stop one at the end of the list (nothing waiting on it)
 Case 3: Stop one in the middle of the list (nothing waiting on it)
 Case 4: Stop the last in the list (nothing waiting on it)
 Case 5: Stop a timer that had a fiber waiting on it

Timer Expiry
 Case 1: Timer has expired
 Case 2: Timer has not expired
 Case 3: Wait for a timer to expire

Expired timers can use the sys_tick_get_32() and sys_tick_delta() routines
to check the results against the timer routines.

This test set does not yet test/verify sys_cycle_get_32()--that must still be
done.

APIs tested in this test set
============================

nano_timer_init   (implicitly done--called as part of platform init)
nano_fiber_timer_start
nano_task_timer_start
nano_fiber_timer_stop
nano_task_timer_stop
nano_fiber_timer_test(TICKS_NONE)
nano_fiber_timer_test(TICKS_UNLIMITED)
nano_task_timer_test(TICKS_NONE)
nano_task_timer_test(TICKS_UNLIMITED)

--------------------------------
nanoTimeInit (implicitly done)
sys_tick_get_32
sys_tick_delta