summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2018-01-18tests: aacparser: Test that short raw frames don't get concatenatedJan Alexander Steffens (heftig)1-0/+39
https://bugzilla.gnome.org/show_bug.cgi?id=792644
2018-01-18rtpbin: fix leak of elements requested by signalsMathieu Duponchelle1-2/+14
When the signal returns a floating reference, as its return type is transfer full, we need to sink it ourselves before passing it to gst_bin_add (which is transfer floating). This allows us to unref it in bin_remove_element later on, and thus to also release the reference we now own if the signal returns a non-floating reference as well. As we now still hold a reference to the element when removing it, we also need to lock its state and setting it to NULL before unreffing it Also update the request_aux_sender test. https://bugzilla.gnome.org/show_bug.cgi?id=792543
2017-12-23tests: udpsink: add check that sets QoS on IPv4/6 socketsSebastian Rasmussen2-1/+40
https://bugzilla.gnome.org/show_bug.cgi?id=757449
2017-12-15matroska: fix memory leaks due to toc related updatesfengalin2-2/+5
https://bugzilla.gnome.org/show_bug.cgi?id=790686
2017-12-15matroskamux: Fix various memory leaks in the unit testSebastian Dröge1-0/+5
https://bugzilla.gnome.org/show_bug.cgi?id=790686
2017-12-15matroska-mux: migrate test to gst_harnessfengalin2-403/+270
... following the guide lines from Håvard Graff (see https://gstconf.ubicast.tv/videos/moar-better-tests/). https://bugzilla.gnome.org/show_bug.cgi?id=790686
2017-12-15matroska: re-activate and update TOC supportfengalin2-1/+862
TOC support in mastroskamux has been deactivated for a couple of years. This commit updates it to recent GstToc evolutions and introduces toc unit tests for both matroska-mux and matroska-demux. There are two UIDs for Chapters in Matroska's specifications: - The ChapterUID is a mandatory unsigned integer which internally refers to a given chapter. Except for title & language which use dedicated fields, this UID can also be used to add tags to the Chapter. The tags come in a separate section of the container. - The ChapterStringUID is an optional UTF-8 string which also uniquely refers to a chapter but from an external perspective. It can act as a "WebVTT cue identifier" which "can be used to reference a specific cue, for example from script or CSS". During muxing, the ChapterUID is generated and checked for unicity, while the ChapterStringUID receives the user defined UID. In order to be able to refer to chapters from the tags section, we maintain an internal Toc tree with the generated ChapterUID. When demuxing, the ChapterStringUIDs (if available) are assigned to the GstTocEntries UIDs and an internal toc mimicking the toc is used to keep track of the ChapterUIDs and match the tags with the appropriate GstTocEntries. https://bugzilla.gnome.org/show_bug.cgi?id=790686
2017-12-14v4l2src: Fix compiler error in example caused by re-declaring `index`Sebastian Dröge1-5/+5
../tests/examples/v4l2/v4l2src-renegotiate.c:57:13: error: ‘index’ redeclared as different kind of symbol static gint index = 0; ^
2017-12-09tests: ignore rtph264 test binaryTim-Philipp Müller1-0/+1
2017-12-09tests: udpsrc: verify the correct amount of bytes is sent to the socketGeorge Kiagiadakis1-5/+16
https://bugzilla.gnome.org/show_bug.cgi?id=786799
2017-12-09tests: udpsrc: ensure test won't timeout if the buffers are already receivedGeorge Kiagiadakis1-6/+8
Sometimes all the buffers are received before the time we lock the check_mutex, in which case g_cond_wait will wait forever for another one. Just check if this is the case before waiting. https://bugzilla.gnome.org/attachment.cgi?id=358397
2017-12-09tests: udpsrc: fix test_udpsrc to actually run and fix lockingGeorge Kiagiadakis1-1/+3
Previously this would silently be skipped because 1600 != 1400 and there is no assertion on this call. Also unlock check_mutex after use. https://bugzilla.gnome.org/show_bug.cgi?id=786799
2017-12-02rtpsession: Handle zero length feedback packetsHaakon Sporsheim1-0/+23
https://bugzilla.gnome.org/show_bug.cgi?id=791074
2017-12-02tests: rtpsession: refactor tests to use GstHarnessHavard Graff1-415/+288
This patch simplifies the tests (44% less code) and makes them much more readable. The provided SessionHarness also makes it much easier to write new tests for rtpsession. https://bugzilla.gnome.org/show_bug.cgi?id=791070
2017-11-25splitmuxsink: Use muxer reserved space properties if present.Jan Schmidt1-4/+52
If the use-robust-muxing property is set, check if the assigned muxer has reserved-max-duration and reserved-duration-remaining properties, and if so set the configured maximum duration to the reserved-max-duration property, and monitor the remaining space to start a new file if the reserved header space is about to run out - even though it never ought to.
2017-11-24splitmux: Fix file switch-on-caps-change.Jan Schmidt1-3/+99
Switching to a new fragment because the input caps have changed didn't properly end the previous file. Use the normal EOS sequence to ensure that happens. Add a test that it works.
2017-11-23tests: rtp-payloading: add unit test for rtph264pay codec_dataTim-Philipp Müller1-0/+26
Make sure no trailing zero bytes sneak into our SPS or PPS. https://bugzilla.gnome.org/show_bug.cgi?id=732758
2017-11-23tests: rtph264depay: add test for using downstream memory allocatorTim-Philipp Müller4-0/+316
2017-09-13v4l2-renegotiate: Don't leak the option contextNicolas Dufresne1-1/+5
2017-09-13v4l2src-renegotiate: Don't leak pipeline desc stringNicolas Dufresne1-0/+1
2017-09-13v4l2-renegotiate: Change --enable-dmabuf into --io-mode=Nicolas Dufresne1-5/+4
This gives allow testing dmabuf importation but also exportation buy letting user pick anything from the io-mode property on v4l2src.
2017-08-26tests: mpg123audiodec: add files needed by unit testsTim-Philipp Müller4-1/+3
2017-08-26tests: add basic unit test for twolame as wellTim-Philipp Müller5-3/+46
2017-08-26tests: lame: fix buildTim-Philipp Müller1-1/+1
2017-08-26tests: ignore another binaryTim-Philipp Müller1-0/+1
2017-08-26lame: hook up to build systemTim-Philipp Müller3-0/+20
https://bugzilla.gnome.org/show_bug.cgi?id=774252
2017-08-25Moving lame mp3 encoder plugin from -uglyTim-Philipp Müller1-0/+127
https://bugzilla.gnome.org/show_bug.cgi?id=774252
2017-08-20meson: Link mpeg123audiodec test against gstfftThibault Saunier1-1/+1
Fixing build error: /run/build/gst-plugins-good/_flatpak_build/../tests/check/elements/mpg123audiodec.c:150: undefined reference to `gst_fft_s32_new' /run/build/gst-plugins-good/_flatpak_build/../tests/check/elements/mpg123audiodec.c:151: undefined reference to `gst_fft_s32_window' /run/build/gst-plugins-good/_flatpak_build/../tests/check/elements/mpg123audiodec.c:151: undefined reference to `gst_fft_s32_fft' /run/build/gst-plugins-good/_flatpak_build/../tests/check/elements/mpg123audiodec.c:147: undefined reference to `gst_fft_s32_free'
2017-08-20tests: tagschecking: remove gst-check-xmp-* temp files when doneTim-Philipp Müller1-4/+8
Also fix temp file creation a bit.
2017-08-20mpg123: hook up to build systemTim-Philipp Müller3-0/+14
https://bugzilla.gnome.org/show_bug.cgi?id=774252
2017-08-20Moving mpg123 plugin from -uglyTim-Philipp Müller1-0/+534
2017-07-21tests: icles: fix buildTim-Philipp Müller1-5/+7
Can't do additions/subtractions on void* pointers.
2017-07-21tests:icles: Fix previous patch by implementing our memmemThibault Saunier1-4/+24
Using the string version of it will fail on '\0'.
2017-07-21tests:icles: Do not use memmem GNU extension functionThibault Saunier1-2/+4
As it is not avalaible on windows/msvc and we can use pure GLib for that
2017-07-18Revert "matroskamux: adjust unit test to modified behaviour"Sebastian Dröge1-14/+5
This reverts commit 8fe478c8a7746cd2c63f20d23e97e26e1a0e6192. We're back to previous behaviour
2017-07-07examples: v4l2: fix wrong initializations brought by 4e8ad583022671c5Reynaldo H. Verdejo Pinochet1-4/+4
https://bugzilla.gnome.org/show_bug.cgi?id=682770
2017-07-07examples: v4l2: add example for v4l2src renegotiationNicolas Dufresne3-1/+180
Based on work from Thiago Santos <thiagoss@osg.samsung.com> https://bugzilla.gnome.org/show_bug.cgi?id=682770
2017-07-05tests: rtpbin: fix build in uninstalled setupTim-Philipp Müller1-0/+2
2017-07-04rtpsession: Send EOS if all internal sources sent byeOlivier Crête2-0/+204
The ones which are not internal should not matter, and we should wait for all sources to have sent their BYEs. And add unit test https://bugzilla.gnome.org/show_bug.cgi?id=773218
2017-06-29tests: souphttpsrc: Avoid deprecated ssl-ca-file propertyJan Alexander Steffens (heftig)1-1/+22
SoupSession's ssl-ca-file property is deprecated. Use the recommended tls-database property. This is a bit more complex as it requires creating a GTlsFileDatabase object for an absolute (!) path to the CA certificates file. https://bugzilla.gnome.org/show_bug.cgi?id=784005
2017-06-29tests: souphttpsrc: Avoid deprecated server ssl propertiesJan Alexander Steffens (heftig)1-8/+13
The ssl-cert-file and ssl-key-file properties are deprecated. Use the soup_server_set_ssl_cert_file function to load the files. https://bugzilla.gnome.org/show_bug.cgi?id=784005
2017-06-29tests: souphttpsrc: Make ssl_cert/key_file staticJan Alexander Steffens (heftig)1-3/+4
Just a bit of cleanup. https://bugzilla.gnome.org/show_bug.cgi?id=784005
2017-06-29tests: souphttpsrc: Update test-cert.pemJan Alexander Steffens (heftig)1-15/+16
Recent GnuTLS disregards the Common Name and only looks at the Subject Alternative Name extension. Since our test-cert has no SAN extension, validation fails. Generate a new certificate with SAN. In addition to 127.0.0.1, for good measure make it valid for localhost and ::1, too. https://bugzilla.gnome.org/show_bug.cgi?id=784005
2017-06-26meson: build examplesTim-Philipp Müller11-1/+94
https://bugzilla.gnome.org/show_bug.cgi?id=784134
2017-06-26meson: tests: icles: simplify build fileTim-Philipp Müller1-38/+20
2017-06-26meson: build tests/icles/Tim-Philipp Müller2-0/+57
https://bugzilla.gnome.org/show_bug.cgi?id=784134
2017-06-23sys: remove sunaudio pluginTim-Philipp Müller4-111/+0
Even though hooked up to the build system, it's clear that no one has ever built or used this with GStreamer 1.x. It wants to link against libgstinterfaces, which no longer exists. And uses 0.10-style raw audio caps. And the last meaningful change was done in 2009. Let's just remove it.
2017-06-07meson: Do not use path separator in test namesThibault Saunier1-2/+3
Avoiding warnings like: WARNING: Target "elements/audioamplify" has a path separator in its name.
2017-06-06Fix v4l2 exampleNicolas Dufresne1-8/+10
2017-05-20meson: add options to set package name and originTim-Philipp Müller1-2/+1
https://bugzilla.gnome.org/show_bug.cgi?id=782172