nixpkgs/nixos/tests/breitbandmessung.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1 KiB
Nix
Raw Permalink Normal View History

{ lib, ... }:
{
name = "breitbandmessung";
meta.maintainers = with lib.maintainers; [ b4dm4n ];
2022-01-26 14:03:05 +01:00
2025-05-28 11:47:24 +08:00
node.pkgsReadOnly = false;
nodes.machine =
{ pkgs, ... }:
{
imports = [
./common/user-account.nix
./common/x11.nix
];
2022-01-26 14:03:05 +01:00
# increase screen size to make the whole program visible
virtualisation.resolution = {
x = 1280;
y = 1024;
};
test-support.displayManager.auto.user = "alice";
2022-01-26 14:03:05 +01:00
environment.systemPackages = with pkgs; [ breitbandmessung ];
environment.variables.XAUTHORITY = "/home/alice/.Xauthority";
2022-01-26 14:03:05 +01:00
# breitbandmessung is unfree
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "breitbandmessung" ];
};
2022-01-26 14:03:05 +01:00
enableOCR = true;
2022-01-26 14:03:05 +01:00
testScript = ''
machine.wait_for_x()
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")
'';
}