mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 20:30:11 +00:00
be8e203edc
These needed some updates and workarounds. They are now part of the testsuite and can be run like this: meson test -Cbuild --suite headless
20 lines
539 B
Meson
20 lines
539 B
Meson
env = environment()
|
|
env.prepend('GI_TYPELIB_PATH',
|
|
project_build_root / 'gtk',
|
|
gi_dep.get_variable(pkgconfig: 'typelibdir'),
|
|
)
|
|
env.prepend('LD_PRELOAD', project_build_root / 'gtk' / 'libgtk-4.so')
|
|
env.prepend('MESON_CURRENT_SOURCE_DIR', meson.current_source_dir())
|
|
|
|
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,
|
|
)
|