diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-08-01 12:10:12 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 12:10:12 +0700 |
commit | 44db812a14c76eea9722137a7ac2c036879c2d23 (patch) | |
tree | 4deb72f7755f458ceed23ce3ef0f727843d3e77c /nixos | |
parent | c235a49de429a9795e152ca3cad7e74cf8244c35 (diff) | |
parent | c9e991bd649c231e673bef17dd8820b71fb90f64 (diff) | |
download | nixpkgs-44db812a14c76eea9722137a7ac2c036879c2d23.tar nixpkgs-44db812a14c76eea9722137a7ac2c036879c2d23.tar.gz nixpkgs-44db812a14c76eea9722137a7ac2c036879c2d23.tar.bz2 nixpkgs-44db812a14c76eea9722137a7ac2c036879c2d23.tar.lz nixpkgs-44db812a14c76eea9722137a7ac2c036879c2d23.tar.xz nixpkgs-44db812a14c76eea9722137a7ac2c036879c2d23.tar.zst nixpkgs-44db812a14c76eea9722137a7ac2c036879c2d23.zip |
Merge pull request #132257 from Zopieux/simple-mpv-webui
mpvScripts.simple-mpv-webui: 1.0.0 -> 2.1.0
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/mpv.nix | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 58a47e03472..fdda6ed2420 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -260,6 +260,7 @@ in morty = handleTest ./morty.nix {}; mosquitto = handleTest ./mosquitto.nix {}; mpd = handleTest ./mpd.nix {}; + mpv = handleTest ./mpv.nix {}; mumble = handleTest ./mumble.nix {}; musescore = handleTest ./musescore.nix {}; munin = handleTest ./munin.nix {}; diff --git a/nixos/tests/mpv.nix b/nixos/tests/mpv.nix new file mode 100644 index 00000000000..bcfc17cf332 --- /dev/null +++ b/nixos/tests/mpv.nix @@ -0,0 +1,28 @@ +import ./make-test-python.nix ({ lib, ... }: + +with lib; + +let + port = toString 4321; +in +{ + name = "mpv"; + meta.maintainers = with maintainers; [ zopieux ]; + + nodes.machine = + { pkgs, ... }: + { + environment.systemPackages = [ + pkgs.curl + (pkgs.mpv-with-scripts.override { + scripts = [ pkgs.mpvScripts.simple-mpv-webui ]; + }) + ]; + }; + + testScript = '' + machine.execute("set -m; mpv --script-opts=webui-port=${port} --idle=yes &") + machine.wait_for_open_port(${port}) + assert "<title>simple-mpv-webui" in machine.succeed("curl -s localhost:${port}") + ''; +}) |