GNOME Bugzilla – Bug 678076
gst-rtsp-server unit tests
Last modified: 2012-06-20 05:38:32 UTC
Created attachment 216389 [details] [review] gst-rtsp-server unit tests The attached patch contains suggested unit tests for gst-rtsp-server. The tests set up a mount point which is mapped to one video and one audio pipeline. The different tests check RTSP DESCRIBE, SETUP and PLAY, and some error cases. The suite passes, also with CK_FORK=no. It passes in valgrind when I've applied the patches in these Bugzilla bugs: https://bugzilla.gnome.org/show_bug.cgi?id=678015 https://bugzilla.gnome.org/show_bug.cgi?id=678017 One natural extension could be to let tests connect to the RTP stream and receive audio and video data. Another is to test more error cases. I added a Makefile dependency to gst-plugin-good so unit tests could load plugins from there. But I think there was already an implicit dependency, because GstRTSPMedia creates the rtpbin element. I'm not sure if gst/rtspserver.c is the right file name. I tried to follow the naming pattern in core/base/good.
Had to do some fixes, please test: commit df54c553ae343e69acb8b206c480ca46cbc2556b Author: David Svensson Fors <davidsf@axis.com> Date: Tue Jun 19 15:25:36 2012 +0200 rtsp: add unit test Fixes https://bugzilla.gnome.org/show_bug.cgi?id=678076
Thanks! I tested it and it worked.