summary refs log tree commit diff
path: root/nixos/tests/snapcast.nix
diff options
context:
space:
mode:
authorAlexandre Macabies <web+oss@zopieux.com>2020-09-27 20:49:23 +0200
committerAlexandre Macabies <web+oss@zopieux.com>2021-02-05 19:23:24 +0100
commita36cc03d96594526565ce06a0b6db14286fe88ae (patch)
tree69a10a6898a95a01b4899dc4e03cbd13c104c114 /nixos/tests/snapcast.nix
parent5fd8747939ead2aa54d2cb413577ad80edc924c6 (diff)
downloadnixpkgs-a36cc03d96594526565ce06a0b6db14286fe88ae.tar
nixpkgs-a36cc03d96594526565ce06a0b6db14286fe88ae.tar.gz
nixpkgs-a36cc03d96594526565ce06a0b6db14286fe88ae.tar.bz2
nixpkgs-a36cc03d96594526565ce06a0b6db14286fe88ae.tar.lz
nixpkgs-a36cc03d96594526565ce06a0b6db14286fe88ae.tar.xz
nixpkgs-a36cc03d96594526565ce06a0b6db14286fe88ae.tar.zst
nixpkgs-a36cc03d96594526565ce06a0b6db14286fe88ae.zip
nixos/snapserver: update available stream types for v0.21.0
* Add 'librespot' (new name for 'spotify'), 'alsa', 'tcp'.
* Add a warning about the spotify -> librespot rename.
* Fix the deprecated example `mode = "listen"` for type 'pipe'.
* Update the tests to include a straightforward 'tcp' test.
Diffstat (limited to 'nixos/tests/snapcast.nix')
-rw-r--r--nixos/tests/snapcast.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/tests/snapcast.nix b/nixos/tests/snapcast.nix
index a69b7afe99d..05d08d76cc0 100644
--- a/nixos/tests/snapcast.nix
+++ b/nixos/tests/snapcast.nix
@@ -4,6 +4,7 @@ let
   port = 10004;
   tcpPort = 10005;
   httpPort = 10080;
+  tcpStreamPort = 10006;
 in {
   name = "snapcast";
   meta = with pkgs.lib.maintainers; {
@@ -21,11 +22,16 @@ in {
           mpd = {
             type = "pipe";
             location = "/run/snapserver/mpd";
+            query.mode = "create";
           };
           bluetooth = {
             type = "pipe";
             location = "/run/snapserver/bluetooth";
           };
+          tcp = {
+            type = "tcp";
+            location = "127.0.0.1:${toString tcpStreamPort}";
+          };
         };
       };
     };
@@ -42,6 +48,7 @@ in {
     server.wait_until_succeeds("ss -ntl | grep -q ${toString port}")
     server.wait_until_succeeds("ss -ntl | grep -q ${toString tcpPort}")
     server.wait_until_succeeds("ss -ntl | grep -q ${toString httpPort}")
+    server.wait_until_succeeds("ss -ntl | grep -q ${toString tcpStreamPort}")
 
     with subtest("check that pipes are created"):
         server.succeed("test -p /run/snapserver/mpd")