2018-02-13 16:52:49 +00:00
|
|
|
# run installed tests
|
|
|
|
import ./make-test.nix ({ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "flatpak";
|
|
|
|
meta = {
|
|
|
|
maintainers = pkgs.flatpak.meta.maintainers;
|
|
|
|
};
|
|
|
|
|
2018-07-20 20:56:59 +00:00
|
|
|
machine = { pkgs, ... }: {
|
2018-02-13 16:52:49 +00:00
|
|
|
imports = [ ./common/x11.nix ];
|
|
|
|
services.xserver.desktopManager.gnome3.enable = true; # TODO: figure out minimal environment where the tests work
|
2018-09-01 23:57:20 +00:00
|
|
|
# common/x11.nix enables the auto display manager (lightdm)
|
|
|
|
services.xserver.displayManager.gdm.enable = false;
|
2018-07-15 17:20:20 +00:00
|
|
|
environment.gnome3.excludePackages = pkgs.gnome3.optionalPackages;
|
2018-02-13 16:52:49 +00:00
|
|
|
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");
|
|
|
|
'';
|
|
|
|
})
|