summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2022-01-26 14:03:05 +0100
committerFabian Möller <fabianm88@gmail.com>2022-01-27 13:45:51 +0100
commit487aa0781d2151e5be83f0f39f73c3941ba24028 (patch)
tree0e3ebde90b4c0fda398dc1efadc07695f5df5cec /nixos/tests
parentffce342b55813f7324642940600ef68776325a40 (diff)
downloadnixpkgs-487aa0781d2151e5be83f0f39f73c3941ba24028.tar
nixpkgs-487aa0781d2151e5be83f0f39f73c3941ba24028.tar.gz
nixpkgs-487aa0781d2151e5be83f0f39f73c3941ba24028.tar.bz2
nixpkgs-487aa0781d2151e5be83f0f39f73c3941ba24028.tar.lz
nixpkgs-487aa0781d2151e5be83f0f39f73c3941ba24028.tar.xz
nixpkgs-487aa0781d2151e5be83f0f39f73c3941ba24028.tar.zst
nixpkgs-487aa0781d2151e5be83f0f39f73c3941ba24028.zip
breitbandmessung: init at 3.1.0
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/breitbandmessung.nix32
2 files changed, 33 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 62bc8acef60..44015e1e4b7 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -55,6 +55,7 @@ in
   borgbackup = handleTest ./borgbackup.nix {};
   botamusique = handleTest ./botamusique.nix {};
   bpf = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bpf.nix {};
+  breitbandmessung = handleTest ./breitbandmessung.nix {};
   brscan5 = handleTest ./brscan5.nix {};
   btrbk = handleTest ./btrbk.nix {};
   buildbot = handleTest ./buildbot.nix {};
diff --git a/nixos/tests/breitbandmessung.nix b/nixos/tests/breitbandmessung.nix
new file mode 100644
index 00000000000..0ad82d45331
--- /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")
+  '';
+})