Documentation
¶
Overview ¶
Package swaytest runs a private headless sway for tests, so Wayland clients connect to it instead of the developer's session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Msg ¶
Msg runs swaymsg with args against the sway Start ran for this test (its IPC socket in XDG_RUNTIME_DIR), failing the test when sway refuses the command, and returns its output.
func Start ¶
Start runs a private headless sway rendering with pixman, env overriding its environment (WLR_RENDERER=vulkan, a render node), and points WAYLAND_DISPLAY and XDG_RUNTIME_DIR at it for the test. It gets a private session bus: without one, nixpkgs' wrapper runs it under dbus-run-session, whose process is not sway's. Its log is shown when it fails to start. A host without sway skips the test.
Types ¶
This section is empty.