diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-02-13 17:52:49 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2018-05-15 14:18:44 +0200 |
commit | 1c043637140514df1205830e2ac860e57ef7a23a (patch) | |
tree | 4ad49c3f16cf6f2c37cf9ccb394e985d29323ded /nixos/tests/flatpak.nix | |
parent | ec80c5e4c48df8264e5e230bb81eb55e045382dc (diff) | |
download | nixlib-1c043637140514df1205830e2ac860e57ef7a23a.tar nixlib-1c043637140514df1205830e2ac860e57ef7a23a.tar.gz nixlib-1c043637140514df1205830e2ac860e57ef7a23a.tar.bz2 nixlib-1c043637140514df1205830e2ac860e57ef7a23a.tar.lz nixlib-1c043637140514df1205830e2ac860e57ef7a23a.tar.xz nixlib-1c043637140514df1205830e2ac860e57ef7a23a.tar.zst nixlib-1c043637140514df1205830e2ac860e57ef7a23a.zip |
nixos/flatpak: add test
Diffstat (limited to 'nixos/tests/flatpak.nix')
-rw-r--r-- | nixos/tests/flatpak.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixos/tests/flatpak.nix b/nixos/tests/flatpak.nix new file mode 100644 index 000000000000..d1c7cf843147 --- /dev/null +++ b/nixos/tests/flatpak.nix @@ -0,0 +1,23 @@ +# 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"); + ''; +}) |