mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
24 lines
714 B
Nix
24 lines
714 B
Nix
# run installed tests
|
|
import ./make-test.nix ({ pkgs, ... }:
|
|
|
|
{
|
|
name = "flatpak";
|
|
meta = {
|
|
maintainers = pkgs.flatpak.meta.maintainers;
|
|
};
|
|
|
|
machine = { config, pkgs, ... }: {
|
|
imports = [ ./common/x11.nix ];
|
|
services.xserver.desktopManager.gnome3.enable = true; # TODO: figure out minimal environment where the tests work
|
|
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");
|
|
'';
|
|
})
|