mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
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.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
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 New Issue
Block a user