mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
systemd-initrd: Basic test case
This commit is contained in:
parent
213de9b108
commit
3365666840
@ -505,6 +505,7 @@ in
|
||||
systemd-confinement = handleTest ./systemd-confinement.nix {};
|
||||
systemd-cryptenroll = handleTest ./systemd-cryptenroll.nix {};
|
||||
systemd-escaping = handleTest ./systemd-escaping.nix {};
|
||||
systemd-initrd-simple = handleTest ./systemd-initrd-simple.nix {};
|
||||
systemd-journal = handleTest ./systemd-journal.nix {};
|
||||
systemd-machinectl = handleTest ./systemd-machinectl.nix {};
|
||||
systemd-networkd = handleTest ./systemd-networkd.nix {};
|
||||
|
11
nixos/tests/systemd-initrd-simple.nix
Normal file
11
nixos/tests/systemd-initrd-simple.nix
Normal file
@ -0,0 +1,11 @@
|
||||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "systemd-initrd-simple";
|
||||
|
||||
machine = { pkgs, ... }: {
|
||||
boot.initrd.systemd.enable = true;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("basic.target")
|
||||
'';
|
||||
})
|
Loading…
Reference in New Issue
Block a user