zephyr/subsys/testsuite
Chris Friedt 4108e14740 ztest: provide sys_clock_tick_set syscall
Accurate timekeeping is something that is often taken for granted.

However, reliability of timekeeping code is critical for most core
and subsystem code. Furthermore, Many higher-level timekeeping
utilities in Zephyr work off of ticks but there is no way to modify
ticks directly which would require either unnecessary delays in
test code or non-ideal compromises in test coverage.

Since timekeeping is so critical, there should be as few barriers
to testing timekeeping code as possible, while preserving
integrity of the kernel's public interface.

With this, we expose `sys_clock_tick_set()` as a system call only
when `CONFIG_ZTEST` is set, declared within the ztest framework.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2023-01-04 21:12:58 +01:00
..
arch/unit_testing cmake: kconfig: introduce dedicated unit testing board 2022-08-18 14:29:14 +02:00
boards/unit_testing/unit_testing unittest: add support for coverage 2022-11-28 16:26:02 -05:00
busy_sim devices: constify statically initialized device pointers 2022-08-19 11:51:26 +02:00
coverage testsuite: coverage: create kconfig option for gcov dump heap size 2022-11-10 08:48:06 -05:00
include/zephyr mocking: Update fff.h 2022-10-04 14:24:09 -04:00
soc/unit_testing/unit_testing cmake: kconfig: introduce dedicated unit testing board 2022-08-18 14:29:14 +02:00
ztest ztest: provide sys_clock_tick_set syscall 2023-01-04 21:12:58 +01:00
CMakeLists.txt testing: add zephyr/ prefix to testing include path 2022-06-29 06:04:32 -04:00
Kconfig testsuite: coverage: create kconfig option for gcov dump heap size 2022-11-10 08:48:06 -05:00
Kconfig.defconfig testsuite: ztress: Use XOSHIRO generator when ztress is used 2022-09-08 05:43:17 -04:00