[1/6] testsuite: move targets with custom kernel to separate test

Message ID 20251217140827.166531-2-felix.moessbauer@siemens.com
State Under Review
Headers show
Series [1/6] testsuite: move targets with custom kernel to separate test | expand

Commit Message

Felix Moessbauer Dec. 17, 2025, 2:08 p.m. UTC
By moving these tests out of the cross test (which is a fast test), we
significantly reduce the test time on fast.

The tests are now placed in the KernelTests class in a dedicated test,
suitable for applying further optimizations (separate commit).

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 testsuite/citest.py | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

Patch

diff --git a/testsuite/citest.py b/testsuite/citest.py
index 76a3df69..cb63a8fe 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -190,7 +190,8 @@  class InstallerTest(CIBaseTest):
 class CrossTest(CIBaseTest):
 
     """
-    Start cross build for the defined set of configurations
+    Start cross build for the defined set of configurations.
+    As this is a fast test, ensure to not depend on custom kernels.
 
     :avocado: tags=cross,fast
     """
@@ -199,12 +200,9 @@  class CrossTest(CIBaseTest):
         targets = [
             'mc:qemuarm-buster:isar-image-ci',
             'mc:qemuarm-bullseye:isar-image-ci',
-            'mc:de0-nano-soc-bullseye:isar-image-base',
-            'mc:stm32mp15x-bullseye:isar-image-base',
             'mc:qemuarm-bookworm:isar-image-ci',
             'mc:qemuarm64-focal:isar-image-base',
             'mc:nanopi-neo-efi-bookworm:isar-image-base',
-            'mc:phyboard-mira-bookworm:isar-image-base',
         ]
 
         self.init()
@@ -273,6 +271,17 @@  class KernelTests(CIBaseTest):
     :avocado: tags=kernel,full
     """
 
+    def test_kernel_cross(self):
+        """Targets that build a custom kernel"""
+        targets = [
+            'mc:de0-nano-soc-bullseye:isar-image-base',
+            'mc:stm32mp15x-bullseye:isar-image-base',
+            'mc:phyboard-mira-bookworm:isar-image-base',
+        ]
+
+        self.init()
+        self.perform_build_test(targets)
+
     def test_per_kernel(self):
         """Test per-kernel recipe variants for external kernel modules."""