mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
meson: Fix building/running tests outside gst-build
This commit is contained in:
parent
794ada056a
commit
761f0d1ca9
1 changed files with 10 additions and 6 deletions
|
@ -65,12 +65,19 @@ test_defines = [
|
||||||
'-DGST_USE_UNSTABLE_API',
|
'-DGST_USE_UNSTABLE_API',
|
||||||
]
|
]
|
||||||
|
|
||||||
test_deps = [gst_dep, gstapp_dep, gstbase_dep, gstbasecamerabin_dep, gstphotography_dep, gstpbutils_dep, gstcontroller_dep, gstaudio_dep, gstvideo_dep, gstrtp_dep, gsturidownloader_dep, gstcheck_dep, gio_dep, glib_dep, libparser_dep]
|
test_deps = [gst_dep, gstapp_dep, gstbase_dep,
|
||||||
|
gstbasecamerabin_dep, gstphotography_dep,
|
||||||
|
gstpbutils_dep, gstcontroller_dep, gstaudio_dep,
|
||||||
|
gstvideo_dep, gstrtp_dep, gsturidownloader_dep,
|
||||||
|
gstcheck_dep, gio_dep, glib_dep, libparser_dep,
|
||||||
|
gsttag_dep]
|
||||||
|
|
||||||
pluginsdirs = [ ]
|
pluginsdirs = [ ]
|
||||||
|
|
||||||
if gst_dep.type_name() == 'pkgconfig'
|
if gst_dep.type_name() == 'pkgconfig'
|
||||||
pluginsdirs = [gst_dep.get_pkgconfig_variable('pluginsdir')] + [gst_base_dep.get_pkgconfig_variable('pluginsdir')]
|
pbase = dependency('gstreamer-plugins-base-' + api_version)
|
||||||
|
|
||||||
|
pluginsdirs = [gst_dep.get_pkgconfig_variable('pluginsdir')] + [pbase.get_pkgconfig_variable('pluginsdir')]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
foreach t : base_tests
|
foreach t : base_tests
|
||||||
|
@ -100,10 +107,7 @@ foreach t : base_tests
|
||||||
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
|
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
|
||||||
env.set('CK_DEFAULT_TIMEOUT', '20')
|
env.set('CK_DEFAULT_TIMEOUT', '20')
|
||||||
env.set('GST_STATE_IGNORE_ELEMENTS', '')
|
env.set('GST_STATE_IGNORE_ELEMENTS', '')
|
||||||
|
env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
|
||||||
foreach plugindir: pluginsdirs
|
|
||||||
env.append('GST_PLUGIN_PATH_1_0', plugindir)
|
|
||||||
endforeach
|
|
||||||
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
|
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
|
||||||
test(test_name, exe, env: env, timeout: 3 * 60)
|
test(test_name, exe, env: env, timeout: 3 * 60)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue