In multiple NixOS tests, nixpkgs.config.allowUnfree or nixpkgs.config.allowUnfreePredicate was set. This leads to Hydra building and redistributing packages with a unfree license. This is a quite huge legal problem. This changes removes these use cases.
39 lines
917 B
Nix
39 lines
917 B
Nix
{ lib, ... }:
|
|
{
|
|
name = "breitbandmessung";
|
|
meta.maintainers = with lib.maintainers; [ b4dm4n ];
|
|
|
|
node.pkgsReadOnly = false;
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
imports = [
|
|
./common/user-account.nix
|
|
./common/x11.nix
|
|
];
|
|
|
|
# increase screen size to make the whole program visible
|
|
virtualisation.resolution = {
|
|
x = 1280;
|
|
y = 1024;
|
|
};
|
|
|
|
test-support.displayManager.auto.user = "alice";
|
|
|
|
environment.systemPackages = with pkgs; [ breitbandmessung ];
|
|
environment.variables.XAUTHORITY = "/home/alice/.Xauthority";
|
|
};
|
|
|
|
enableOCR = true;
|
|
|
|
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")
|
|
'';
|
|
}
|