mirror of
https://github.com/brl/mutter.git
synced 2025-03-21 10:43:53 +00:00

The mutter tests require to run in a valid environment where a display is available and a session bus, however currently we rely on the current environment, and this may lead to unexpected behaviors. So let's just ensure that a display is running through xvfb-run and that a session bus is running in a temporary directory. We also ensure to use the gsettings memory backend, even because by setting TestEnvironment we ensure that no other env variable is leaked to the test. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1876>
7 lines
319 B
Plaintext
7 lines
319 B
Plaintext
[Test]
|
|
Description=All Mutter tests
|
|
TestEnvironment=GSETTINGS_BACKEND=memory;
|
|
Exec=sh -c 'env XDG_RUNTIME_DIR="$(mktemp -d -t mutter-@apiversion@-all-tests-XXXXXX)" dbus-run-session -- xvfb-run -a -s "+iglx -noreset" -- @libexecdir@/installed-tests/mutter-@apiversion@/mutter-test-runner --all'
|
|
Type=session
|
|
Output=TAP
|