summaryrefslogtreecommitdiffstats
path: root/nixos/tests/oku.nix
blob: c63b343eab4c8cdaf5f3a858722bb8bda62c83fa (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
{
  lib,
  pkgs,
  ...
}:
{
  name = "oku";

  meta.maintainers = with lib.maintainers; [ ethancedwards8 ];

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

    environment.systemPackages = with pkgs; [ oku ];
  };

  enableOCR = true;

  testScript = ''
    machine.wait_for_x()

    with subtest("Wait until Oku has finished loading the Valgrind docs page"):
      machine.execute("xterm -e 'oku -n file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' >&2 &");
      machine.wait_for_window("oku")
  '';

}