From f987d74c4391fcb4df8de7d874e971f9fc9c8705 Mon Sep 17 00:00:00 2001
From: Chase Qi <chase.qi@linaro.org>
Date: Mon, 25 Jul 2022 11:25:23 +0800
Subject: [PATCH] zephyr-kernel-test-twister: build all buildable zephyr tests
 on nitrogen

Signed-off-by: Chase Qi <chase.qi@linaro.org>
---
 .../zephyr-kernel-test-twister.bb             | 34 +++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)

diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-twister.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-twister.bb
index 82451bc..f94291a 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-twister.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-twister.bb
@@ -25,8 +25,27 @@ DEPENDS += "\
 "
 
 # Base directory for twister to recursively search for test cases.
-# Build all available kernel tests by default.
-ZEPHYRTESTS = "kernel"
+# Build all available zephyr tests by default.
+# Source https://github.com/zephyrproject-rtos/zephyr/tree/main/tests
+ZEPHYRTESTS = "\
+    application_development \
+    arch \
+    benchmarks \
+    bluetooth \
+    boards \
+    boot \
+    cmake \
+    crypto \
+    drivers \
+    kernel \
+    lib \
+    misc \
+    net \
+    posix \
+    subsys \
+    unit \
+    ztest \
+"
 # Specify tags of tests that does not build.
 ZEPHYRTESTS_EXCLUDE_TAGS = ""
 ZEPHYRTESTS_EXCLUDE_TAGS:96b-nitrogen = "fpu"
@@ -37,6 +56,17 @@ ZEPHYRTESTS_DELETE = ""
 ZEPHYRTESTS_DELETE:96b-nitrogen = "\
     kernel/profiling \
     kernel/fatal \
+    kernel/timer/starve \
+    drivers/sensor \
+    misc/test_build \
+    lib/sprintf \
+    subsys/portability \
+    crypto/mbedtls \
+    benchmarks/footprints \
+    benchmarks/latency_measure \
+    benchmarks/sched \
+    benchmarks/app_kernel \
+    benchmarks/sys_kernel \
 "
 
 do_compile() {
-- 
GitLab