diff options
Diffstat (limited to 'nixos/tests/localsend.nix')
-rw-r--r-- | nixos/tests/localsend.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/localsend.nix b/nixos/tests/localsend.nix new file mode 100644 index 0000000000000..8c0a6ac681900 --- /dev/null +++ b/nixos/tests/localsend.nix @@ -0,0 +1,21 @@ +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'") + ''; + } +) |