zephyr-kernel-test: split ZEPHYRTESTS by version

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
This commit is contained in:
Lee Chee Yang
2026-04-24 08:35:32 +08:00
parent 23e80bd4ba
commit 41eff2e0b3
4 changed files with 68 additions and 2 deletions

View File

@@ -0,0 +1,66 @@
# Exclude tests that fail to configure
ZEPHYRTESTS:remove = "fifo \
fpu_sharing \
lifo \
mbox \
mem_heap \
mem_pool \
mem_protect \
mem_slab \
msgq \
mutex \
pipe \
profiling \
sched \
semaphore \
stack \
threads \
tickless \
timer \
workq"
# Exclude tests that are not currently compiling
ZEPHYRTESTS:remove = "ipi_cascade ipi_optimize ipi_work mp smp smp_abort smp_boot_delay smp_suspend spinlock"
ZEPHYRTESTS:remove:96b-avenger96 = "cache common device poll queue sleep"
ZEPHYRTESTS:remove:stm32mp157c-dk2 = "cache common device poll queue sleep"
# List of all available kernel tests
ZEPHYRTESTS = " \
cache \
common \
context \
device \
early_sleep \
fifo \
fpu_sharing \
ipi_cascade \
ipi_optimize \
ipi_work \
lifo \
mbox \
mem_heap \
mem_protect \
mem_slab \
mp \
msgq \
mutex \
obj_tracking \
pending \
pipe \
poll \
profiling \
queue \
sched \
semaphore \
sleep \
smp \
smp_abort \
smp_boot_delay \
smp_suspend \
spinlock \
stack \
threads \
tickless \
timer \
workq \
"

View File

@@ -1,7 +1,7 @@
LICENSE = "Apache-2.0"
INHIBIT_DEFAULT_DEPS = "1"
require recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc
require recipes-kernel/zephyr-kernel/zephyr-kernel-test-${PREFERRED_VERSION_zephyr-kernel}.inc
addtask testimage
deltask compile

View File

@@ -1,4 +1,4 @@
require recipes-kernel/zephyr-kernel/zephyr-image.inc
require recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc
require recipes-kernel/zephyr-kernel/zephyr-kernel-test-${PREFERRED_VERSION_zephyr-kernel}.inc
BBCLASSEXTEND = '${@" ".join(["zephyrtest:" + x for x in d.getVar("ZEPHYRTESTS", True).split()])}'