nixpkgs/nixos/tests/fanout.nix

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

37 lines
637 B
Nix
Raw Normal View History

2023-07-25 12:45:54 -05:00
{
system ? builtins.currentSystem,
config ? { },
pkgs ? import ../.. { inherit system config; },
}:
{ lib, pkgs, ... }:
{
name = "fanout";
meta.maintainers = [ lib.maintainers.therishidesai ];
2023-07-25 12:45:54 -05:00
nodes =
let
cfg =
{ ... }:
{
services.fanout = {
enable = true;
fanoutDevices = 2;
bufferSize = 8192;
};
};
in
{
machine = cfg;
};
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")
'';
}