mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 18:40:40 -05:00
ebb6c56f67
This is the last remaining feature necessary to achieve parity with the Autotools build. A few changes were made to the install locations of the tests, in order to better acomodate them in Meson: * Tests are now installed under a versioned folder (e.g. /usr/share/installed-tests/mutter-4) * The mutter-cogl.test file is now generated from an .in file, instead of a series of $(echo)s from within Makefile. Notice that those tests need very controlled environments to run correctly. Mutter installed tests, for example, will failed when running under a regular session due to D-Bus failing to acquire the ScreenCast and/or RemoteScreen names.
24 lines
597 B
Meson
24 lines
597 B
Meson
cogl_run_tests = find_program('run-tests.sh')
|
|
|
|
cdata = configuration_data()
|
|
cdata.set('HAVE_GL', have_gl.to_int())
|
|
cdata.set('HAVE_GLES2', have_gles2.to_int())
|
|
|
|
cogl_installed_tests_libexecdir = join_paths(
|
|
mutter_installed_tests_libexecdir, 'cogl', 'conform')
|
|
|
|
if have_installed_tests
|
|
install_data('run-tests.sh', install_dir: cogl_installed_tests_libexecdir)
|
|
endif
|
|
|
|
cogl_config_env = configure_file(
|
|
input: 'config.env.in',
|
|
output: 'config.env',
|
|
configuration: cdata,
|
|
install: have_installed_tests,
|
|
install_dir: cogl_installed_tests_libexecdir,
|
|
)
|
|
|
|
subdir('conform')
|
|
subdir('unit')
|