nixpkgs-immich/nixos/tests/robustirc-bridge.nix
2024-09-17 10:23:40 -06:00

30 lines
563 B
Nix

import ./make-test-python.nix ({ pkgs, ... }:
{
name = "robustirc-bridge";
meta = with pkgs.lib.maintainers; {
maintainers = [ hax404 ];
};
nodes =
{ bridge =
{ services.robustirc-bridge = {
enable = true;
extraFlags = [
"-listen localhost:6667"
"-network example.com"
];
};
};
};
testScript =
''
start_all()
bridge.wait_for_unit("robustirc-bridge.service")
bridge.wait_for_open_port(1080)
bridge.wait_for_open_port(6667)
'';
})