about summary refs log tree commit diff
path: root/nixos/tests/libuiohook.nix
blob: 66c5033d96886aca494bea8f5a9c5116594a382d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 &")
    '';
})