After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701924 - tests: add playbin test for autoplugging of decoder-sink combination based on capsfeatures
tests: add playbin test for autoplugging of decoder-sink combination based on...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 1.1.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-06-10 11:50 UTC by sreerenj
Modified: 2013-06-11 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tests: add more unit test for playbin (10.77 KB, patch)
2013-06-10 11:50 UTC, sreerenj
committed Details | Review

Description sreerenj 2013-06-10 11:50:11 UTC
Created attachment 246397 [details] [review]
 tests: add more unit test for playbin

Adding a unit test for autoplugging of video_decoder/video_sink combination based on capsfeatures.
Comment 1 Sebastian Dröge (slomo) 2013-06-11 13:24:40 UTC
commit eabd2a5c7b3685662e34a7153366ef27e8b55369
Author: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Date:   Mon Jun 10 14:43:35 2013 +0300

    tests: add more unit test for playbin
    
    Add unit test for autoplugging of video_decoder/video_sink combination
    based on capsfeatures.
Comment 2 sreerenj 2013-06-11 13:36:51 UTC
It seems that the following executables gst-plugins-base/test/check/elements/decodebin and gst-plugins-base/test/check/elements/playbin-complex are running only when executing from test/check folder. Because the path string GST_TEST_FILES_PATH == "../../test" always. 
Does it supposed to work like that?
Comment 3 Tim-Philipp Müller 2013-06-11 13:44:08 UTC
You are not supposed to run the executables directly. 'make check' should work and 'make elements/playbin-complex.check' and friends should work (see 'make help' in tests/check/ for the other options).
Comment 4 Sebastian Dröge (slomo) 2013-06-11 13:44:40 UTC
Yes, you're supposed to run them with "make elements/playbin-complex.check" or "make check" or "make elements/playbin-complex.valgrind" and other variants from that directory.
Comment 5 sreerenj 2013-06-11 13:48:45 UTC
Aha okay..

I was running "make check" which was time consuming and tried to run from test/check/elements/.
Didn't know about "playbin-complex.check"

Thanks :)
Comment 6 Tim-Philipp Müller 2013-06-11 13:59:53 UTC
There are options for valgrind and gdb etc. as well. The reason to do it via make is that it sets up a special environment (test registry etc., and ignore plugins from other modules).