nixos/tests/refind: init test

This commit is contained in:
Tristan Ross
2025-06-05 18:44:32 -07:00
committed by Masum Reza
parent 062b58f36f
commit 0cc1634b9f
2 changed files with 26 additions and 0 deletions

View File

@@ -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
View 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')
'';
}