Commit graph

99 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
Tim-Philipp Müller
3cd445a490 Remove autotools build system 2019-10-13 14:19: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
Tim-Philipp Müller
908c36eceb tests: x264enc: fix leak in unit test
The static pad templates weren't static so their
contents were leaked. valgrind was not happy.
Also rename confusing define.
2018-09-22 17:34:33 +01: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
Jan Schmidt
32335ab3e4 mpeg2dec test: Fix expected output caps
In the absence of explicit info, video decoders
now output mono multiview caps by default, so make
the expected caps match that
2017-05-19 18:59:17 +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
Thibault Saunier
07e5039848 meson: Setup pre commit hook and fix getpluginsdir for standalone case 2016-09-30 12:46:34 -03:00
Tim-Philipp Müller
d671d6941f meson: hook up unit tests 2016-09-24 09:02:34 +01:00
Tim-Philipp Müller
43bd45ba99 mpg123: move from -bad to -ugly
Hook up to build system, add to docs
2016-02-16 10:59:25 +00:00
Tim-Philipp Müller
fadda9dba6 tests: add test data for mpg123 plugin 2016-02-16 10:59:12 +00:00
Tim-Philipp Müller
e3bb9b2928 Merge branch 'plugin-move-mpg123'
Move mpg123 plugin from -bad to -ugly.

https://bugzilla.gnome.org/show_bug.cgi?id=719849
2016-02-16 10:41:07 +00:00
Tim-Philipp Müller
524c1d23da tests: fix mpg123audiodec test for big-endian architectures 2016-02-16 10:40:39 +00:00
Sebastian Dröge
592e1cbf5d mpg123audiodec: Fix event handling in unit test 2016-02-16 10:40:39 +00:00
Thiago Santos
7e2f2f9e5b tests: extend the AM_TESTS_ENVIRONMENT from check.mak
To get the CK_DEFAULT_TIMEOUT defined for all tests

https://bugzilla.gnome.org/show_bug.cgi?id=761472
2016-02-05 19:11:38 -03:00
Sebastian Dröge
7653bf6324 amrnbenc: Fix various compiler warnings in the test 2015-12-24 14:48:50 +01:00
Sebastian Dröge
81b695bb01 x264enc: Fix various compiler warnings in the test 2015-12-24 14:48:38 +01:00
Edward Hervey
ba2a874ffc check: Rename states unit test
Makes it easier to differentiate from other modules states unit test
2015-08-14 11:14:31 +02:00
Edward Hervey
fe14a23327 check: Use GST_CHECK_MAIN () macro everywhere
Makes source code smaller, and ensures we go through common initialization
path (like the one that sets up XML unit test output ...)
2015-06-02 16:31:10 +02:00
Tim-Philipp Müller
2aa56dffed tests: define GST_CHECK_TEST_ENVIRONMENT_BEACON
Make sure the test environment is set up.

https://bugzilla.gnome.org//show_bug.cgi?id=747624
2015-04-23 16:23:01 +01:00
Edward Hervey
27a2691766 tests: Use AM_TESTS_ENVIRONMENT
Needed by the new automake test runner
2015-04-08 16:52:06 +02:00
Edward Hervey
2bb3b2c977 check: Fix test location 2014-02-06 19:22:47 +01:00
Sebastian Rasmussen
84ee64d4bd tests: Don't build disabled plugins' check tests
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=723505
2014-02-04 14:03:30 +01:00
Olivier Crête
b82703170a x264enc: Implement getcaps that restricts the input format depending on the output profile
Also add some x264enc profile tests

https://bugzilla.gnome.org/show_bug.cgi?id=708326
2013-09-18 19:33:01 -04:00
Sebastian Dröge
e29d352f77 tests: Fix event handling 2013-05-13 13:19:27 +02:00
Martin Pitt
62c608ada2 tests: use _1_0 variants for the various registry variables
These override the variants without version suffix. Makes 'make check' work
properly in environments that set the suffixed variant for 1.0, such as
jhbuild.
2013-01-16 11:14:59 +00:00
Sebastian Dröge
2b3b7ea810 xingmux: Fix unit test after change to correctly calculate number of frames 2012-11-16 13:32:00 +01:00
Tim-Philipp Müller
7ceb643b02 Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:09:59 +00:00
Tim-Philipp Müller
9c690b2018 Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 20:40:37 +00:00
Tim-Philipp Müller
d24e774074 tests: fix up mpg123 test a little
- dist input files
- fix sample leak
- simplify check for elements
- only run mpg123 test if mpg123 is available and selected
- fix build in uninstalled setup

https://bugzilla.gnome.org/show_bug.cgi?id=686595
2012-10-24 13:44:07 +01:00
Carlos Rafael Giani
21bd9a8486 tets: add unit test for mpg123audiodec
https://bugzilla.gnome.org/show_bug.cgi?id=686595
2012-10-24 13:43:29 +01:00
Tim-Philipp Müller
5f9a086484 Remove -DGST_USE_UNSTABLE_API 2012-09-17 16:57:30 +01:00
Wim Taymans
49f5cb7d76 rename some caps and elements in examples 2012-09-14 16:28:54 +02:00
Olivier Crête
32a15afb81 x264enc test: x264enc produces constrained-baseline, not the full baseline 2012-09-11 16:48:51 -04:00
Mark Nauwelaerts
f12ee2cbe7 tests: mpeg2dec: initialize variable
... which avoids test segfaulting.
2012-09-06 14:42:51 +02:00
Edward Hervey
185b625bf9 check: Feed parsed data to mpeg2dec
And fix the expected output caps by adding colorimetry field
2012-08-30 16:26:00 -07:00
Sebastian Dröge
2ec36a9c0a elements: Use gst_pad_set_caps() instead of manual event fiddling 2012-06-08 15:55:42 +02:00
Sebastian Dröge
9e5a55a70f gst: Update versioning 2012-04-04 14:38:53 +02:00