mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 08:24:09 +00:00
54 lines
1.2 KiB
Meson
54 lines
1.2 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: [
|
|
cogl_deps,
|
|
libmutter_cogl_dep,
|
|
libmutter_cogl_path_dep,
|
|
libmutter_cogl_test_fixtures_dep,
|
|
],
|
|
install: false,
|
|
)
|
|
|
|
find_unit_tests = find_program('meson/find-unit-tests.sh')
|
|
cogl_unit_unit_tests = custom_target('cogl-tests-unit-unit-tests',
|
|
output: 'unit-tests',
|
|
input: libmutter_cogl,
|
|
command: [find_unit_tests, '@INPUT@', '@OUTPUT@'],
|
|
install: false,
|
|
)
|
|
|
|
cogl_unit_test_args = [
|
|
cogl_config_env,
|
|
libmutter_cogl_test_unit,
|
|
cogl_unit_unit_tests
|
|
]
|
|
test('unit', cogl_run_tests,
|
|
suite: ['cogl'],
|
|
args: cogl_unit_test_args,
|
|
is_parallel: false,
|
|
)
|
|
|
|
if have_headless_tests
|
|
test('unit', xvfb,
|
|
suite: ['cogl-headless', 'headless'],
|
|
args: [ cogl_run_tests.path() ] + cogl_unit_test_args,
|
|
is_parallel: false,
|
|
timeout: 90,
|
|
)
|
|
endif
|