about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/earlyoom.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/earlyoom.nix')
-rw-r--r--nixpkgs/nixos/tests/earlyoom.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/earlyoom.nix b/nixpkgs/nixos/tests/earlyoom.nix
new file mode 100644
index 000000000000..75bdf56899b3
--- /dev/null
+++ b/nixpkgs/nixos/tests/earlyoom.nix
@@ -0,0 +1,16 @@
+import ./make-test-python.nix ({ lib, ... }: {
+  name = "earlyoom";
+  meta = {
+    maintainers = with lib.maintainers; [ ncfavier ];
+  };
+
+  machine = {
+    services.earlyoom = {
+      enable = true;
+    };
+  };
+
+  testScript = ''
+    machine.wait_for_unit("earlyoom.service")
+  '';
+})