mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
a5294ce55f
This was barely used, and doesn't represent the way we want to do 2D rendering. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1126
43 lines
1013 B
Meson
43 lines
1013 B
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_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
|