nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 20 lines 520 B view raw
1{ ... }: 2{ 3 name = "localsend"; 4 5 nodes.machine = 6 { ... }: 7 { 8 imports = [ ./common/x11.nix ]; 9 programs.localsend.enable = true; 10 }; 11 12 testScript = '' 13 machine.wait_for_x() 14 machine.succeed("localsend_app >&2 &") 15 machine.wait_for_open_port(53317) 16 machine.wait_for_window("LocalSend", 10) 17 machine.succeed("netstat --listening --program --tcp | grep -P 'tcp.*53317.*localsend'") 18 machine.succeed("netstat --listening --program --udp | grep -P 'udp.*53317.*localsend'") 19 ''; 20}