Implemented the following: - `asctime_r()` - `asctime()` - `localtime()` - `localtime_r()` - `ctime()` - `ctime_r()` Specifically: - the implementation of `localtime()` & `localtime_r()` simply wraps around the gmtime() & gmtime_r() functions, the results are always expressed as UTC. - `ctime()` is equivalent to `asctime(localtime(clock))`, it inherits the limitation of `localtime()` as well, which only supports UTC results currently. Added tests for these newly implemented functions. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
common:
|
|
tags:
|
|
- clib
|
|
ignore_faults: true
|
|
integration_platforms:
|
|
- mps2/an385
|
|
tests:
|
|
libraries.libc.common: {}
|
|
libraries.libc.common.minimal:
|
|
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
|
|
tags: minimal_libc
|
|
extra_configs:
|
|
- CONFIG_MINIMAL_LIBC=y
|
|
- CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS=y
|
|
- CONFIG_MINIMAL_LIBC_RAND=y
|
|
- CONFIG_COMMON_LIBC_ASCTIME_R=y
|
|
- CONFIG_COMMON_LIBC_CTIME_R=y
|
|
libraries.libc.common.newlib:
|
|
filter: CONFIG_NEWLIB_LIBC_SUPPORTED
|
|
min_ram: 32
|
|
tags: newlib
|
|
extra_configs:
|
|
- CONFIG_NEWLIB_LIBC=y
|
|
libraries.libc.common.newlib_nano:
|
|
filter: CONFIG_NEWLIB_LIBC_SUPPORTED and CONFIG_HAS_NEWLIB_LIBC_NANO
|
|
tags: newlib
|
|
extra_configs:
|
|
- CONFIG_NEWLIB_LIBC=y
|
|
- CONFIG_NEWLIB_LIBC_NANO=y
|
|
libraries.libc.common.picolibc:
|
|
filter: CONFIG_PICOLIBC_SUPPORTED
|
|
tags: picolibc
|
|
extra_configs:
|
|
- CONFIG_PICOLIBC=y
|
|
libraries.libc.common.picolibc.module:
|
|
filter: CONFIG_ZEPHYR_PICOLIBC_MODULE
|
|
tags: picolibc
|
|
extra_configs:
|
|
- CONFIG_PICOLIBC=y
|
|
- CONFIG_PICOLIBC_USE_MODULE=y
|
|
libraries.libc.common.picolibc.notls:
|
|
filter: CONFIG_ZEPHYR_PICOLIBC_MODULE
|
|
tags: picolibc
|
|
extra_configs:
|
|
- CONFIG_PICOLIBC=y
|
|
- CONFIG_PICOLIBC_USE_MODULE=y
|
|
- CONFIG_THREAD_LOCAL_STORAGE=n
|