summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-08-20 21:09:31 -0400
committerThibault Saunier <tsaunier@igalia.com>2020-08-24 14:25:56 -0400
commitc690c8437aab62f8760a406e3481ccc4eaee13ea (patch)
treeea3df92e338ebc816e498818d30bb79bb3f45f95
parent5364189cbc7e1145e849a7343e788bcc3b3ccc43 (diff)
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>
-rw-r--r--tests/check/meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/check/meson.build b/tests/check/meson.build
index d5f26664..7aa6dcaa 100644
--- a/tests/check/meson.build
+++ b/tests/check/meson.build
@@ -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