1common:
2  tags:
3    - base
4    - kernel
5    - userspace
6  min_flash: 32
7  min_ram: 32
8  timeout: 120
9tests:
10  kernel.common:
11    platform_exclude:
12      - native_sim
13  kernel.common.toolchain:
14    platform_allow:
15      - native_sim
16    integration_toolchains:
17      - host
18      - llvm
19  kernel.common.tls:
20    # ARCMWDT can't handle THREAD_LOCAL_STORAGE with USERSPACE, see #52570 for details
21    filter: >
22      CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
23      and not (CONFIG_TOOLCHAIN_ARCMWDT_SUPPORTS_THREAD_LOCAL_STORAGE and CONFIG_USERSPACE)
24    extra_configs:
25      - CONFIG_THREAD_LOCAL_STORAGE=y
26  kernel.common.misra:
27    platform_key:
28      - arch
29    # Some configurations are known-incompliant and won't build
30    filter: not ((CONFIG_I2C or CONFIG_SPI) and CONFIG_USERSPACE)
31    integration_platforms:
32      - native_sim
33    extra_configs:
34      - CONFIG_MISRA_SANE=y
35  kernel.common.minimallibc:
36    platform_key:
37      - arch
38    filter: CONFIG_MINIMAL_LIBC_SUPPORTED
39    tags: libc
40    extra_configs:
41      - CONFIG_MINIMAL_LIBC=y
42    integration_platforms:
43      - qemu_x86
44      - mps2/an385
45  kernel.common.nano32:
46    platform_key:
47      - arch
48    tags:
49      - nano
50    filter: not CONFIG_KERNEL_COHERENCE
51    extra_configs:
52      - CONFIG_CBPRINTF_NANO=y
53      - CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
54    integration_platforms:
55      - qemu_x86
56      - mps2/an385
57  kernel.common.nano64:
58    platform_key:
59      - arch
60    tags:
61      - nano
62    filter: not CONFIG_KERNEL_COHERENCE
63    extra_configs:
64      - CONFIG_CBPRINTF_NANO=y
65      - CONFIG_CBPRINTF_FULL_INTEGRAL=y
66    integration_platforms:
67      - qemu_x86
68      - mps2/an385
69  kernel.common.picolibc:
70    platform_key:
71      - arch
72    filter: CONFIG_PICOLIBC_SUPPORTED
73    tags: picolibc
74    extra_configs:
75      - CONFIG_PICOLIBC=y
76    integration_platforms:
77      - qemu_x86
78      - mps2/an385
79  kernel.common.lto:
80    platform_key:
81      - arch
82    # CONFIG_CODE_DATA_RELOCATION causes a build error (issue #69730)
83    filter: CONFIG_ISR_TABLES_LOCAL_DECLARATION_SUPPORTED and not CONFIG_CODE_DATA_RELOCATION
84    tags: lto
85    extra_configs:
86      - CONFIG_TEST_USERSPACE=n
87      - CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
88      - CONFIG_LTO=y
89    integration_platforms:
90      - qemu_x86
91      - mps2/an385
92