summaryrefslogtreecommitdiffstats
path: root/nixos/tests/vengi-tools.nix
blob: 3260d5a62a28704024e1630f2197974cfee28e31 (plain)
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
27
28
29
{ 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")
  '';
}