Skip to content

Commit 2879607

Browse files
committed
tests: kernel: common: optimize filters
Optimize filters and remove build_on_all, this option is already used in the synchronization sample which has more coverage on small platforms. Since we only build, it does provide basic sanitcheck for the kernel as well. This reduces testplan on PRs and push events by almost 1000 entries that would only be built or filtered at runtime. Signed-off-by: Anas Nashif <[email protected]>
1 parent b0a1ddd commit 2879607

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

tests/kernel/common/testcase.yaml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ common:
77
min_ram: 32
88
timeout: 120
99
tests:
10-
kernel.common:
11-
build_on_all: true
10+
kernel.common: {}
1211
kernel.common.tls:
1312
# ARCMWDT can't handle THREAD_LOCAL_STORAGE with USERSPACE, see #52570 for details
1413
filter: >
@@ -17,41 +16,68 @@ tests:
1716
extra_configs:
1817
- CONFIG_THREAD_LOCAL_STORAGE=y
1918
kernel.common.misra:
19+
platform_key:
20+
- arch
2021
# Some configurations are known-incompliant and won't build
2122
filter: not ((CONFIG_I2C or CONFIG_SPI) and CONFIG_USERSPACE)
2223
integration_platforms:
2324
- native_sim
2425
extra_configs:
2526
- CONFIG_MISRA_SANE=y
2627
kernel.common.minimallibc:
28+
platform_key:
29+
- arch
2730
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
2831
tags: libc
2932
extra_configs:
3033
- CONFIG_MINIMAL_LIBC=y
34+
integration_platforms:
35+
- qemu_x86
36+
- mps2/an385
3137
kernel.common.nano32:
38+
platform_key:
39+
- arch
3240
tags:
3341
- nano
3442
filter: not CONFIG_KERNEL_COHERENCE
3543
extra_configs:
3644
- CONFIG_CBPRINTF_NANO=y
3745
- CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
46+
integration_platforms:
47+
- qemu_x86
48+
- mps2/an385
3849
kernel.common.nano64:
50+
platform_key:
51+
- arch
3952
tags:
4053
- nano
4154
filter: not CONFIG_KERNEL_COHERENCE
4255
extra_configs:
4356
- CONFIG_CBPRINTF_NANO=y
4457
- CONFIG_CBPRINTF_FULL_INTEGRAL=y
58+
integration_platforms:
59+
- qemu_x86
60+
- mps2/an385
4561
kernel.common.picolibc:
62+
platform_key:
63+
- arch
4664
filter: CONFIG_PICOLIBC_SUPPORTED
4765
tags: picolibc
4866
extra_configs:
4967
- CONFIG_PICOLIBC=y
68+
integration_platforms:
69+
- qemu_x86
70+
- mps2/an385
5071
kernel.common.lto:
72+
platform_key:
73+
- arch
5174
# CONFIG_CODE_DATA_RELOCATION causes a build error (issue #69730)
5275
filter: CONFIG_ISR_TABLES_LOCAL_DECLARATION_SUPPORTED and not CONFIG_CODE_DATA_RELOCATION
5376
tags: lto
5477
extra_configs:
5578
- CONFIG_TEST_USERSPACE=n
5679
- CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
5780
- CONFIG_LTO=y
81+
integration_platforms:
82+
- qemu_x86
83+
- mps2/an385

0 commit comments

Comments
 (0)