nixpkgs/nixos/tests/peerflix.nix
2015-07-12 12:29:51 +02:00

24 lines
476 B
Nix

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