diff options
author | Fabian Möller <fabianm88@gmail.com> | 2022-01-26 14:03:05 +0100 |
---|---|---|
committer | Fabian Möller <fabianm88@gmail.com> | 2022-01-27 13:45:51 +0100 |
commit | 487aa0781d2151e5be83f0f39f73c3941ba24028 (patch) | |
tree | 0e3ebde90b4c0fda398dc1efadc07695f5df5cec /nixos/tests/breitbandmessung.nix | |
parent | ffce342b55813f7324642940600ef68776325a40 (diff) |
breitbandmessung: init at 3.1.0
Diffstat (limited to 'nixos/tests/breitbandmessung.nix')
-rw-r--r-- | nixos/tests/breitbandmessung.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixos/tests/breitbandmessung.nix b/nixos/tests/breitbandmessung.nix new file mode 100644 index 0000000000000..0ad82d45331d0 --- /dev/null +++ b/nixos/tests/breitbandmessung.nix @@ -0,0 +1,32 @@ +import ./make-test-python.nix ({ lib, ... }: { + name = "breitbandmessung"; + meta.maintainers = with lib.maintainers; [ b4dm4n ]; + + machine = { pkgs, ... }: { + imports = [ + ./common/user-account.nix + ./common/x11.nix + ]; + + test-support.displayManager.auto.user = "alice"; + + environment.systemPackages = with pkgs; [ breitbandmessung ]; + environment.variables.XAUTHORITY = "/home/alice/.Xauthority"; + + # breitbandmessung is unfree + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "breitbandmessung" ]; + }; + + enableOCR = true; + + testScript = '' + machine.wait_for_x() + # increase screen size to make the whole program visible + machine.succeed("xrandr --output Virtual-1 --mode 1280x1024") + machine.execute("su - alice -c breitbandmessung >&2 &") + machine.wait_for_window("Breitbandmessung") + machine.wait_for_text("Breitbandmessung") + machine.wait_for_text("Datenschutz") + machine.screenshot("breitbandmessung") + ''; +}) |