mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
24 lines
465 B
Nix
24 lines
465 B
Nix
# This test runs peerflix and checks if peerflix starts
|
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "peerflix";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ offline ];
|
|
};
|
|
|
|
nodes = {
|
|
peerflix =
|
|
{ ... }:
|
|
{
|
|
services.peerflix.enable = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
peerflix.wait_for_unit("peerflix.service")
|
|
peerflix.wait_until_succeeds("curl -f localhost:9000")
|
|
'';
|
|
})
|