mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
This requires a lot of restructuring. The .nix files have to be bundled together with the python files, so they need to follow python's module system structure. I ran `nix-fast-build --no-link -j 2 --eval-workers 3 --flake .#checks` and it succeeded, so I'm reasonably confident I changed everything as required.
16 lines
417 B
Nix
16 lines
417 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../src/disko_lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "luks-interactive-login";
|
|
disko-config = ../example/luks-interactive-login.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("cryptsetup isLuks /dev/vda2");
|
|
'';
|
|
bootCommands = ''
|
|
machine.wait_for_console_text("vda")
|
|
machine.send_console("secretsecret\n")
|
|
'';
|
|
}
|