1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/nixos/tests/peerflix.nix

24 lines
462 B
Nix
Raw Normal View History

2014-12-01 15:40:42 +00:00
# This test runs peerflix and checks if peerflix starts
import ./make-test.nix ({ pkgs, ...} : {
2014-12-01 15:40:42 +00:00
name = "peerflix";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ offline ];
};
2014-12-01 15:40:42 +00:00
nodes = {
peerflix =
{ ... }:
2014-12-01 15:40:42 +00:00
{
services.peerflix.enable = true;
};
};
testScript = ''
startAll;
$peerflix->waitForUnit("peerflix.service");
$peerflix->waitUntilSucceeds("curl localhost:9000");
'';
})