tests: don't look for plugins in -base installdir for tests

-base plugins will always be found in the build directory, and
core plugins will be found either also via the build directory
(if both core and -base are a subproject) or by getting the
pluginsdir via pkg-config if core is installed.

The GST_PLUGIN_LOADING_WHITELIST env var will make sure we only
pick up plugins from core/base and base plugins only from the
builddir.

There is no reason to look for -base plugins in the install dir.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/582>
This commit is contained in:
Tim-Philipp Müller 2020-02-26 23:46:57 +00:00 committed by GStreamer Merge Bot
parent e56b784171
commit b82c8f5854

View file

@ -159,9 +159,7 @@ foreach t : base_tests
)
env = environment()
env.set('GST_PLUGIN_PATH_1_0',
meson.build_root(), join_paths(get_option('prefix'), plugins_install_dir),
pluginsdirs)
env.set('GST_PLUGIN_PATH_1_0', meson.build_root(), pluginsdirs)
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
env.set('GST_STATE_IGNORE_ELEMENTS', 'cdio cdparanoiasrc libvisual_ alsasrc alsasink')
env.set('CK_DEFAULT_TIMEOUT', '20')
@ -183,9 +181,7 @@ foreach group : [1, 2, 3, 4, 5, 6]
# TODO Use env.copy when it is in meson
env = environment()
env.set('GST_PLUGIN_PATH_1_0',
meson.build_root(), join_paths(get_option('prefix'), plugins_install_dir),
pluginsdirs)
env.set('GST_PLUGIN_PATH_1_0', meson.build_root(), pluginsdirs)
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
env.set('GST_STATE_IGNORE_ELEMENTS', 'cdio cdparanoiasrc libvisual_ alsasrc alsasink')
env.set('CK_DEFAULT_TIMEOUT', '20')