mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
24 lines
462 B
Nix
24 lines
462 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 =
|
|
{ ... }:
|
|
{
|
|
services.peerflix.enable = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
|
|
$peerflix->waitForUnit("peerflix.service");
|
|
$peerflix->waitUntilSucceeds("curl localhost:9000");
|
|
'';
|
|
})
|