Skip to content

Commit

Permalink
test/test_layout_blspec.py: add test case with config and System.map
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ammerlaan <[email protected]>
  • Loading branch information
Nowa-Ammerlaan committed Apr 16, 2024
1 parent 34cfd7f commit 0be7bb9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_layout_blspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
],
Expand Down Expand Up @@ -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'),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 0be7bb9

Please sign in to comment.