summaryrefslogtreecommitdiffstats
path: root/nixos/tests/robustirc-bridge.nix
blob: 2f6f48df757c41ed95139e737c7e2596a9462cde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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)
  '';
}