blob: 5ab34da35431e5b94474fe9ce7b0f63a4a8555d9 (
plain) (
blame)
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
|
{ nixpkgsPath, ... }:
{
name = "psi-test";
machine = { pkgs, ... }: {
imports = [
"${nixpkgsPath}/nixos/tests/common/user-account.nix"
"${nixpkgsPath}/nixos/tests/common/x11.nix"
];
services.xserver.displayManager.auto.enable = true;
services.xserver.displayManager.auto.user = "alice";
environment.systemPackages = [ pkgs.vuizvui.aszlig.psi ];
};
enableOCR = true;
testScript = ''
$machine->waitForX;
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->succeed('su -c "DISPLAY=:0.0 psi" - alice &');
$machine->waitForText(qr/Register new account/i);
$machine->screenshot('psi');
'';
}
|