tests: don't look for plugins in -base installdir for tests
authorTim-Philipp Müller <tim@centricular.com>
Wed, 26 Feb 2020 23:46:57 +0000 (23:46 +0000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 6 May 2020 14:02:28 +0000 (14:02 +0000)
-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>

tests/check/meson.build

index 0f7202e..373e254 100644 (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')