2018-04-25 17:35:33 +01:00
|
|
|
# run installed tests
|
|
|
|
import ./make-test.nix ({ pkgs, ... }: {
|
|
|
|
name = "gdk-pixbuf";
|
|
|
|
|
|
|
|
meta = {
|
2019-05-22 12:03:39 +01:00
|
|
|
maintainers = pkgs.gdk-pixbuf.meta.maintainers;
|
2018-04-25 17:35:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
machine = { pkgs, ... }: {
|
|
|
|
environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
|
2019-05-22 12:03:39 +01:00
|
|
|
environment.variables.XDG_DATA_DIRS = [ "${pkgs.gdk-pixbuf.installedTests}/share" ];
|
2018-04-25 17:35:33 +01:00
|
|
|
|
2018-09-20 20:29:37 +01:00
|
|
|
# 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;
|
2018-04-25 17:35:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2018-09-20 20:29:37 +01:00
|
|
|
$machine->succeed("gnome-desktop-testing-runner -t 1800"); # increase timeout to 1800s
|
2018-04-25 17:35:33 +01:00
|
|
|
'';
|
|
|
|
})
|