about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/gonic.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/gonic.nix')
-rw-r--r--nixpkgs/nixos/tests/gonic.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/gonic.nix b/nixpkgs/nixos/tests/gonic.nix
new file mode 100644
index 000000000000..726d7da0970f
--- /dev/null
+++ b/nixpkgs/nixos/tests/gonic.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+  name = "gonic";
+
+  nodes.machine = { ... }: {
+    services.gonic = {
+      enable = true;
+      settings = {
+        music-path = [ "/tmp" ];
+        podcast-path = "/tmp";
+      };
+    };
+  };
+
+  testScript = ''
+    machine.wait_for_unit("gonic")
+    machine.wait_for_open_port(4747)
+  '';
+})