mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 20:01:00 -05:00
b1cc591ef5
The D-Bus runner used by tests, including installed tests, is made to be reusable from GNOME Shell. To do this, install it and the templates in the pkgdatadir (e.g. /usr/share/mutter-APIVERSION/tests/), generate a custom runner for the installed tests that uses the installed script and templates, and change the non-installed original runner to use the non-installed templates. The end goal is to reuse the D-Bus session runner and templates used for mutter when test running GNOME Shell. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1354>
10 lines
587 B
Plaintext
10 lines
587 B
Plaintext
[Test]
|
|
Description=All Mutter tests
|
|
# Can't use TestEnvironment for GSETTINGS_BACKEND=memory until there's
|
|
# a solution for
|
|
# https://gitlab.gnome.org/GNOME/gnome-desktop-testing/-/issues/1,
|
|
# and anyway that wouldn't be sufficient to handle XDG_RUNTIME_DIR
|
|
Exec=sh -ec 'env GSETTINGS_BACKEND=memory XDG_RUNTIME_DIR="$(mktemp -d -t mutter-@apiversion@-all-tests-XXXXXX)" @libexecdir@/installed-tests/mutter-@apiversion@/mutter-installed-dbus-session.py xvfb-run -a -s "+iglx -noreset" -- @libexecdir@/installed-tests/mutter-@apiversion@/mutter-test-runner --all'
|
|
Type=session
|
|
Output=TAP
|