mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
0208abfd4b
commit
e339b99ca1
|
@ -1022,6 +1022,19 @@ FIT_HASH_ALG = "sha256"
|
|||
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"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user