nixpkgs/nixos/tests/fanout.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
417 B
Nix
Raw Permalink Normal View History

2025-05-28 11:47:24 +08:00
{ lib, ... }:
{
name = "fanout";
2025-05-28 11:47:24 +08:00
meta.maintainers = with lib.maintainers; [ therishidesai ];
2023-07-25 12:45:54 -05:00
2025-05-28 11:47:24 +08:00
nodes.machine = {
services.fanout = {
enable = true;
fanoutDevices = 2;
bufferSize = 8192;
};
2025-05-28 11:47:24 +08:00
};
2023-07-25 12:45:54 -05:00
testScript = ''
start_all()
2023-07-25 12:45:54 -05:00
# mDNS.
machine.wait_for_unit("multi-user.target")
2023-07-25 12:45:54 -05:00
machine.succeed("test -c /dev/fanout0")
machine.succeed("test -c /dev/fanout1")
'';
}