tests: Fix running tests fully uninstalled
authorThibault Saunier <tsaunier@igalia.com>
Fri, 21 Aug 2020 01:09:31 +0000 (21:09 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 24 Aug 2020 18:25:56 +0000 (14:25 -0400)
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/118

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/206>

tests/check/meson.build

index d5f2666..7aa6dca 100644 (file)
@@ -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