mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
7e9bd2dae1
The switch to lightdm as default display manager in #30890 broke eval of the flatpak test. Since the test uses the auto display manager (lightdm), gdm must now be explicitly disabled.
27 lines
897 B
Nix
27 lines
897 B
Nix
# run installed tests
|
|
import ./make-test.nix ({ pkgs, ... }:
|
|
|
|
{
|
|
name = "flatpak";
|
|
meta = {
|
|
maintainers = pkgs.flatpak.meta.maintainers;
|
|
};
|
|
|
|
machine = { pkgs, ... }: {
|
|
imports = [ ./common/x11.nix ];
|
|
services.xserver.desktopManager.gnome3.enable = true; # TODO: figure out minimal environment where the tests work
|
|
# common/x11.nix enables the auto display manager (lightdm)
|
|
services.xserver.displayManager.gdm.enable = false;
|
|
environment.gnome3.excludePackages = pkgs.gnome3.optionalPackages;
|
|
services.flatpak.enable = true;
|
|
environment.systemPackages = with pkgs; [ gnupg gnome-desktop-testing ostree python2 ];
|
|
virtualisation.memorySize = 2047;
|
|
virtualisation.diskSize = 1024;
|
|
};
|
|
|
|
testScript = ''
|
|
$machine->waitForX();
|
|
$machine->succeed("gnome-desktop-testing-runner -d '${pkgs.flatpak.installedTests}/share' --timeout 3600");
|
|
'';
|
|
})
|