about summary refs log tree commit diff
path: root/nixos/tests/systemd-initrd-simple.nix
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2022-03-20 16:11:32 -0400
committerWill Fancher <elvishjerricco@gmail.com>2022-03-22 21:28:51 -0400
commit3365666840152b7b1ef2a97f171102575b6d743f (patch)
treee0ccdda807f771c4e4ae187611e4be9b99acdfa2 /nixos/tests/systemd-initrd-simple.nix
parent213de9b10874370c9f14e41c8551fba701ed8030 (diff)
systemd-initrd: Basic test case
Diffstat (limited to 'nixos/tests/systemd-initrd-simple.nix')
-rw-r--r--nixos/tests/systemd-initrd-simple.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/tests/systemd-initrd-simple.nix b/nixos/tests/systemd-initrd-simple.nix
new file mode 100644
index 0000000000000..d0786239b516a
--- /dev/null
+++ b/nixos/tests/systemd-initrd-simple.nix
@@ -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")
+  '';
+})