Commit graph

17 commits

Author SHA1 Message Date
Tim-Philipp Müller
4063a319c5 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-ugly/-/merge_requests/53>
2020-05-27 14:55:11 +01:00
Seungha Yang
fe92e92c14 tests: x264enc: Enable test on Windows
... with removal of pointless unistd.h dependency.
Note that full dependency listing is required to run unit test
executable binary on Windows uninstalled environment.
2019-07-15 22:46:18 +09:00
Seungha Yang
ceb23592f8 tests: Enable test generic_states on Windows
... and drop needless unistd.h dependency
2018-12-30 22:50:23 +09:00
Seungha Yang
380b8d8e7f meson: Use join_paths() instead '/' 2018-12-18 22:48:42 +09:00
Seungha Yang
f89fc3441b tests: Enable unit test on Windows
Remove hard-coded ':' whitelist separator since it varies with OS
2018-12-18 22:48:01 +09:00
Mathieu Duponchelle
7ce5d16b5c meson: enable more warnings 2018-03-01 19:24:30 +01:00
Tim-Philipp Müller
b40e1a76b8 Remove lame plugin, moved to -good
https://bugzilla.gnome.org/show_bug.cgi?id=774252
2017-08-26 08:51:01 +01:00
Tim-Philipp Müller
83ff57c849 Remove mpg123 plugin, moved to -good
https://bugzilla.gnome.org/show_bug.cgi?id=774252
2017-08-20 15:53:50 +01:00
Thibault Saunier
6b03e61bf3 meson: Do not use path separator in test names
Avoiding warnings like:

    WARNING: Target "elements/audioamplify" has a path separator in its name.
2017-06-07 12:26:46 -04:00
Jan Schmidt
82f0bc240f Add gstvideo_dep for meson mpeg2dec test build 2017-05-19 20:05:02 +02:00
Thibault Saunier
18d84dfa23 meson: test: Fix environment object usage
And use get_pkgconfig_variable instead of calling pkg-config ourself
2017-03-28 14:20:50 -03:00
Thibault Saunier
bf8835a7df meson: Properly use ':' for defining keywords 2017-01-24 19:24:19 -03:00
Nirbheek Chauhan
c64165fb00 Revert "meson: move gstreamer-check-1.0 dependency to tests/check"
This reverts commit 0555c09607.

Does not actually work. See:
https://bugzilla.gnome.org/show_bug.cgi?id=773114#c31
2016-10-25 11:47:51 +05:30
Tim-Philipp Müller
db793e6cce meson: fix build outside of gst-all 2016-10-24 00:35:23 +01:00
Scott D Phillips
0555c09607 meson: move gstreamer-check-1.0 dependency to tests/check
https://bugzilla.gnome.org/show_bug.cgi?id=773114
2016-10-21 06:03:41 -03:00
Thibault Saunier
dc49e63100 meson: Make use of new environment object and set plugin path to builddir
Workaround source_root being the root directory of all projects
in the subproject case and remove now unneeded getpluginsdir

Bump meson requirement to 0.35
2016-10-04 18:10:41 -03:00
Tim-Philipp Müller
d671d6941f meson: hook up unit tests 2016-09-24 09:02:34 +01:00