at 25.11-pre 761 B view raw
1import ./make-test-python.nix ( 2 { pkgs, lib, ... }: 3 { 4 name = "libuiohook"; 5 meta = with lib.maintainers; { 6 maintainers = [ anoa ]; 7 }; 8 9 nodes.client = 10 { nodes, ... }: 11 let 12 user = nodes.client.config.users.users.alice; 13 in 14 { 15 imports = [ 16 ./common/user-account.nix 17 ./common/x11.nix 18 ]; 19 20 environment.systemPackages = [ pkgs.libuiohook.test ]; 21 22 test-support.displayManager.auto.user = user.name; 23 }; 24 25 testScript = 26 { nodes, ... }: 27 let 28 user = nodes.client.config.users.users.alice; 29 in 30 '' 31 client.wait_for_x() 32 client.succeed("su - alice -c ${pkgs.libuiohook.test}/share/uiohook_tests >&2 &") 33 ''; 34 } 35)