diff options
Diffstat (limited to 'nixpkgs/nixos/tests/vengi-tools.nix')
-rw-r--r-- | nixpkgs/nixos/tests/vengi-tools.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/vengi-tools.nix b/nixpkgs/nixos/tests/vengi-tools.nix new file mode 100644 index 000000000000..fd7567991487 --- /dev/null +++ b/nixpkgs/nixos/tests/vengi-tools.nix @@ -0,0 +1,27 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "vengi-tools"; + meta = with pkgs.lib.maintainers; { + maintainers = [ fgaz ]; + }; + + nodes.machine = { config, pkgs, ... }: { + imports = [ + ./common/x11.nix + ]; + + services.xserver.enable = true; + environment.systemPackages = [ pkgs.vengi-tools ]; + }; + + enableOCR = true; + + testScript = + '' + machine.wait_for_x() + machine.execute("vengi-voxedit >&2 &") + machine.wait_for_window("voxedit") + # Let the window load fully + machine.sleep(15) + machine.screenshot("screen") + ''; +}) |