nixpkgs-suyu/nixos/tests/peerflix.nix

24 lines
476 B
Nix
Raw Normal View History

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