1common:
2  filter: not (CONFIG_NATIVE_BUILD and CONFIG_EXTERNAL_LIBC)
3  # FIXME: qemu_leon3 is excluded because of the alignment-related failure
4  #        reported in the GitHub issue zephyrproject-rtos/zephyr#48992.
5  platform_exclude: qemu_leon3
6  tags: posix
7  min_ram: 64
8  timeout: 240
9tests:
10  portability.posix.common:
11    platform_exclude:
12      - nsim_sem_mpu_stack_guard
13      - intel_ehl_crb
14    extra_configs:
15      - CONFIG_NEWLIB_LIBC=n
16    integration_platforms:
17      - qemu_x86
18  portability.posix.common.newlib:
19    platform_exclude:
20      - nsim_sem_mpu_stack_guard
21      - intel_ehl_crb
22      - lpcxpresso55s06
23    filter: TOOLCHAIN_HAS_NEWLIB == 1
24    extra_configs:
25      - CONFIG_NEWLIB_LIBC=y
26    integration_platforms:
27      - qemu_x86
28  portability.posix.common.armclang_std_libc:
29    toolchain_allow: armclang
30    extra_configs:
31      - CONFIG_ARMCLANG_STD_LIBC=y
32  portability.posix.common.arcmwdtlib:
33    toolchain_allow: arcmwdt
34    extra_configs:
35      - CONFIG_ARCMWDT_LIBC=y
36  portability.posix.common.tls:
37    platform_exclude:
38      - nsim_sem_mpu_stack_guard
39      - intel_ehl_crb
40    filter: CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
41    extra_configs:
42      - CONFIG_NEWLIB_LIBC=n
43      - CONFIG_THREAD_LOCAL_STORAGE=y
44    integration_platforms:
45      - qemu_x86
46  portability.posix.common.tls.newlib:
47    platform_exclude:
48      - nsim_sem_mpu_stack_guard
49      - intel_ehl_crb
50      - lpcxpresso55s06
51    filter: TOOLCHAIN_HAS_NEWLIB == 1 and CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and
52      CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
53    integration_platforms:
54      - qemu_x86
55    extra_configs:
56      - CONFIG_NEWLIB_LIBC=y
57      - CONFIG_THREAD_LOCAL_STORAGE=y
58  portability.posix.common.nsim:
59    platform_allow: nsim_sem_mpu_stack_guard
60    extra_configs:
61      - CONFIG_NEWLIB_LIBC=n
62      - CONFIG_TEST_HW_STACK_PROTECTION=n
63  portability.posix.common.newlib.nsim:
64    platform_allow: nsim_sem_mpu_stack_guard
65    filter: TOOLCHAIN_HAS_NEWLIB == 1
66    extra_configs:
67      - CONFIG_NEWLIB_LIBC=y
68      - CONFIG_TEST_HW_STACK_PROTECTION=n
69  portability.posix.common.picolibc:
70    tags: picolibc
71    filter: CONFIG_PICOLIBC_SUPPORTED
72    integration_platforms:
73      - qemu_x86
74    extra_configs:
75      - CONFIG_PICOLIBC=y
76  portability.posix.common.no_spin_validate:
77    extra_configs:
78      - CONFIG_SPIN_VALIDATE=n
79    integration_platforms:
80      - mps2_an385
81  portability.posix.common.signal.strsignal_no_desc:
82    extra_configs:
83      - CONFIG_POSIX_SIGNAL_STRING_DESC=n
84  portability.posix.common.signal.big_nsig:
85    extra_configs:
86      - CONFIG_POSIX_RTSIG_MAX=1024
87  portability.posix.common.dynamic_stack:
88    integration_platforms:
89      - qemu_x86
90      - qemu_riscv64
91    extra_configs:
92      - CONFIG_DYNAMIC_THREAD=y
93      - CONFIG_THREAD_STACK_INFO=y
94      - CONFIG_DYNAMIC_THREAD_POOL_SIZE=5
95      - CONFIG_HEAP_MEM_POOL_SIZE=16384
96