about summary refs log tree commit diff
path: root/nixos/tests/libuiohook.nix
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-07-15 21:00:28 +0100
committerWinter <winter@winter.cafe>2022-07-17 16:21:25 -0400
commit4f82bcc8225467540bba162db548f4d19ead1204 (patch)
treed4a9fbb42e7426248c33e1daa20bca2ca5b42fa6 /nixos/tests/libuiohook.nix
parent28778e05a0e00ec7f6a0efb80f988c197df86943 (diff)
libuiohook: init at 1.2.2
Diffstat (limited to 'nixos/tests/libuiohook.nix')
-rw-r--r--nixos/tests/libuiohook.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/libuiohook.nix b/nixos/tests/libuiohook.nix
new file mode 100644
index 0000000000000..66c5033d96886
--- /dev/null
+++ b/nixos/tests/libuiohook.nix
@@ -0,0 +1,21 @@
+import ./make-test-python.nix ({ pkgs, lib, ... }: {
+  name = "libuiohook";
+  meta = with lib.maintainers; { maintainers = [ anoa ]; };
+
+  nodes.client = { nodes, ... }:
+      let user = nodes.client.config.users.users.alice;
+      in {
+        imports = [ ./common/user-account.nix ./common/x11.nix ];
+
+        environment.systemPackages = [ pkgs.libuiohook.test ];
+
+        test-support.displayManager.auto.user = user.name;
+      };
+
+  testScript = { nodes, ... }:
+    let user = nodes.client.config.users.users.alice;
+    in ''
+      client.wait_for_x()
+      client.succeed("su - alice -c ${pkgs.libuiohook.test}/share/uiohook_tests >&2 &")
+    '';
+})