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