tests: Add single stacking tests with suite

Don't launch the stacking tests in one single shot, to allow better debugging
and being able to launch just one single test using meson test.

Those tests can now be all launched with:
  meson test --suite stacking [single-test-name]

https://gitlab.gnome.org/GNOME/mutter/merge_requests/442
This commit is contained in:
Marco Trevisan (Treviño) 2018-11-14 02:36:35 +01:00 committed by Marco Trevisan
parent 8dbe4210b4
commit c6d1cf4af4

View File

@ -101,26 +101,29 @@ headless_start_test = executable('mutter-headless-start-test',
install_dir: mutter_installed_tests_libexecdir, install_dir: mutter_installed_tests_libexecdir,
) )
stacking_tests = files([ stacking_tests = [
'stacking/basic-x11.metatest', 'basic-x11',
'stacking/basic-wayland.metatest', 'basic-wayland',
'stacking/client-side-decorated.metatest', 'client-side-decorated',
'stacking/closed-transient.metatest', 'closed-transient',
'stacking/minimized.metatest', 'minimized',
'stacking/mixed-windows.metatest', 'mixed-windows',
'stacking/set-parent.metatest', 'set-parent',
'stacking/override-redirect.metatest', 'override-redirect',
'stacking/set-parent-exported.metatest', 'set-parent-exported',
]) ]
test('mutter/stacking', test_runner, foreach stacking_test: stacking_tests
env: test_env, test(stacking_test, test_runner,
args: [ suite: ['core', 'mutter/stacking'],
stacking_tests, env: test_env,
], args: [
is_parallel: false, files(join_paths('stacking', stacking_test + '.metatest')),
timeout: 60, ],
) is_parallel: false,
timeout: 60,
)
endforeach
test('mutter/unit', unit_tests, test('mutter/unit', unit_tests,
env: test_env, env: test_env,