diff options
author | Manuel Bärenz <programming@manuelbaerenz.de> | 2021-02-02 12:35:46 +0100 |
---|---|---|
committer | Manuel Bärenz <programming@manuelbaerenz.de> | 2021-02-08 15:39:37 +0100 |
commit | 6ee5348b5531d8621130686e4e4060ffe3ab009f (patch) | |
tree | 4dbf9faf5a1868687a4a6dccf4d696007a6b274f /nixos/tests/keepassxc.nix | |
parent | 3ed5570514429b1d32c59dc4a82e74a249d8818a (diff) |
nixos/tests: add keepassxc
Test whether KeePassXC launches correctly.
Diffstat (limited to 'nixos/tests/keepassxc.nix')
-rw-r--r-- | nixos/tests/keepassxc.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixos/tests/keepassxc.nix b/nixos/tests/keepassxc.nix new file mode 100644 index 0000000000000..98902187f6ac3 --- /dev/null +++ b/nixos/tests/keepassxc.nix @@ -0,0 +1,34 @@ +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 + machine.execute("su - alice -c keepassxc &") + + machine.wait_for_text("KeePassXC ${pkgs.keepassxc.version}") + machine.screenshot("KeePassXC") + ''; +}) |