about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/ostree.nix
blob: d7ad84a1a5f005966123f810643daf975fc2ecb0 (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, lib, ... }: {
  name = "ostree";

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

  # TODO: Wrap/patch the tests directly in the package
  machine = { pkgs, ... }: {
    environment.systemPackages = with pkgs; [
      gnome-desktop-testing ostree gnupg (python3.withPackages (p: with p; [ pyyaml ]))
    ];

    environment.variables.GI_TYPELIB_PATH = lib.makeSearchPath "lib/girepository-1.0" (with pkgs; [ gtk3 pango.out ostree gdk-pixbuf atk ]); # for GJS tests
  };

  testScript = ''
    $machine->succeed("gnome-desktop-testing-runner -d ${pkgs.ostree.installedTests}/share");
  '';
})