[gstreamer-bugs] [Bug 511783] New: [unit testing] add a function that automatic push buffers and check the result

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Jan 24 05:06:21 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=511783

  GStreamer | gstreamer (core) | Ver: HEAD CVS
           Summary: [unit testing] add a function that automatic push
                    buffers and check the result
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: thijsvermeir at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


I think we can use some more functions that automate the testing process.
Proposed is a patch that adds two functions:

* gst_check_element_push_buffer_list (const gchar *element_name, GList
*buffer_in, GList *buffer_out, GstFlowReturn last_flow_return)

this function creates the element with the element_name and pushes all buffers
in buffer_in to the element and checks if the output of this element is the
same as the buffers in buffer_out. last_flow_return is a bonus to check what
the push of the last packet need to be.

*gst_check_element_push_buffer (const gchar *element_name, GstBuffer
*buffer_in, GstBuffer *buffer_out)
a small wrapper that takes 1 buffer in and out and expect GST_FLOW_OK

This can remove a lot of redundant code out of the unit test's to keep an
overview.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=511783.




More information about the Gstreamer-bugs mailing list