mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
tests: Use suites for test cases
They allows to filter tests better and so we can just launch tests with: meson test --suite [core|cogl|clutter] [single-test-name] https://gitlab.gnome.org/GNOME/mutter/merge_requests/442
This commit is contained in:
parent
c6d1cf4af4
commit
a934fa07b8
@ -74,7 +74,8 @@ foreach test : clutter_conform_tests
|
||||
install: false,
|
||||
)
|
||||
|
||||
test('clutter/conform/@0@'.format(test), test_executable,
|
||||
test(test, test_executable,
|
||||
suite: ['clutter', 'clutter/conform'],
|
||||
env: test_env
|
||||
)
|
||||
endforeach
|
||||
|
@ -107,7 +107,8 @@ cogl_conform_unit_tests = custom_target('cogl-tests-conform-unit-tests',
|
||||
install_dir: cogl_installed_tests_libexecdir,
|
||||
)
|
||||
|
||||
test('cogl/conform', cogl_run_tests,
|
||||
test('conform', cogl_run_tests,
|
||||
suite: ['cogl'],
|
||||
args: [
|
||||
cogl_config_env,
|
||||
libmutter_cogl_test_conformance,
|
||||
|
@ -31,7 +31,8 @@ cogl_unit_unit_tests = custom_target('cogl-tests-unit-unit-tests',
|
||||
install: false,
|
||||
)
|
||||
|
||||
test('cogl/unit', cogl_run_tests,
|
||||
test('unit', cogl_run_tests,
|
||||
suite: ['cogl'],
|
||||
args: [
|
||||
cogl_config_env,
|
||||
libmutter_cogl_test_unit,
|
||||
|
@ -125,13 +125,15 @@ foreach stacking_test: stacking_tests
|
||||
)
|
||||
endforeach
|
||||
|
||||
test('mutter/unit', unit_tests,
|
||||
test('normal', unit_tests,
|
||||
suite: ['core', 'mutter/unit'],
|
||||
env: test_env,
|
||||
is_parallel: false,
|
||||
timeout: 60,
|
||||
)
|
||||
|
||||
test('mutter/unit/headless-start', headless_start_test,
|
||||
test('headless-start', headless_start_test,
|
||||
suite: ['core', 'mutter/unit'],
|
||||
env: test_env,
|
||||
is_parallel: false,
|
||||
timeout: 60,
|
||||
|
Loading…
Reference in New Issue
Block a user