nixos/xdg-desktop-portal: add test
This commit is contained in:
parent
1c04363714
commit
21ff482f7d
|
@ -399,6 +399,7 @@ in rec {
|
||||||
tests.virtualbox = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/virtualbox.nix {};
|
tests.virtualbox = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/virtualbox.nix {};
|
||||||
tests.wordpress = callTest tests/wordpress.nix {};
|
tests.wordpress = callTest tests/wordpress.nix {};
|
||||||
tests.xautolock = callTest tests/xautolock.nix {};
|
tests.xautolock = callTest tests/xautolock.nix {};
|
||||||
|
tests.xdg-desktop-portal = callTest tests/xdg-desktop-portal.nix {};
|
||||||
tests.xfce = callTest tests/xfce.nix {};
|
tests.xfce = callTest tests/xfce.nix {};
|
||||||
tests.xmonad = callTest tests/xmonad.nix {};
|
tests.xmonad = callTest tests/xmonad.nix {};
|
||||||
tests.xrdp = callTest tests/xrdp.nix {};
|
tests.xrdp = callTest tests/xrdp.nix {};
|
||||||
|
|
17
nixos/tests/xdg-desktop-portal.nix
Normal file
17
nixos/tests/xdg-desktop-portal.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# 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'");
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Reference in a new issue