depot/third_party/nixpkgs/nixos/tests/libuiohook.nix
Default email c6ca5b8f13 Project import generated by Copybara.
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
2022-07-18 18:21:45 +02:00

21 lines
657 B
Nix

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 &")
'';
})