summaryrefslogtreecommitdiffstats
path: root/nixos/tests/fanout.nix
blob: 797a679b9b0c539d1b1f434523b961b23e6a8867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, ... }:
{
  name = "fanout";
  meta.maintainers = with lib.maintainers; [ therishidesai ];

  nodes.machine = {
    services.fanout = {
      enable = true;
      fanoutDevices = 2;
      bufferSize = 8192;
    };
  };

  testScript = ''
    start_all()

    # mDNS.
    machine.wait_for_unit("multi-user.target")

    machine.succeed("test -c /dev/fanout0")
    machine.succeed("test -c /dev/fanout1")
  '';
}