gtk/testsuite/headless/meson.build
René de Hesselle a48a2a3dc9 ci: Build testsuite for macOS
To make it work on macOS, do not add typelibdir to GI_TYPELIB_PATH.
While this change affects all the other jobs as well, it appears to
be of no consequence.
2024-02-17 14:31:51 +01:00

23 lines
688 B
Meson

env = environment()
env.prepend('GI_TYPELIB_PATH',
project_build_root / 'gtk',
)
env.prepend('LD_PRELOAD', project_build_root / 'gtk' / 'libgtk-4.so')
env.prepend('MESON_CURRENT_SOURCE_DIR', meson.current_source_dir())
env.prepend('MESON_CURRENT_BUILD_DIR', meson.current_build_dir())
# asan does not work with our use of LD_PRELOAD for these tests
if get_option('b_sanitize') != 'address'
test('monitor',
find_program('run-headless-monitor-tests.sh', dirs: meson.current_source_dir()),
suite: ['headless'],
env: env,
)
test('input',
find_program('run-headless-input-tests.sh', dirs: meson.current_source_dir()),
suite: ['headless'],
env: env,
)
endif