mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
81ae886dda
Use less verbose output when run-tests.sh is running only a test and we're requested for less verbose output. Also write the test name first of running it. https://gitlab.gnome.org/GNOME/mutter/merge_requests/442
44 lines
1.0 KiB
Meson
44 lines
1.0 KiB
Meson
cogl_test_unit_sources = [
|
|
'test-unit-main.c',
|
|
]
|
|
|
|
cogl_test_unit_includes = [
|
|
cogl_includepath,
|
|
cogl_test_fixtures_includepath,
|
|
]
|
|
|
|
libmutter_cogl_test_unit = executable('test-unit',
|
|
sources: cogl_test_unit_sources,
|
|
c_args: cogl_debug_c_args + [
|
|
'-DCOGL_DISABLE_DEPRECATED',
|
|
'-DCOGL_COMPILATION',
|
|
'-DTESTS_DATADIR="@0@/tests/data"'.format(cogl_srcdir),
|
|
],
|
|
include_directories: cogl_test_unit_includes,
|
|
dependencies: [
|
|
libmutter_cogl_dep,
|
|
libmutter_cogl_path_dep,
|
|
libmutter_cogl_test_fixtures_dep,
|
|
],
|
|
install: false,
|
|
)
|
|
|
|
cogl_unit_tests = run_command(
|
|
find_program('meson/find-unit-tests.sh'), cogl_srcdir, '/dev/stdout',
|
|
check: true,
|
|
).stdout().strip().split('\n')
|
|
|
|
foreach test_target: cogl_unit_tests
|
|
test_name = '-'.join(test_target.split('_'))
|
|
test(test_name, cogl_run_tests,
|
|
suite: ['cogl', 'cogl/unit'],
|
|
env: ['RUN_TESTS_QUIET=1'],
|
|
args: [
|
|
cogl_config_env,
|
|
libmutter_cogl_test_unit,
|
|
'unit_test_' + test_target
|
|
],
|
|
is_parallel: false,
|
|
)
|
|
endforeach
|