1{
2 system ? builtins.currentSystem,
3 config ? { },
4 pkgs ? import ../.. { inherit system config; },
5}:
6import ./make-test-python.nix (
7 { lib, pkgs, ... }:
8 {
9 name = "fanout";
10 meta.maintainers = [ lib.maintainers.therishidesai ];
11
12 nodes =
13 let
14 cfg =
15 { ... }:
16 {
17 services.fanout = {
18 enable = true;
19 fanoutDevices = 2;
20 bufferSize = 8192;
21 };
22 };
23 in
24 {
25 machine = cfg;
26 };
27
28 testScript = ''
29 start_all()
30
31 # mDNS.
32 machine.wait_for_unit("multi-user.target")
33
34 machine.succeed("test -c /dev/fanout0")
35 machine.succeed("test -c /dev/fanout1")
36 '';
37 }
38)