Files
komorebi/nix/linux/tests/vm/suites/lock-sleep/test.py
T
LGUG2Z f01853ceca refactor(repo): move the KDE and macOS nix files under nix/ (pure move)
komorebi-for-kde/nix/ -> nix/linux/
komorebi-for-mac/nix/ -> nix/macos/

The nix expressions of the platforms (modules, option files, VM test suites, kwin effects,
the darwin module) sit next to the existing nix/workspace-src.nix. Renames only (252
files); the flakes that import them are replaced by one root flake later in this stack, so
nix does not evaluate at this revision.
2026-11-05 15:03:27 -08:00

23 lines
1.1 KiB
Python

# The screen being locked and unlocked in a real Plasma session, with komorebi running as the
# module's user unit. What only a real session can tell: that the lock screen is not tiled (it is a
# window of KWin's, on every desktop and in no task list), that nothing komorebi does while the
# screen is locked changes the layout, and that when the screen is unlocked komorebi looks at the
# desktop again and puts every window where its tile is, with its idea of the focus KWin's.
#
# A real suspend and resume is not tested: the QEMU guest has no way to wake from one. The signals
# komorebi waits for, logind's `PrepareForSleep` and the lock screen's `ActiveChanged`, are
# tested on private buses by `komorebi/tests/power.rs`, and the desktop it finds on waking against
# the fake by `komorebi/tests/wake.rs`.
from komorebi_vm import Checks
from komorebi_vm.core.suite import platform_only, run_suite
from komorebi_vm.platforms.kde.extras import lock_sleep as kde_lock_sleep
start_all()
machine.wait_for_unit("multi-user.target")
checks = Checks()
run_suite(checks, platform_only("kde", kde_lock_sleep.run, machine, checks, SCALE))
checks.finish()