Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • W weston
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 342
    • Issues 342
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 130
    • Merge requests 130
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waylandwayland
  • weston
  • Issues
  • #327
Closed
Open
Issue created Dec 05, 2019 by Pekka Paalanen@pqMaintainer

EPIC: XWM testing

Weston has a built-in X11 window manager (XWM). Weston test suite has exactly one test touching Xwayland: a smoke test that only checks if Xwayland started.

XWM is a hard thing to develop. You have to know both the old X11 world and Weston's internals including libweston-desktop and desktop-shell. XWM is also making blocking X11 roundtrips to Xwayland, and Xwayland makes Wayland calls to Weston, so the danger of deadlocking is obvious, although mostly relying on Xwayland never making a blocking Wayland roundtrip. XWM must handle two asynchronous protocol streams simultaneously and correlate between them: Wayland and X11. The X11 window management side is full of arcane magic, forgotten specs, and races.

All that makes XWM extremely fragile, and we have no automated tests to ensure even the simplest cases work correctly, not to mention the more "interesting" ones that decades of badly written X11 apps have imposed on traditional X11 window managers.

Figure out how we could get XWM properly tested e.g. with screenshot-based tests.

I would not like to introduce a huge amount of X11 programs in the Weston repository, but then again is there any other option to exercise XWM in a controlled fashion?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking