nixpkgs/nixos/tests/localsend.nix

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

21 lines
524 B
Nix
Raw Permalink Normal View History

{ ... }:
{
name = "localsend";
2024-05-12 17:07:22 -05:00
nodes.machine =
{ ... }:
{
imports = [ ./common/x11.nix ];
programs.localsend.enable = true;
};
2024-05-12 17:07:22 -05:00
testScript = ''
machine.wait_for_x()
machine.succeed("localsend_app >&2 &")
machine.wait_for_open_port(53317)
machine.wait_for_window("LocalSend", 10)
2025-08-16 11:06:32 +08:00
machine.succeed("ss --listening --tcp --numeric --processes | grep -P '53317.*localsend'")
machine.succeed("ss --listening --udp --numeric --processes | grep -P '53317.*localsend'")
'';
}