2021-02-22 21:28:39 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} :
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "keepassxc";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ turion ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine = { ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./common/user-account.nix
|
|
|
|
./common/x11.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
test-support.displayManager.auto.user = "alice";
|
|
|
|
environment.systemPackages = [ pkgs.keepassxc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript = { nodes, ... }: ''
|
|
|
|
start_all()
|
|
|
|
machine.wait_for_x()
|
|
|
|
|
|
|
|
# start KeePassXC window
|
2021-12-06 16:07:01 +00:00
|
|
|
machine.execute("su - alice -c keepassxc >&2 &")
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
machine.wait_for_text("KeePassXC ${pkgs.keepassxc.version}")
|
|
|
|
machine.screenshot("KeePassXC")
|
|
|
|
'';
|
|
|
|
})
|