1# run installed tests
2import ./make-test.nix ({ pkgs, lib, ... }: {
3 name = "ostree";
4
5 meta = {
6 maintainers = pkgs.ostree.meta.maintainers;
7 };
8
9 # TODO: Wrap/patch the tests directly in the package
10 machine = { pkgs, ... }: {
11 environment.systemPackages = with pkgs; [
12 gnome-desktop-testing ostree gnupg (python3.withPackages (p: with p; [ pyyaml ]))
13 ];
14
15 environment.variables.GI_TYPELIB_PATH = lib.makeSearchPath "lib/girepository-1.0" (with pkgs; [ gtk3 pango.out ostree gdk_pixbuf atk ]); # for GJS tests
16 };
17
18 testScript = ''
19 $machine->succeed("gnome-desktop-testing-runner -d ${pkgs.ostree.installedTests}/share");
20 '';
21})