zephyr/tests/lib/timespec_util/testcase.yaml
Chris Friedt 13fe95b51d tests: lib: timeutil: add timespec util testsuite
Add a timespec util testsuite. This should have reasonably high enough
coverage to be useful.

I would have preferred to add this as an architecture-independent
unit test (for the unit_testing platform) under tests/unit/timeutil but
there is an inconsistency about the size of time_t on the unit_testing
and native_sim/native platforms. On every other platform supported by
Zephyr, time_t is 64-bits. However, on those platforms, time_t is only
32-bits.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-05-22 23:57:17 +02:00

37 lines
1011 B
YAML

# FIXME: this should be under tests/unit/timeutil but will not work due to #90029
common:
filter: not CONFIG_NATIVE_LIBC
tags:
- timeutils
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
integration_platforms:
- native_sim/native/64
tests:
libraries.timespec_utils: {}
libraries.timespec_utils.speed:
extra_configs:
- CONFIG_SPEED_OPTIMIZATIONS=y
libraries.timespec_utils.armclang_std_libc:
toolchain_allow: armclang
extra_configs:
- CONFIG_ARMCLANG_STD_LIBC=y
libraries.timespec_utils.arcmwdtlib:
toolchain_allow: arcmwdt
extra_configs:
- CONFIG_ARCMWDT_LIBC=y
libraries.timespec_utils.minimal:
extra_configs:
- CONFIG_MINIMAL_LIBC=y
libraries.timespec_utils.newlib:
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
- CONFIG_NEWLIB_LIBC=y
libraries.timespec_utils.picolibc:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
extra_configs:
- CONFIG_PICOLIBC=y