diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-04-25 18:35:33 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2018-04-25 18:37:44 +0200 |
commit | ad589329e71cde816a7ec8f2779ff368ce51a622 (patch) | |
tree | 76dd22128d29a3ebfc4f137413314e16c2655535 | |
parent | 70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad (diff) | |
download | nixlib-ad589329e71cde816a7ec8f2779ff368ce51a622.tar nixlib-ad589329e71cde816a7ec8f2779ff368ce51a622.tar.gz nixlib-ad589329e71cde816a7ec8f2779ff368ce51a622.tar.bz2 nixlib-ad589329e71cde816a7ec8f2779ff368ce51a622.tar.lz nixlib-ad589329e71cde816a7ec8f2779ff368ce51a622.tar.xz nixlib-ad589329e71cde816a7ec8f2779ff368ce51a622.tar.zst nixlib-ad589329e71cde816a7ec8f2779ff368ce51a622.zip |
nixos/release.nix: add tests.gdk-pixbuf
-rw-r--r-- | nixos/release.nix | 1 | ||||
-rw-r--r-- | nixos/tests/gdk-pixbuf.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix index 5d3c3de08dac..a54443f92cf1 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -285,6 +285,7 @@ in rec { tests.firewall = callTest tests/firewall.nix {}; tests.fleet = callTestOnMatchingSystems ["x86_64-linux"] tests/fleet.nix {}; tests.fwupd = callTest tests/fwupd.nix {}; + tests.gdk-pixbuf = callTest tests/gdk-pixbuf.nix {}; #tests.gitlab = callTest tests/gitlab.nix {}; tests.gitolite = callTest tests/gitolite.nix {}; tests.gjs = callTest tests/gjs.nix {}; diff --git a/nixos/tests/gdk-pixbuf.nix b/nixos/tests/gdk-pixbuf.nix new file mode 100644 index 000000000000..b20f61b5ffe2 --- /dev/null +++ b/nixos/tests/gdk-pixbuf.nix @@ -0,0 +1,19 @@ +# 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" ]; + + virtualisation.memorySize = 4096; # Tests allocate a lot of memory trying to exploit a CVE + }; + + testScript = '' + $machine->succeed("gnome-desktop-testing-runner"); + ''; +}) |