diff options
author | Bobby Rong <rjl931189261@126.com> | 2024-03-12 21:26:52 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-14 23:34:12 +0800 |
commit | abd9d0bec5f2e8229f1d48592669beb0b442593d (patch) | |
tree | e2acd318fc53e8ec6d9c2509e72c55d89011fb4d /nixos/tests/mate.nix | |
parent | 14877de6ad51b3f9ebb46ee431c870af233353cd (diff) |
nixosTests.mate: Add trivial tests for MATE 1.28 changes
Diffstat (limited to 'nixos/tests/mate.nix')
-rw-r--r-- | nixos/tests/mate.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/tests/mate.nix b/nixos/tests/mate.nix index 48582e18d520c..1252ec43cf3d5 100644 --- a/nixos/tests/mate.nix +++ b/nixos/tests/mate.nix @@ -54,6 +54,15 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { machine.wait_for_text('(Applications|Places|System)') machine.wait_for_text('(Computer|Home|Trash)') + with subtest("Check if various environment variables are set"): + machine.succeed("xargs --null --max-args=1 echo < /proc/$(pgrep -xf marco)/environ | grep 'XDG_CURRENT_DESKTOP' | grep 'MATE'") + # From mate-panel-with-applets packaging + machine.succeed("xargs --null --max-args=1 echo < /proc/$(pgrep -xf mate-panel)/environ | grep 'MATE_PANEL_APPLETS_DIR' | grep '${pkgs.mate.mate-panel-with-applets.pname}'") + + with subtest("Check if applets are built with in-process support"): + # This is needed for Wayland support + machine.fail("pgrep -fa clock-applet") + with subtest("Lock the screen"): machine.wait_until_succeeds("su - ${user.name} -c '${env} mate-screensaver-command -q' | grep 'The screensaver is inactive'") machine.succeed("su - ${user.name} -c '${env} mate-screensaver-command -l >&2 &'") |