summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorKevin Cox <kevincox@kevincox.ca>2021-11-29 17:16:44 -0500
committerGitHub <noreply@github.com>2021-11-29 17:16:44 -0500
commitb7caba7f59149b238857957f76708485700d9e9f (patch)
tree1c48cdfaf65ff06fc0d362933400a8c972d27d80 /nixos
parent2b35c41b8138b35e60df79f171fe0028104bab84 (diff)
parent324e9f686ec39ba5d4a760d957509c52039cec27 (diff)
downloadnixpkgs-b7caba7f59149b238857957f76708485700d9e9f.tar
nixpkgs-b7caba7f59149b238857957f76708485700d9e9f.tar.gz
nixpkgs-b7caba7f59149b238857957f76708485700d9e9f.tar.bz2
nixpkgs-b7caba7f59149b238857957f76708485700d9e9f.tar.lz
nixpkgs-b7caba7f59149b238857957f76708485700d9e9f.tar.xz
nixpkgs-b7caba7f59149b238857957f76708485700d9e9f.tar.zst
nixpkgs-b7caba7f59149b238857957f76708485700d9e9f.zip
Merge pull request #146902 from fgaz/vengi/init
vengi-tools: init at 0.0.14
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/vengi-tools.nix29
2 files changed, 30 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 5afe05c1b72..e2b9c868bc8 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -487,6 +487,7 @@ in
   vault-postgresql = handleTest ./vault-postgresql.nix {};
   vaultwarden = handleTest ./vaultwarden.nix {};
   vector = handleTest ./vector.nix {};
+  vengi-tools = handleTest ./vengi-tools.nix {};
   victoriametrics = handleTest ./victoriametrics.nix {};
   vikunja = handleTest ./vikunja.nix {};
   virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
diff --git a/nixos/tests/vengi-tools.nix b/nixos/tests/vengi-tools.nix
new file mode 100644
index 00000000000..6b90542887d
--- /dev/null
+++ b/nixos/tests/vengi-tools.nix
@@ -0,0 +1,29 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+  name = "vengi-tools";
+  meta = with pkgs.lib.maintainers; {
+    maintainers = [ fgaz ];
+  };
+
+  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")
+      # OCR on voxedit's window is very expensive, so we avoid wasting a try
+      # by letting the window load fully first
+      machine.sleep(15)
+      machine.wait_for_text("Palette")
+      machine.screenshot("screen")
+    '';
+})