Skip to content

Tests: Introduce a MutterTestCase#2760

Open
leolost2605 wants to merge 1 commit intomainfrom
leolost/mutter-test-case
Open

Tests: Introduce a MutterTestCase#2760
leolost2605 wants to merge 1 commit intomainfrom
leolost/mutter-test-case

Conversation

@leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Feb 10, 2026

We need this for any tests that need a clutter.actor because to construct one it needs a context setup.

@leolost2605 leolost2605 force-pushed the leolost/mutter-test-case branch 10 times, most recently from 98821a6 to 05000ed Compare February 12, 2026 17:58
@leolost2605 leolost2605 force-pushed the leolost/mutter-test-case branch from 05000ed to 3ea7c36 Compare March 24, 2026 18:03
@leolost2605 leolost2605 force-pushed the leolost/mutter-test-case branch from 3ea7c36 to b0911a8 Compare March 24, 2026 18:08
@leolost2605
Copy link
Member Author

Unfortunately we need quite a setup in CI to run tests requiring a mutter context which I don't have the knowledge to do right now. However we can still run the tests locally so ig for now that might be better than nothing? I introduced a new "mutter" suite (any better name suggestion?) for the tests that need the mutter context to be set up (any tests that want a clutter actor) and exclude it from CI.

The main blockers I found for CI:

  • we need a user runtime dir
  • we need a certain dbus interface to be available but I forgot what it was
  • probably more (the gnome shell CI setup file is really long)

If someone has ideas how to get that up and running I'd be happy to hear them :)

@leolost2605 leolost2605 marked this pull request as ready for review March 24, 2026 18:11
@leolost2605 leolost2605 requested a review from a team March 24, 2026 18:11
@leolost2605
Copy link
Member Author

Note: To run the tests locally you have to be a user (no sudo) and there can't be a mutter instance already running on the same dubs. So you can either run it from the tty or via dbus-run-session meson test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant