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.
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
self._gen_signing_key(bb_vars)
self._test_fitimage(bb_vars)
+class KernelFitImageRecipeTests(KernelFitImageTests):
+ """Test cases for the linux-yocto-fitimage recipe"""
+
+ @property
+ def kernel_recipe(self):
+ return "linux-yocto-fitimage"
+
+ def _config_add_kernel_classes(self, config):
+ config += '# Use kernel-fit-extra-artifacts.bbclass for the creation of the vmlinux artifact' + os.linesep
+ config += 'KERNEL_CLASSES = "kernel-fit-extra-artifacts"' + os.linesep
+ config += '# Avoid naming clashes in the deploy folder with kernel-fitimage.bbclass artifacts' + os.linesep
+ config += 'KERNEL_DEPLOYSUBDIR = "linux-yocto-fitimage"' + os.linesep
+ return config
class FitImagePyTests(KernelFitImageBase):
"""Test cases for the fitimage.py module without calling bitbake"""