Skip to content

tests: Give mutter-test-runner the RUNPATH to find Clutter

Simon McVittie requested to merge wip/smcv/rpath into main

Until recently, mutter-test-runner called into libraries that indirectly depend on (mutter's fork of) Clutter, but did not actually call into Clutter itself. Commit 1bf70334 "tests/runner: Make test runner use the headless backend" gave it a direct call into Clutter, which means the runtime linker will fail unless the executable's RUNPATH is sufficient to find Clutter.

For future-proofing, do the same for the other test executables.

Resolves: #2389 (closed)


This is a cherry-pick of what I actually tested, which was the GNOME 42 branch, !2580 (merged) (we don't have 43 in Debian yet, and for various release-management reasons we need to get mutter 42 passing tests again before we can fully integrate GNOME 43). I checked src/tests/meson.build and there don't seem to be any new executable(), so this still seems correct for main.

Edited by Simon McVittie

Merge request reports