mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
tests: Fix running tests fully uninstalled
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/118 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/206>
This commit is contained in:
parent
5364189cbc
commit
c690c8437a
1 changed files with 9 additions and 0 deletions
|
@ -117,6 +117,15 @@ if build_gir
|
|||
endif
|
||||
|
||||
if runtests.found()
|
||||
env = environment()
|
||||
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
|
||||
env.set('GST_STATE_IGNORE_ELEMENTS', '')
|
||||
env.set('CK_DEFAULT_TIMEOUT', '20')
|
||||
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'scenarios'))
|
||||
env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
|
||||
env.set('GST_VALIDATE_LOGSDIR', meson.current_build_dir() / scenario)
|
||||
env.set('GI_TYPELIB_PATH', meson.current_build_dir() / '..' / '..' / 'ges')
|
||||
|
||||
test('pythontests', runtests, args: ['--pyunittest-dir', meson.current_source_dir(), 'pyunittest', '--dump-on-failure'],
|
||||
env: env)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue