tests: c lib: define tests in yaml file

Define all testcases in the yaml for consistency and issue parsing
them during setup.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif
2022-04-01 17:42:07 -04:00
parent d61eb2bd47
commit 9c15407ccc
+39 -9
View File
@@ -1,22 +1,52 @@
tests:
libraries.libc.minimal.mem_alloc:
extra_args: CONF_FILE=prj.conf
arch_exclude: posix
extra_args: CONF_FILE=prj.conf
platform_exclude: twr_ke18f native_posix_64 nrf52_bsim
tags: clib minimal_libc userspace
libraries.libc.newlib.mem_alloc:
min_ram: 16
extra_args: CONF_FILE=prj_newlib.conf
testcases:
- realloc
- free
- malloc_align
- memalloc_all
- calloc
- malloc
- memalloc_max
- reallocarray
libraries.libc.minimal.mem_alloc_negative_testing:
arch_exclude: posix
extra_args: CONF_FILE=prj_negative_testing.conf
platform_exclude: twr_ke18f native_posix_64 nrf52_bsim
tags: clib minimal_libc userspace
testcases:
- no_mem_realloc
- no_mem_malloc
libraries.libc.newlib.mem_alloc:
arch_exclude: posix
extra_args: CONF_FILE=prj_newlib.conf
filter: TOOLCHAIN_HAS_NEWLIB == 1
min_ram: 16
platform_exclude: twr_ke18f native_posix_64 nrf52_bsim
tags: clib newlib userspace
testcases:
- realloc
- free
- malloc_align
- memalloc_all
- calloc
- malloc
- memalloc_max
- reallocarray
libraries.libc.newlib_nano.mem_alloc:
extra_args: CONF_FILE=prj_newlibnano.conf
filter: CONFIG_HAS_NEWLIB_LIBC_NANO
tags: clib newlib userspace
libraries.libc.minimal.mem_alloc_negative_testing:
extra_args: CONF_FILE=prj_negative_testing.conf
arch_exclude: posix
platform_exclude: twr_ke18f native_posix_64 nrf52_bsim
tags: clib minimal_libc userspace
testcases:
- realloc
- free
- malloc_align
- memalloc_all
- calloc
- malloc
- memalloc_max
- reallocarray