From 0be7bb9d426cd69ed69f482b9584241e83b061a0 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 16 Apr 2024 19:14:16 +0200 Subject: [PATCH] test/test_layout_blspec.py: add test case with config and System.map Signed-off-by: Andrew Ammerlaan --- test/test_layout_blspec.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test_layout_blspec.py b/test/test_layout_blspec.py index e435512..45dac34 100644 --- a/test/test_layout_blspec.py +++ b/test/test_layout_blspec.py @@ -43,6 +43,8 @@ def create_layout(self, test_spec = [ f"boot/{subdir}/EFI/Linux/{entry}-1.2.6.efi", f"boot/{subdir}/EFI/Linux/{entry}-1.2.5.efi", + f"boot/{subdir}/EFI/Linux/config-1.2.5", + f"boot/{subdir}/EFI/Linux/System.map-1.2.5", f"boot/{subdir}/{entry}/1.2.5/initrd", f"boot/{subdir}/{entry}/1.2.5/linux", f"boot/{subdir}/{entry}/1.2.4/initrd", @@ -235,6 +237,8 @@ def test_find_modules(self) -> None: '1.2.5'), ('1.2.5', [KernelImage(ukipath / f"{self.machine_id}-1.2.5.efi"), + GenericFile(ukipath / 'System.map-1.2.5', KFT.SYSTEM_MAP), + GenericFile(ukipath / 'config-1.2.5', KFT.CONFIG), ModuleDirectory(modules / '1.2.5'), GenericFile(modules / '1.2.5/../../../usr/src/linux', KFT.BUILD), @@ -303,6 +307,8 @@ def test_exclude_misc(self) -> None: '1.2.5'), ('1.2.5', [KernelImage(ukipath / f"{self.machine_id}-1.2.5.efi"), + GenericFile(ukipath / 'System.map-1.2.5', KFT.SYSTEM_MAP), + GenericFile(ukipath / 'config-1.2.5', KFT.CONFIG), ModuleDirectory(modules / '1.2.5'), GenericFile(modules / '1.2.5/../../../usr/src/linux', KFT.BUILD), @@ -367,6 +373,8 @@ def test_exclude_modules(self) -> None: '1.2.5'), ('1.2.5', [KernelImage(ukipath / f"{self.machine_id}-1.2.5.efi"), + GenericFile(ukipath / 'System.map-1.2.5', KFT.SYSTEM_MAP), + GenericFile(ukipath / 'config-1.2.5', KFT.CONFIG), GenericFile(modules / '1.2.5/../../../usr/src/linux', KFT.BUILD), ], @@ -428,6 +436,8 @@ def test_exclude_build(self) -> None: '1.2.5'), ('1.2.5', [KernelImage(ukipath / f"{self.machine_id}-1.2.5.efi"), + GenericFile(ukipath / 'System.map-1.2.5', KFT.SYSTEM_MAP), + GenericFile(ukipath / 'config-1.2.5', KFT.CONFIG), ModuleDirectory(modules / '1.2.5'), ], '1.2.5'), @@ -492,6 +502,8 @@ def test_find_modules_EFI(self) -> None: '1.2.5'), ('1.2.5', [KernelImage(ukipath / f"{self.machine_id}-1.2.5.efi"), + GenericFile(ukipath / 'System.map-1.2.5', KFT.SYSTEM_MAP), + GenericFile(ukipath / 'config-1.2.5', KFT.CONFIG), ModuleDirectory(modules / '1.2.5'), GenericFile(modules / '1.2.5/../../../usr/src/linux', KFT.BUILD),