nixos/xdg-desktop-portal: add test

Changed files
+18
nixos
+1
nixos/release.nix
···
tests.virtualbox = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/virtualbox.nix {};
tests.wordpress = callTest tests/wordpress.nix {};
tests.xautolock = callTest tests/xautolock.nix {};
+
tests.xdg-desktop-portal = callTest tests/xdg-desktop-portal.nix {};
tests.xfce = callTest tests/xfce.nix {};
tests.xmonad = callTest tests/xmonad.nix {};
tests.xrdp = callTest tests/xrdp.nix {};
+17
nixos/tests/xdg-desktop-portal.nix
···
+
# run installed tests
+
import ./make-test.nix ({ pkgs, ... }:
+
+
{
+
name = "xdg-desktop-portal";
+
meta = {
+
maintainers = pkgs.xdg-desktop-portal.meta.maintainers;
+
};
+
+
machine = { config, pkgs, ... }: {
+
environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
+
};
+
+
testScript = ''
+
$machine->succeed("gnome-desktop-testing-runner -d '${pkgs.xdg-desktop-portal.installedTests}/share'");
+
'';
+
})