1common:
2  tags: posix
3  min_ram: 64
4  timeout: 240
5  # 1 tier0 platform per supported architecture
6  platform_key:
7    - arch
8    - simulation
9  platform_exclude:
10    # consistently overflows flash
11    - qemu_nios2
12  filter: not CONFIG_NATIVE_LIBC
13tests:
14  portability.posix.common: {}
15  portability.posix.common.minimal:
16    extra_configs:
17      - CONFIG_MINIMAL_LIBC=y
18  portability.posix.common.newlib:
19    platform_exclude:
20      - intel_ehl_crb
21      - lpcxpresso55s06
22    filter: TOOLCHAIN_HAS_NEWLIB == 1
23    extra_configs:
24      - CONFIG_NEWLIB_LIBC=y
25  portability.posix.common.armclang_std_libc:
26    toolchain_allow: armclang
27    extra_configs:
28      - CONFIG_ARMCLANG_STD_LIBC=y
29  portability.posix.common.arcmwdtlib:
30    toolchain_allow: arcmwdt
31    extra_configs:
32      - CONFIG_ARCMWDT_LIBC=y
33  portability.posix.common.tls:
34    platform_exclude:
35      - intel_ehl_crb
36    filter: CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
37    extra_configs:
38      - CONFIG_NEWLIB_LIBC=n
39      - CONFIG_THREAD_LOCAL_STORAGE=y
40  portability.posix.common.tls.newlib:
41    platform_exclude:
42      - intel_ehl_crb
43      - lpcxpresso55s06
44    filter: TOOLCHAIN_HAS_NEWLIB == 1 and CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and
45      CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
46    extra_configs:
47      - CONFIG_NEWLIB_LIBC=y
48      - CONFIG_THREAD_LOCAL_STORAGE=y
49  portability.posix.common.picolibc:
50    tags: picolibc
51    filter: CONFIG_PICOLIBC_SUPPORTED
52    extra_configs:
53      - CONFIG_PICOLIBC=y
54  portability.posix.common.no_spin_validate:
55    extra_configs:
56      - CONFIG_SPIN_VALIDATE=n
57  portability.posix.common.signal.strsignal_no_desc:
58    extra_configs:
59      - CONFIG_POSIX_SIGNAL_STRING_DESC=n
60  portability.posix.common.signal.big_nsig:
61    extra_configs:
62      - CONFIG_POSIX_RTSIG_MAX=1024
63  portability.posix.common.dynamic_stack:
64    extra_configs:
65      - CONFIG_DYNAMIC_THREAD=y
66      - CONFIG_THREAD_STACK_INFO=y
67      - CONFIG_HEAP_MEM_POOL_SIZE=16384
68      - CONFIG_POSIX_THREAD_KEYS_MAX=2048
69      - CONFIG_TEST_EXTRA_STACK_SIZE=16384
70  portability.posix.common.static_stack:
71    extra_configs:
72      - CONFIG_DYNAMIC_THREAD=n
73      - CONFIG_THREAD_STACK_INFO=n
74  portability.posix.common.userspace:
75    filter: CONFIG_ARCH_HAS_USERSPACE
76    tags:
77      - userspace
78    extra_configs:
79      - CONFIG_USERSPACE=y
80