Loading nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,7 @@ in hydra = runTest ./hydra; i18n = runTest ./i18n.nix; i3wm = runTest ./i3wm.nix; icecast = runTest ./icecast.nix; icingaweb2 = runTest ./icingaweb2.nix; ifm = runTest ./ifm.nix; ifstate = import ./ifstate { inherit runTest; }; Loading nixos/tests/icecast.nix 0 → 100644 +25 −0 Original line number Diff line number Diff line { pkgs, ... }: { name = "icecast"; meta = { inherit (pkgs.icecast.meta) maintainers; }; nodes.machine = { services.icecast = { enable = true; hostname = "nixos.test"; admin.password = "test"; }; }; testScript = '' machine.wait_for_unit("icecast.service") machine.wait_for_open_port(8000) machine.succeed("curl -fail http://localhost:8000 | grep -q 'DO NOT ATTEMPT TO PARSE ICECAST HTML OUTPUT'") ''; } pkgs/by-name/ic/icecast/package.nix +5 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ libxslt, rhash, speex, nixosTests, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -39,6 +40,10 @@ stdenv.mkDerivation (finalAttrs: { speex ]; passthru.tests = { inherit (nixosTests) icecast; }; meta = { description = "Server software for streaming multimedia"; mainProgram = "icecast"; Loading Loading
nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,7 @@ in hydra = runTest ./hydra; i18n = runTest ./i18n.nix; i3wm = runTest ./i3wm.nix; icecast = runTest ./icecast.nix; icingaweb2 = runTest ./icingaweb2.nix; ifm = runTest ./ifm.nix; ifstate = import ./ifstate { inherit runTest; }; Loading
nixos/tests/icecast.nix 0 → 100644 +25 −0 Original line number Diff line number Diff line { pkgs, ... }: { name = "icecast"; meta = { inherit (pkgs.icecast.meta) maintainers; }; nodes.machine = { services.icecast = { enable = true; hostname = "nixos.test"; admin.password = "test"; }; }; testScript = '' machine.wait_for_unit("icecast.service") machine.wait_for_open_port(8000) machine.succeed("curl -fail http://localhost:8000 | grep -q 'DO NOT ATTEMPT TO PARSE ICECAST HTML OUTPUT'") ''; }
pkgs/by-name/ic/icecast/package.nix +5 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ libxslt, rhash, speex, nixosTests, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -39,6 +40,10 @@ stdenv.mkDerivation (finalAttrs: { speex ]; passthru.tests = { inherit (nixosTests) icecast; }; meta = { description = "Server software for streaming multimedia"; mainProgram = "icecast"; Loading