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