2024-05-12 22:07:22 +00:00
|
|
|
import ./make-test-python.nix (
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
name = "localsend";
|
|
|
|
|
|
|
|
nodes.machine =
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./common/x11.nix ];
|
|
|
|
programs.localsend.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_x()
|
|
|
|
machine.succeed("localsend_app >&2 &")
|
|
|
|
machine.wait_for_open_port(53317)
|
|
|
|
machine.wait_for_window("LocalSend", 10)
|
|
|
|
machine.succeed("netstat --listening --program --tcp | grep -P 'tcp.*53317.*localsend'")
|
2024-08-09 15:16:30 +00:00
|
|
|
machine.succeed("netstat --listening --program --udp | grep -P 'udp.*53317.*localsend'")
|
2024-05-12 22:07:22 +00:00
|
|
|
'';
|
|
|
|
}
|
|
|
|
)
|