summary refs log tree commit diff
path: root/nixos/tests/gdk-pixbuf.nix
blob: 005c5111da2bd2bcb686e282d73679893a77993b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# run installed tests
import ./make-test.nix ({ pkgs, ... }: {
  name = "gdk-pixbuf";

  meta = {
    maintainers = pkgs.gdk_pixbuf.meta.maintainers;
  };

  machine = { pkgs, ... }: {
    environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
    environment.variables.XDG_DATA_DIRS = [ "${pkgs.gdk_pixbuf.installedTests}/share" ];

    # Tests allocate a lot of memory trying to exploit a CVE
    # but qemu-system-i386 has a 2047M memory limit
    virtualisation.memorySize = if pkgs.stdenv.isi686 then 2047 else 4096;
  };

  testScript = ''
    $machine->succeed("gnome-desktop-testing-runner -t 1800"); # increase timeout to 1800s
  '';
})