summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@siemens.com>2025-06-03 10:23:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-05 11:02:22 +0100
commite339b99ca1046e639d0b6da4e5f43fa255e21e50 (patch)
tree30ac92eecba16680289dc04a76774105356f4c3c
parent0208abfd4b517b1a422585e1545c9a5deeba52aa (diff)
downloadpoky-e339b99ca1046e639d0b6da4e5f43fa255e21e50.tar.gz
oe-selftest: fitimage: run all tests for both FIT implementations
Run all existing tests for kernel-fitimage.bbclass also with the new linux-yocto-fitimage recipe. Executing each test for both implementations helps ensure functional compatibility and consistency between them. This change will naturally double the test duration for FIT image-related tests, as each test now runs against both implementations. However, the goal is to eventually deprecate kernel-fitimage.bbclass, at which point the duplicate tests can be removed. Additionally, since the new implementation makes significantly more efficient use of the sstate cache compared to the old one, the overall test execution time may still be improved. (From OE-Core rev: d966939e1758cb1a978f486219f642bf67c8ad48) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/cases/fitimage.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/fitimage.py b/meta/lib/oeqa/selftest/cases/fitimage.py
index 20fedee18b..7a8b8cc49f 100644
--- a/meta/lib/oeqa/selftest/cases/fitimage.py
+++ b/meta/lib/oeqa/selftest/cases/fitimage.py
@@ -1022,6 +1022,19 @@ FIT_HASH_ALG = "sha256"
1022 self._gen_signing_key(bb_vars) 1022 self._gen_signing_key(bb_vars)
1023 self._test_fitimage(bb_vars) 1023 self._test_fitimage(bb_vars)
1024 1024
1025class KernelFitImageRecipeTests(KernelFitImageTests):
1026 """Test cases for the linux-yocto-fitimage recipe"""
1027
1028 @property
1029 def kernel_recipe(self):
1030 return "linux-yocto-fitimage"
1031
1032 def _config_add_kernel_classes(self, config):
1033 config += '# Use kernel-fit-extra-artifacts.bbclass for the creation of the vmlinux artifact' + os.linesep
1034 config += 'KERNEL_CLASSES = "kernel-fit-extra-artifacts"' + os.linesep
1035 config += '# Avoid naming clashes in the deploy folder with kernel-fitimage.bbclass artifacts' + os.linesep
1036 config += 'KERNEL_DEPLOYSUBDIR = "linux-yocto-fitimage"' + os.linesep
1037 return config
1025 1038
1026class FitImagePyTests(KernelFitImageBase): 1039class FitImagePyTests(KernelFitImageBase):
1027 """Test cases for the fitimage.py module without calling bitbake""" 1040 """Test cases for the fitimage.py module without calling bitbake"""