nixos/limine: add test for specialisations
This commit is contained in:
parent
bdc190b8ef
commit
771d70fb47
@ -5,5 +5,6 @@
|
|||||||
{
|
{
|
||||||
checksum = runTest ./checksum.nix;
|
checksum = runTest ./checksum.nix;
|
||||||
secureBoot = runTest ./secure-boot.nix;
|
secureBoot = runTest ./secure-boot.nix;
|
||||||
|
specialisations = runTest ./specialisations.nix;
|
||||||
uefi = runTest ./uefi.nix;
|
uefi = runTest ./uefi.nix;
|
||||||
}
|
}
|
||||||
|
|||||||
28
nixos/tests/limine/specialisations.nix
Normal file
28
nixos/tests/limine/specialisations.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
name = "specialisations";
|
||||||
|
meta.maintainers = with lib.maintainers; [
|
||||||
|
lzcunt
|
||||||
|
phip1611
|
||||||
|
programmerlexi
|
||||||
|
];
|
||||||
|
nodes.machine =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
virtualisation.useBootLoader = true;
|
||||||
|
virtualisation.useEFIBoot = true;
|
||||||
|
|
||||||
|
specialisation.test = { };
|
||||||
|
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.loader.limine.enable = true;
|
||||||
|
boot.loader.limine.efiSupport = true;
|
||||||
|
boot.loader.timeout = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
machine.start()
|
||||||
|
with subtest('Machine boots correctly'):
|
||||||
|
machine.wait_for_unit('multi-user.target')
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user