mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
tests: Break up stacking installed-tests into more, smaller tests
Running each stacking test as a separate installed-test is analogous to
what was done for build-time tests in c6d1cf4a
(!442) and should make it
easier to track regressions, by being able to see whether a regression
is specific to one .metatest script or applies to more than one.
Signed-off-by: Simon McVittie <smcv@debian.org>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2773>
This commit is contained in:
parent
d14667c4bc
commit
ca70c1dfb5
@ -86,19 +86,6 @@ subdir('wayland-test-clients')
|
||||
|
||||
if have_installed_tests
|
||||
stacking_files_datadir = join_paths(pkgdatadir, 'tests')
|
||||
|
||||
installed_tests_cdata = configuration_data()
|
||||
installed_tests_cdata.set('libexecdir', libexecdir)
|
||||
installed_tests_cdata.set('apiversion', libmutter_api_version)
|
||||
|
||||
configure_file(
|
||||
input: 'mutter-all.test.in',
|
||||
output: 'mutter-all.test',
|
||||
configuration: installed_tests_cdata,
|
||||
install: true,
|
||||
install_dir: mutter_installed_tests_datadir,
|
||||
)
|
||||
|
||||
install_subdir('stacking', install_dir: stacking_files_datadir)
|
||||
endif
|
||||
|
||||
@ -471,6 +458,22 @@ foreach stacking_test: stacking_tests
|
||||
is_parallel: false,
|
||||
timeout: 60,
|
||||
)
|
||||
|
||||
if have_installed_tests
|
||||
installed_tests_cdata = configuration_data()
|
||||
installed_tests_cdata.set('apiversion', libmutter_api_version)
|
||||
installed_tests_cdata.set('libexecdir', libexecdir)
|
||||
installed_tests_cdata.set('tests_datadir', tests_datadir)
|
||||
installed_tests_cdata.set('stacking_test', stacking_test)
|
||||
|
||||
configure_file(
|
||||
input: 'stacking.test.in',
|
||||
output: stacking_test + '.test',
|
||||
configuration: installed_tests_cdata,
|
||||
install: true,
|
||||
install_dir: mutter_installed_tests_datadir,
|
||||
)
|
||||
endif
|
||||
endforeach
|
||||
|
||||
if have_kvm_tests or have_tty_tests
|
||||
|
@ -1,9 +0,0 @@
|
||||
[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
|
9
src/tests/stacking.test.in
Normal file
9
src/tests/stacking.test.in
Normal file
@ -0,0 +1,9 @@
|
||||
[Test]
|
||||
Description=Mutter stacking test: @stacking_test@
|
||||
# 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@-@stacking_test@-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 @tests_datadir@/stacking/@stacking_test@.metatest'
|
||||
Type=session
|
||||
Output=TAP
|
Loading…
Reference in New Issue
Block a user