1{ lib, ... }:
2{
3 name = "breitbandmessung";
4 meta.maintainers = with lib.maintainers; [ b4dm4n ];
5
6 node.pkgsReadOnly = false;
7
8 nodes.machine =
9 { pkgs, ... }:
10 {
11 imports = [
12 ./common/user-account.nix
13 ./common/x11.nix
14 ];
15
16 # increase screen size to make the whole program visible
17 virtualisation.resolution = {
18 x = 1280;
19 y = 1024;
20 };
21
22 test-support.displayManager.auto.user = "alice";
23
24 environment.systemPackages = with pkgs; [ breitbandmessung ];
25 environment.variables.XAUTHORITY = "/home/alice/.Xauthority";
26
27 # breitbandmessung is unfree
28 nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "breitbandmessung" ];
29 };
30
31 enableOCR = true;
32
33 testScript = ''
34 machine.wait_for_x()
35 machine.execute("su - alice -c breitbandmessung >&2 &")
36 machine.wait_for_window("Breitbandmessung")
37 machine.wait_for_text("Breitbandmessung")
38 machine.wait_for_text("Datenschutz")
39 machine.screenshot("breitbandmessung")
40 '';
41}