nixpkgs-suyu/nixos/tests/gjs.nix

20 lines
472 B
Nix
Raw Normal View History

2018-02-14 22:19:56 +01:00
# run installed tests
import ./make-test.nix ({ pkgs, ... }: {
name = "gjs";
meta = {
2019-11-05 00:38:42 +01:00
maintainers = pkgs.gjs.meta.maintainers;
2018-02-14 22:19:56 +01:00
};
machine = { pkgs, ... }: {
imports = [ ./common/x11.nix ];
environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
2019-11-05 00:38:42 +01:00
environment.variables.XDG_DATA_DIRS = [ "${pkgs.gjs.installedTests}/share" ];
2018-02-14 22:19:56 +01:00
};
testScript = ''
$machine->waitForX;
$machine->succeed("gnome-desktop-testing-runner");
'';
})