nixos/tests/refind: init test

Changed files
+26
nixos
+1
nixos/tests/all-tests.nix
···
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
···
+
{ 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')
+
'';
+
}