mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
tests: use module mode by default, export installed-system
This commit is contained in:
parent
62f939e213
commit
6e01bdc086
1 changed files with 8 additions and 3 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
, efi ? true
|
, efi ? true
|
||||||
, enableOCR ? false
|
, enableOCR ? false
|
||||||
, postDisko ? ""
|
, postDisko ? ""
|
||||||
, testMode ? "direct" # can be one of direct module cli
|
, testMode ? "module" # can be one of direct module cli
|
||||||
, testBoot ? true # if we actually want to test booting or just create/mount
|
, testBoot ? true # if we actually want to test booting or just create/mount
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -65,10 +65,12 @@
|
||||||
efiInstallAsRemovable = efi;
|
efiInstallAsRemovable = efi;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
installedTopLevel = (eval-config {
|
installed-system-eval = eval-config {
|
||||||
modules = [ installed-system ];
|
modules = [ installed-system ];
|
||||||
inherit (pkgs) system;
|
inherit (pkgs) system;
|
||||||
}).config.system.build.toplevel;
|
};
|
||||||
|
|
||||||
|
installedTopLevel = installed-system-eval.config.system.build.toplevel;
|
||||||
in
|
in
|
||||||
makeTest' {
|
makeTest' {
|
||||||
name = "disko-${name}";
|
name = "disko-${name}";
|
||||||
|
|
@ -111,6 +113,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.emptyDiskImages = builtins.genList (_: 4096) num-disks;
|
virtualisation.emptyDiskImages = builtins.genList (_: 4096) num-disks;
|
||||||
|
|
||||||
|
# useful for debugging via repl
|
||||||
|
system.build.systemToInstall = installed-system-eval;
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = { nodes, ... }: ''
|
testScript = { nodes, ... }: ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue