Skip to content

Commit

Permalink
tests: posix: one tier0 platform per arch for integration tests
Browse files Browse the repository at this point in the history
Add one tier0 platform per supported architecture.

Signed-off-by: Chris Friedt <[email protected]>
  • Loading branch information
Chris Friedt authored and cfriedt committed Aug 9, 2024
1 parent d28080e commit 2aa31a3
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 109 deletions.
17 changes: 9 additions & 8 deletions tests/lib/c_lib/thrd/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
common:
tags:
- clib c11 threads
- clib
- c11
- threads
# For now, the implementation of C11 threads uses POSIX under the hood.
- posix
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
filter: not CONFIG_NATIVE_APPLICATION
integration_platforms:
- qemu_x86
platform_exclude:
- native_posix
- native_posix/native/64
tests:
libraries.libc.c11_threads.minimal:
tags: minimal_libc
Expand Down Expand Up @@ -44,8 +47,6 @@ tests:
- CONFIG_NEWLIB_LIBC=y
libraries.libc.c11_threads.newlib_nano:
filter: CONFIG_NEWLIB_LIBC_SUPPORTED and CONFIG_HAS_NEWLIB_LIBC_NANO
arch_exclude:
- posix
tags: newlib
extra_configs:
- CONFIG_NEWLIB_LIBC=y
Expand Down
58 changes: 13 additions & 45 deletions tests/posix/common/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
common:
filter: not CONFIG_NATIVE_LIBC
platform_exclude:
- native_posix
- native_posix/native/64
tags: posix
min_ram: 64
timeout: 240
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
platform_exclude:
- native_posix
- native_posix/native/64
# consistently overflows flash
- qemu_nios2
filter: not CONFIG_NATIVE_LIBC
tests:
portability.posix.common:
platform_exclude:
- nsim/nsim_sem/mpu_stack_guard
- intel_ehl_crb
portability.posix.common: {}
portability.posix.common.minimal:
extra_configs:
- CONFIG_NEWLIB_LIBC=n
integration_platforms:
- qemu_x86
- CONFIG_MINIMAL_LIBC=y
portability.posix.common.newlib:
platform_exclude:
- nsim/nsim_sem/mpu_stack_guard
- intel_ehl_crb
- lpcxpresso55s06
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
- CONFIG_NEWLIB_LIBC=y
arch_exclude:
- posix
integration_platforms:
- qemu_x86
portability.posix.common.armclang_std_libc:
toolchain_allow: armclang
extra_configs:
Expand All @@ -37,69 +34,40 @@ tests:
- CONFIG_ARCMWDT_LIBC=y
portability.posix.common.tls:
platform_exclude:
- nsim/nsim_sem/mpu_stack_guard
- intel_ehl_crb
filter: CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
extra_configs:
- CONFIG_NEWLIB_LIBC=n
- CONFIG_THREAD_LOCAL_STORAGE=y
integration_platforms:
- qemu_x86
portability.posix.common.tls.newlib:
platform_exclude:
- nsim/nsim_sem/mpu_stack_guard
- intel_ehl_crb
- lpcxpresso55s06
filter: TOOLCHAIN_HAS_NEWLIB == 1 and CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and
CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
arch_exclude:
- posix
integration_platforms:
- qemu_x86
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_THREAD_LOCAL_STORAGE=y
portability.posix.common.nsim:
platform_allow: nsim/nsim_sem/mpu_stack_guard
extra_configs:
- CONFIG_NEWLIB_LIBC=n
- CONFIG_TEST_HW_STACK_PROTECTION=n
portability.posix.common.newlib.nsim:
platform_allow: nsim/nsim_sem/mpu_stack_guard
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_TEST_HW_STACK_PROTECTION=n
portability.posix.common.picolibc:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
integration_platforms:
- qemu_x86
extra_configs:
- CONFIG_PICOLIBC=y
portability.posix.common.no_spin_validate:
extra_configs:
- CONFIG_SPIN_VALIDATE=n
integration_platforms:
- mps2/an385
portability.posix.common.signal.strsignal_no_desc:
extra_configs:
- CONFIG_POSIX_SIGNAL_STRING_DESC=n
portability.posix.common.signal.big_nsig:
extra_configs:
- CONFIG_POSIX_RTSIG_MAX=1024
portability.posix.common.dynamic_stack:
integration_platforms:
- qemu_x86
- qemu_riscv64
extra_configs:
- CONFIG_DYNAMIC_THREAD=y
- CONFIG_THREAD_STACK_INFO=y
- CONFIG_HEAP_MEM_POOL_SIZE=16384
portability.posix.common.static_stack:
integration_platforms:
- qemu_x86
- qemu_riscv64
extra_configs:
- CONFIG_DYNAMIC_THREAD=n
- CONFIG_THREAD_STACK_INFO=n
29 changes: 27 additions & 2 deletions tests/posix/eventfd/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,32 @@ common:
tags:
- posix
- eventfd
integration_platforms:
- qemu_x86
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
tests:
portability.posix.eventfd: {}
portability.posix.eventfd.minimal:
extra_configs:
- CONFIG_MINIMAL_LIBC=y
portability.posix.eventfd.newlib:
platform_exclude:
- intel_ehl_crb
- lpcxpresso55s06
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
- CONFIG_NEWLIB_LIBC=y
portability.posix.eventfd.armclang_std_libc:
toolchain_allow: armclang
extra_configs:
- CONFIG_ARMCLANG_STD_LIBC=y
portability.posix.eventfd.arcmwdtlib:
toolchain_allow: arcmwdt
extra_configs:
- CONFIG_ARCMWDT_LIBC=y
portability.posix.eventfd.picolibc:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
extra_configs:
- CONFIG_PICOLIBC=y
25 changes: 7 additions & 18 deletions tests/posix/fs/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,37 @@ common:
min_ram: 128
modules:
- fatfs
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
tests:
portability.posix.fs:
portability.posix.fs: {}
portability.posix.fs.minimal:
extra_configs:
- CONFIG_NEWLIB_LIBC=n
integration_platforms:
- qemu_x86
- CONFIG_MINIMAL_LIBC=y
portability.posix.fs.newlib:
filter: TOOLCHAIN_HAS_NEWLIB == 1
arch_exclude:
- posix
extra_configs:
- CONFIG_NEWLIB_LIBC=y
integration_platforms:
- qemu_x86
portability.posix.fs.tls:
filter: CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
extra_configs:
- CONFIG_NEWLIB_LIBC=n
- CONFIG_THREAD_LOCAL_STORAGE=y
integration_platforms:
- qemu_x86
portability.posix.fs.tls.newlib:
filter: TOOLCHAIN_HAS_NEWLIB == 1 and CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and
CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
arch_exclude:
- posix
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_THREAD_LOCAL_STORAGE=y
integration_platforms:
- qemu_x86
portability.posix.fs.picolibc:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
extra_configs:
- CONFIG_PICOLIBC=y
integration_platforms:
- qemu_x86
portability.posix.fs.tls.picolibc:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
extra_configs:
- CONFIG_PICOLIBC=y
integration_platforms:
- qemu_x86
25 changes: 20 additions & 5 deletions tests/posix/getentropy/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
common:
filter: dt_chosen_enabled("zephyr,entropy") and CONFIG_ENTROPY_HAS_DRIVER and
not CONFIG_NATIVE_LIBC
integration_platforms:
- native_sim
tags:
- posix
- getentropy
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
tests:
portability.posix.getentropy: {}
portability.posix.getentropy:
extra_configs:
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=256
portability.posix.getentropy.armclang_std_libc:
toolchain_allow: armclang
extra_configs:
- CONFIG_ARMCLANG_STD_LIBC=y
portability.posix.getentropy.arcmwdtlib:
toolchain_allow: arcmwdt
extra_configs:
- CONFIG_ARCMWDT_LIBC=y
portability.posix.getentropy.minimal:
extra_configs:
- CONFIG_MINIMAL_LIBC=y
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=256
portability.posix.getentropy.newlib:
filter: CONFIG_NEWLIB_LIBC_SUPPORTED
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=4096
portability.posix.getentropy.picolibc:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
Expand Down
9 changes: 7 additions & 2 deletions tests/posix/getopt/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ common:
tags:
- posix
- getopt
integration_platforms:
- qemu_x86
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
tests:
portability.posix.getopt:
min_flash: 64
min_ram: 32
portability.posix.getopt.minimal:
extra_configs:
- CONFIG_MINIMAL_LIBC=y
portability.posix.getopt.newlib:
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
Expand Down
22 changes: 10 additions & 12 deletions tests/posix/headers/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,46 @@ common:
tags:
- posix
min_ram: 32
# 1 tier0 platform per supported architecture
platform_key:
- arch
- simulation
tests:
portability.posix.headers.with_posix_api:
extra_configs:
- CONFIG_POSIX_API=y
integration_platforms:
- qemu_x86
portability.posix.headers.without_posix_api:
extra_configs:
- CONFIG_POSIX_API=n
integration_platforms:
- qemu_x86
portability.posix.headers.minimal.with_posix_api:
extra_configs:
- CONFIG_POSIX_API=y
portability.posix.headers.minimal.without_posix_api:
extra_configs:
- CONFIG_POSIX_API=n
portability.posix.headers.picolibc.with_posix_api:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
extra_configs:
- CONFIG_POSIX_API=y
- CONFIG_PICOLIBC=y
integration_platforms:
- qemu_x86
portability.posix.headers.picolibc.without_posix_api:
tags: picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
extra_configs:
- CONFIG_POSIX_API=n
- CONFIG_PICOLIBC=y
integration_platforms:
- qemu_x86
portability.posix.headers.newlib.with_posix_api:
tags: newlib
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
- CONFIG_POSIX_API=y
- CONFIG_NEWLIB_LIBC=y
integration_platforms:
- qemu_x86
portability.posix.headers.newlib.without_posix_api:
filter: TOOLCHAIN_HAS_NEWLIB == 1
extra_configs:
- CONFIG_POSIX_API=n
- CONFIG_NEWLIB_LIBC=y
integration_platforms:
- qemu_x86
portability.posix.headers.arcmwdtlib.with_posix_api:
toolchain_allow: arcmwdt
extra_configs:
Expand Down
Loading

0 comments on commit 2aa31a3

Please sign in to comment.