nixos/tests/refind: init test
This commit is contained in:
@@ -1291,6 +1291,7 @@ in
|
||||
redis = handleTest ./redis.nix { };
|
||||
redlib = runTest ./redlib.nix;
|
||||
redmine = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./redmine.nix { };
|
||||
refind = runTest ./refind.nix;
|
||||
renovate = runTest ./renovate.nix;
|
||||
replace-dependencies = handleTest ./replace-dependencies { };
|
||||
reposilite = runTest ./reposilite.nix;
|
||||
|
||||
25
nixos/tests/refind.nix
Normal file
25
nixos/tests/refind.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
name = "refind";
|
||||
meta = {
|
||||
inherit (pkgs.refind.meta) maintainers;
|
||||
};
|
||||
|
||||
nodes.machine =
|
||||
{ ... }:
|
||||
{
|
||||
virtualisation.useBootLoader = true;
|
||||
virtualisation.useEFIBoot = true;
|
||||
|
||||
boot.loader.grub.enable = false;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.refind.enable = true;
|
||||
boot.loader.timeout = 1;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.start()
|
||||
with subtest('Machine boots correctly'):
|
||||
machine.wait_for_unit('multi-user.target')
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user