gstreamer/tests/check
Tim-Philipp Müller 690f8d30ac tests: fix meson test env setup to make sure we use the right gst-plugin-scanner
If core is built as a subproject (e.g. as in gst-build), make sure to use
the gst-plugin-scanner from the built subproject. Without this, gstreamer
might accidentally use the gst-plugin-scanner from the install prefix if
that exists, which in turn might drag in gst library versions we didn't
mean to drag in. Those gst library versions might then be older than
what our current build needs, and might cause our newly-built plugins
to get blacklisted in the test registry because they rely on a symbol
that the wrongly-pulled in gst lib doesn't have.

This should fix running of unit tests in gst-build when invoking
meson test or ninja test from outside the devenv for the case where
there is an older or different-version gst-plugin-scanner installed
in the install prefix.

In case no gst-plugin-scanner is installed in the install prefix, this
will fix "GStreamer-WARNING: External plugin loader failed. This most
likely means that the plugin loader helper binary was not found or
could not be run. You might need to set the GST_PLUGIN_SCANNER
environment variable if your setup is unusual." warnings when running
the unit tests.

In the case where we find GStreamer core via pkg-config we use
a newly-added pkg-config var "pluginscannerdir" to get the right
directory. This has the benefit of working transparently for both
installed and uninstalled pkg-config files/setups.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1302>
2020-05-27 15:17:12 +01:00
..
elements mpegtsdemux: tests: Add simple tests for tsparse and tsdemux 2020-05-18 14:11:40 +00:00
generic Remove autotools build system 2019-10-14 13:54:27 +01:00
libs test: h265parser: Add a test case for SCC extension. 2020-05-05 17:07:41 +00:00
media meson test: Enable libs tests 2017-12-08 18:42:22 +01:00
pipelines documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
gst-plugins-bad.supp
meson.build tests: fix meson test env setup to make sure we use the right gst-plugin-scanner 2020-05-27 15:17:12 +01:00