blob: 47114bcd8e881687c5b573e76de2a22790577fd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ pkgs, lib, ... }:
{
name = "libuiohook";
meta = with lib.maintainers; {
maintainers = [ anoa ];
};
nodes.client =
{ nodes, ... }:
let
user = nodes.client.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.users.users.alice;
in
''
client.wait_for_x()
client.succeed("su - alice -c ${pkgs.libuiohook.test}/share/uiohook_tests >&2 &")
'';
}
|