summaryrefslogtreecommitdiffstats
path: root/nixos/tests/veroroute.nix
blob: 0d3deb2f2831830b71aca08af0d26887b2b5afd7 (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
30
31
{ pkgs, ... }:
{
  name = "veroroute";
  meta.maintainers = with pkgs.lib.maintainers; [ nh2 ];

  enableOCR = true;

  nodes.machine =
    { ... }:
    {
      imports = [
        ./common/x11.nix
      ];

      services.xserver.enable = true;
      environment.systemPackages = [
        pkgs.veroroute
        pkgs.xdotool
      ];
    };

  testScript = ''
    start_all()
    machine.wait_for_x()

    machine.execute("veroroute >&2 &")
    machine.wait_until_succeeds("xdotool search --pid $(pidof veroroute)")
    machine.wait_for_text("File")  # menu entry renders correctly
    machine.screenshot("screen")
  '';
}