summaryrefslogtreecommitdiff
path: root/tests/check
AgeCommit message (Collapse)AuthorFilesLines
2017-05-21meson: make C++ compiler optionalHEADmasterTim-Philipp Müller1-2/+8
It's only used to build tests to see if our headers are C++ clean.
2017-05-17gst: ref_sink() some more floating references returned by g_object_new()Christoph Reiter3-0/+9
https://bugzilla.gnome.org/show_bug.cgi?id=743062
2017-05-17gst: Don't ref_sink() GstObject subclasses in instance_init/constructorSebastian Dröge1-1/+7
This is something bindings can't handle and it causes leaks. Instead move the ref_sink() to the explicit, new() constructors. This means that abstract classes, and anything that can have subclasses, will have to do ref_sink() in their new() function now. Specifically this affects GstClock and GstControlSource. https://bugzilla.gnome.org/show_bug.cgi?id=743062
2017-05-16meson: fix gstprintf test linkingTim-Philipp Müller1-6/+5
Must link against gstprint helper lib to use private symbol.
2017-04-19tests: fix message leak in seek testVincent Penquerc'h1-0/+1
https://bugzilla.gnome.org/show_bug.cgi?id=780757
2017-04-10value: Accept NULL as a structureOlivier Crête1-0/+17
Some GstStructure properties default to NULL, so it should be a supported value. With unit test.
2017-04-08Don't use deprecated g_object_newv()Tim-Philipp Müller2-2/+2
Use g_object_new() instead which nowadays has a shortcut for the no-properties check. It still does an extra GType check in the function guard, but there's a pending patch to remove that and it's hardly going to be a performance issue in practice, even less so on a system that's compiled without run-time checks. Alternative would be to move to the new g_object_new_properties() with a fallback define for older glib versions, but it makes the code look more unwieldy and doesn't seem worth it. Fixes deprecation warnings when building against newer GLib versions. https://bugzilla.gnome.org/show_bug.cgi?id=780903
2017-04-07test: Add test for serializing/deserializing NULL stringsOlivier Crête1-0/+18
2017-03-24gstvalue: Add transformation to/from GValueArrayNicolas Dufresne1-0/+82
This allow transforming a GValue of type G_TYPE_VALUE_ARRAY to and from GST_TYPE_ARRAY/LIST. https://bugzilla.gnome.org/show_bug.cgi?id=753754
2017-03-20value: fix union of int range and int when extending on a sideVincent Penquerc'h1-1/+8
The internal representation uses bounds scaled by the step Add tests to catch those cases
2017-03-11tests: bin: add more tests for suppressed flagsThiago Santos1-0/+30
Add tests to confirm flags are persisted even after removing elements that have those suppressed flags
2017-03-09gstvalue: Do more checks when guessing at flagset stringsJan Schmidt2-1/+28
If guessing that a string matches a flagset, be more thorough at checking that the string following a string of hex:hex: actually looks like a flag set string. Add some unit tests to catch more cases. https://bugzilla.gnome.org/show_bug.cgi?id=779755
2017-02-23value: Add deserialization for arrays/lists outside GstStructuresVivia Nikolaidou1-0/+32
This is mostly useful for properties of those types when used in gst-launch or similar. https://bugzilla.gnome.org/show_bug.cgi?id=777375
2017-02-22bytereader: fix peek value when scanning for 00 00 01 with non-0 offsetTim-Philipp Müller1-0/+40
We would add the offset a second time in _scan_for_start_code() when we found a result, but it's already been added to the data pointer at the beginning of _masked_scan_uint32_peek(), so the peeked value would be wrong if the initial offset was >0, and we would potentially read memory out-of-bounds. Add unit test for all of this. https://bugzilla.gnome.org/show_bug.cgi?id=778365
2017-02-08tests: add 2 unit tests for non-flush seek with gstbaseparseJulien Isorce1-0/+357
The unit test defines a test parse element that inherit from GstBaseParse. The test pipeline is: fakesrc ! testparse ! fakesink sync=1 Before the fix b2c05cac8 the first new test would have fail because the pipeline would have wait doing nothing just after proceeded the seek event. The second new test would have fail because the pipeline would have played the media instantly just after proceeded the seek event (like if sync was FALSE on the sink). https://bugzilla.gnome.org/show_bug.cgi?id=777780
2017-01-31segment: Modifiy inside segment conditionSeungha Yang1-0/+56
There is a special case that segment_start == segment_stop == start. It's inside of segment https://bugzilla.gnome.org/show_bug.cgi?id=764707
2017-01-15datetime: fix potential out-of-bound read on malformed datetime stringTim-Philipp Müller1-0/+8
https://bugzilla.gnome.org/show_bug.cgi?id=777263
2016-12-21meson: Add several missing features from configure.acNirbheek Chauhan1-1/+1
* -Wl,-Bsymbolic-functions * HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID * HAVE_POSIX_TIMERS * HAVE_MONOTONIC_CLOCK * HAVE_UINT128_T * HAVE_LONG_LONG * HAVE_PROCESS_H * HAVE_GMP * HAVE_GSL * HAVE_DLADDR Also, don't use prefix for checking functions, and only check msvc functions on Windows.
2016-12-21gststructure: simplify testStefan Sauer1-32/+12
We can compare structures, that is what the caps fucntion that was used before would call anyway.
2016-12-15value: add structure intersect/union/is_subset/fixate implementationsMatthew Waters1-0/+161
Allows proper usage of structures in structures in caps. Subtraction is not implemented due to complications with empty fields representing all possible values. The only implementation that doesn't delegate to the already existing GstStructure functions is the union function. https://bugzilla.gnome.org/show_bug.cgi?id=775796
2016-12-15tests/structure: add some more is_subset checksMatthew Waters1-2/+78
Explicitly testing extra/missing fields and name differences
2016-12-14tests: meta: add test for gst_buffer_iterate_meta*()Tim-Philipp Müller1-0/+171
https://bugzilla.gnome.org/show_bug.cgi?id=775727
2016-12-13gstvalue: add serialisation for GTypesStefan Sauer1-0/+47
We need this in the GstTracerRecord. This will serialize GTypes to the typename and vice versa.
2016-12-09meson: Support building with Gst debug disabledThibault Saunier1-1/+1
2016-12-06uri: Add new uri API to get media fragments URI as tableSeungha Yang1-0/+75
As an usecase of URI fragment, it can indicate temporal or spatial dimension of a media stream. To easily parse key-value pair, newly added gst_uri_get_media_fragment_table () API will provide the table of key-value pair likewise URI query. See also https://www.w3.org/TR/media-frags/ https://bugzilla.gnome.org/show_bug.cgi?id=774830
2016-12-05meta: remove unnecessary padding for GstMetaInfo structTim-Philipp Müller8-8/+0
This structure is always allocated by GStreamer, can't be subclassed or extended, and is never allocated or used on the stack, so we don't need any padding and can extend it as we please.
2016-11-28meson: Add Autotools changes that weren't mirroredNirbheek Chauhan1-0/+1
commits: a7d282d27256ad1d1a55afc37d1db7f60b040089 6fdb4df0f8c8a9e39f7f7cb73ab65306fb0517f5 1aceebd67f0161806dc3b4b68488d599290f283e
2016-11-28check/pipeline: Make failure message more informativeEdward Hervey1-1/+3
This will provide maybe a bit more insight the next time it fails
2016-11-28check/memory: Don't leak the custom allocatorEdward Hervey1-0/+1
2016-11-28check: Fix leak in queue2 testEdward Hervey1-0/+1
2016-11-28utils: Export linear regression calculation as public functionSebastian Dröge2-199/+207
It is useful outside the GstClock code too. https://bugzilla.gnome.org/show_bug.cgi?id=774916
2016-11-28tests: filesrc: init and clear GCond and mutexTim-Philipp Müller1-0/+6
Might otherwise leak on non-Linux systems.
2016-11-28tests: rewrite and enable dataurisrc testTim-Philipp Müller3-33/+339
Can't use playbin for core unit tests. https://bugzilla.gnome.org/show_bug.cgi?id=774527
2016-11-28Move dataurisrc element from -badTim-Philipp Müller1-0/+233
https://bugzilla.gnome.org/show_bug.cgi?id=774527
2016-11-23controllers: add new proxy control bindingMatthew Waters1-0/+107
Allows proxying the control interface from one property on one GstObject to another property (of the same type) in another GstObject. E.g. in a parent-child relationship, one may need to gst_object_sync_values() on the child and have a binding (set elsewhere) on the parent update the value. Note: that this doesn't solve GObject property forwarding and must be taken care of by the implementation manually or using GBinding. https://bugzilla.gnome.org/show_bug.cgi?id=774657
2016-11-21memory: log with GST_INFO instead GST_ERROR when subclass map failed.Julien Isorce1-0/+158
Add unit test to ensure that. It can be a normal execution path to do some map trials and there is no need to worry the user in that case. The application has to check the return value of gst_memory_map. https://bugzilla.gnome.org/show_bug.cgi?id=765600
2016-11-11tests: add unit test for gst_adapter_prev_pts_at_offset()Nicolas Huet1-0/+129
https://bugzilla.gnome.org/show_bug.cgi?id=765662
2016-11-02parse-launch: Support linking all pads with new operatorJan Schmidt1-0/+4
Introduce a new operator ':' - e.g. element1 ':' element2 For example, 'uridecodebin : encodebin' - if the encodebin has multiple profiles compatible with the decodebin, multiple links will be created. With '!' , after one delayed link is successfully done, the pad-added callback is disconnected. https://bugzilla.gnome.org/show_bug.cgi?id=751450
2016-11-01element: Allow multiple conversion specifiers for request padsWonchul Lee2-1/+309
This allows pad template names like "src_%u_%u", but it does not allow multiple specifiers of string type %s as that would lead to ambiguities. https://bugzilla.gnome.org/show_bug.cgi?id=761225
2016-10-14meson: Make use of new environment object and set plugin path to builddirThibault Saunier1-130/+119
- Properly set where to find gst-plugin-scanner - Use GST_LOADING_WHITELIST so that only core plugins are used Bump meson requirement to 0.35
2016-09-26tests: remove unused valgrind stuffTim-Philipp Müller3-46/+0
Code was also checking the wrong define anyway.
2016-09-26tests: parse-launch: looks clean nowadays, so re-enable for valgrindTim-Philipp Müller2-13/+2
Also, the valgrind bits weren't hooked up properly anyway, checking the wrong define.
2016-09-17queue2: Fix watermark testCarlos Rafael Giani1-15/+115
This carries over code for a similar test from multiqueue to ensure full control over the dataflow while testing. (The previous attempt was racy since the fill level changed without any thread sync with the test code.) https://bugzilla.gnome.org/show_bug.cgi?id=771210
2016-09-10tests: gstbin: add tests for suppressed flagsThiago Santos1-0/+51
Some simple tests to make sure it keeps working
2016-09-09meson:tests: Bump timeout to 3 minutesThibault Saunier1-1/+2
Basically we already have each test with a 20sec timeout, and testsuite can last more than the default 30secs from meson. 3 minutes is another arbitrary timeout but should be good enough.
2016-08-31multiqueue: Add higher-resolution low/high-watermark propertiesCarlos Rafael Giani1-0/+109
low/high-watermark are of type double, and given in range 0.0-1.0. This makes it possible to set low/high watermarks with greater resolution, which is useful with large multiqueue max sizes and watermarks like 0.5%. Also adding a test to check the fill and watermark level behavior. https://bugzilla.gnome.org/show_bug.cgi?id=770628
2016-08-26value: Implement can_intersect for GstFlagSet typesJan Schmidt1-0/+5
Make sure that gst_value_can_intersect returns TRUE for GstFlagSet combinations that can successfully intersect
2016-08-25queue2: Add higher-resolution low/high-watermark propertiesCarlos Rafael Giani1-0/+69
low/high-watermark are of type double, and given in range 0.0-1.0. This makes it possible to set low/high watermarks with greater resolution, which is useful with large queue2 max sizes and watermarks like 0.5%. Also adding a test to check the fill and watermark level behavior. https://bugzilla.gnome.org/show_bug.cgi?id=769449
2016-08-19Add support for Meson as alternative/parallel build systemNirbheek Chauhan1-0/+159
https://github.com/mesonbuild/meson With contributions from: Tim-Philipp Müller <tim@centricular.com> Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> Jussi Pakkanen <jpakkane@gmail.com> (original port) Highlights of the features provided are: * Faster builds on Linux (~40-50% faster) * The ability to build with MSVC on Windows * Generate Visual Studio project files * Generate XCode project files * Much faster builds on Windows (on-par with Linux) * Seriously fast configure and building on embedded ... and many more. For more details see: http://blog.nirbheek.in/2016/05/gstreamer-and-meson-new-hope.html http://blog.nirbheek.in/2016/07/building-and-developing-gstreamer-using.html Building with Meson should work on both Linux and Windows, but may need a few more tweaks on other operating systems.
2016-08-13Remove old alloc tracing code now that we have a GstTracer-based replacementTim-Philipp Müller1-2/+0
It's been internal API only in 1.x.