From 28796076d84056d085e5a4ebf213dafbfe56202a Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 21 Nov 2024 06:03:30 -0500 Subject: [PATCH] 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 --- tests/kernel/common/testcase.yaml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/tests/kernel/common/testcase.yaml b/tests/kernel/common/testcase.yaml index c4c17e2eb51b..43010a537cc2 100644 --- a/tests/kernel/common/testcase.yaml +++ b/tests/kernel/common/testcase.yaml @@ -7,8 +7,7 @@ common: min_ram: 32 timeout: 120 tests: - kernel.common: - build_on_all: true + kernel.common: {} kernel.common.tls: # ARCMWDT can't handle THREAD_LOCAL_STORAGE with USERSPACE, see #52570 for details filter: > @@ -17,6 +16,8 @@ tests: extra_configs: - CONFIG_THREAD_LOCAL_STORAGE=y kernel.common.misra: + platform_key: + - arch # Some configurations are known-incompliant and won't build filter: not ((CONFIG_I2C or CONFIG_SPI) and CONFIG_USERSPACE) integration_platforms: @@ -24,30 +25,52 @@ tests: extra_configs: - CONFIG_MISRA_SANE=y kernel.common.minimallibc: + platform_key: + - arch filter: CONFIG_MINIMAL_LIBC_SUPPORTED tags: libc extra_configs: - CONFIG_MINIMAL_LIBC=y + integration_platforms: + - qemu_x86 + - mps2/an385 kernel.common.nano32: + platform_key: + - arch tags: - nano filter: not CONFIG_KERNEL_COHERENCE extra_configs: - CONFIG_CBPRINTF_NANO=y - CONFIG_CBPRINTF_REDUCED_INTEGRAL=y + integration_platforms: + - qemu_x86 + - mps2/an385 kernel.common.nano64: + platform_key: + - arch tags: - nano filter: not CONFIG_KERNEL_COHERENCE extra_configs: - CONFIG_CBPRINTF_NANO=y - CONFIG_CBPRINTF_FULL_INTEGRAL=y + integration_platforms: + - qemu_x86 + - mps2/an385 kernel.common.picolibc: + platform_key: + - arch filter: CONFIG_PICOLIBC_SUPPORTED tags: picolibc extra_configs: - CONFIG_PICOLIBC=y + integration_platforms: + - qemu_x86 + - mps2/an385 kernel.common.lto: + platform_key: + - arch # CONFIG_CODE_DATA_RELOCATION causes a build error (issue #69730) filter: CONFIG_ISR_TABLES_LOCAL_DECLARATION_SUPPORTED and not CONFIG_CODE_DATA_RELOCATION tags: lto @@ -55,3 +78,6 @@ tests: - CONFIG_TEST_USERSPACE=n - CONFIG_ISR_TABLES_LOCAL_DECLARATION=y - CONFIG_LTO=y + integration_platforms: + - qemu_x86 + - mps2/an385