platform/upstream/gstreamer.git
6 years agovalidate:launcher: Allow retrieving coredumps from within flatpak
Thibault Saunier [Sun, 1 Jul 2018 15:32:10 +0000 (11:32 -0400)]
validate:launcher: Allow retrieving coredumps from within flatpak

6 years agopad-monitor: Reset stream-related variables when deactivating
Edward Hervey [Tue, 19 Jun 2018 05:12:20 +0000 (07:12 +0200)]
pad-monitor: Reset stream-related variables when deactivating

Any local variable related to the stream should be resetted
when the pad is deactivated

Avoids weird issues when elements are re-used (and pads are deactivated
and reactivated).

6 years agovalidate:launcher: Fix the --forever switch
Thibault Saunier [Sun, 17 Jun 2018 12:34:09 +0000 (08:34 -0400)]
validate:launcher: Fix the --forever switch

It was not stopping on error.

https://bugzilla.gnome.org/show_bug.cgi?id=796608

6 years agovalidate: Update .def
Thibault Saunier [Fri, 15 Jun 2018 21:52:47 +0000 (17:52 -0400)]
validate: Update .def

6 years agovalidate:launcher: Add a TestManager to run python tests
Thibault Saunier [Fri, 15 Jun 2018 20:42:32 +0000 (16:42 -0400)]
validate:launcher: Add a TestManager to run python tests

Add a stupid simple testsuite made to be configured from the outside

6 years agovalidate: Fix mixup in variable check
Thibault Saunier [Fri, 15 Jun 2018 19:01:32 +0000 (15:01 -0400)]
validate: Fix mixup in variable check

6 years agomeson: Rename the gtkdoc option to gtk_doc
Thibault Saunier [Fri, 15 Jun 2018 14:25:33 +0000 (10:25 -0400)]
meson: Rename the gtkdoc option to gtk_doc

This is what other modules use

6 years agovalidate: media-check: Avoid spamming the MediaInfo file on stdout
Thibault Saunier [Thu, 24 May 2018 12:41:27 +0000 (14:41 +0200)]
validate: media-check: Avoid spamming the MediaInfo file on stdout

6 years agovalidate: launcher: Add support for running tests with a pushfile source
Thibault Saunier [Wed, 23 May 2018 15:57:23 +0000 (17:57 +0200)]
validate: launcher: Add support for running tests with a pushfile source

Introducing the `.media_info.push` media info extension, which is meant
to let the launcher know that those file should run with the "pushfile://"
protocol.

And allow symlinking "normal" `.media_info` to their `.pushfile` variant
so that both can share the exact same content.

6 years agovalidate: media-check: Add a way to skip pluggin parsers
Thibault Saunier [Fri, 25 May 2018 13:35:10 +0000 (15:35 +0200)]
validate: media-check: Add a way to skip pluggin parsers

This is useful when you want to check only the demuxer output.

- Keep the information in the media file so that we can launch media-check
  with the proper arguments in the launcher. Update it accordingly.
- Refactor compare_streams to simplify it, which in the end leads to
  reporting all the issues instead of exiting on the first one.

6 years agovalidate: media-descriptor: Add a way to specify when a field value is unknown
Thibault Saunier [Tue, 22 May 2018 23:11:32 +0000 (01:11 +0200)]
validate: media-descriptor: Add a way to specify when a field value is unknown

And this way is to set the attribute to... `unknown`

6 years agovalidate: media-check: Also check that segments are correct
Thibault Saunier [Tue, 22 May 2018 17:43:01 +0000 (19:43 +0200)]
validate: media-check: Also check that segments are correct

6 years agodebug-viewer: Fix reload file action.
Philippe Normand [Thu, 14 Jun 2018 17:01:54 +0000 (18:01 +0100)]
debug-viewer: Fix reload file action.

Copy the log file only we're loading a file different from the previous file.
The previous version of this code was broken because the existing tmpfile was
removed from disk before being copied to a new temporary file.

6 years agovalidate/media-descriptor: Fix indentation
Edward Hervey [Tue, 5 Jun 2018 14:38:10 +0000 (16:38 +0200)]
validate/media-descriptor: Fix indentation

6 years agovalidate: Add a new issue to detect invalid event seqnum
Edward Hervey [Tue, 5 Jun 2018 14:36:24 +0000 (16:36 +0200)]
validate: Add a new issue to detect invalid event seqnum

Events should always have a valid seqnum. Add a new issue which
allows detecting such events. And use that check in the
pad monitor

6 years agovalidate: Update all gitignore
Edward Hervey [Tue, 5 Jun 2018 14:25:46 +0000 (16:25 +0200)]
validate: Update all gitignore

6 years agogst-validate-launcher: let gdb handle SIGINT itself
Alicia Boya García [Fri, 25 May 2018 10:03:46 +0000 (12:03 +0200)]
gst-validate-launcher: let gdb handle SIGINT itself

Otherwise both gdb and gst-validate-launcher will react to ^C at the
same time, gdb will be killed by SIGHUP (because gst-validate-launcher
quitted in consequence of the ^C) and the terminal state will be left
garbled because readline inside gdb had disabled echo.

https://bugzilla.gnome.org/show_bug.cgi?id=796396

6 years agogst-validate-launcher: disable timeouts when debugging in gdb interactively
Alicia Boya García [Fri, 25 May 2018 10:06:22 +0000 (12:06 +0200)]
gst-validate-launcher: disable timeouts when debugging in gdb interactively

An interactive debugging session can be going for a long time, we don't
want any timeouts in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=796397

6 years agogst-validate-launcher: Stop in --gdb by default, add --gdb-non-stop
Alicia Boya García [Thu, 24 May 2018 16:25:59 +0000 (18:25 +0200)]
gst-validate-launcher: Stop in --gdb by default, add --gdb-non-stop

This patch modifies the default behavior of --gdb to not run and quit
automatically the test, but rather wait for user input. This is
usually much more convenient to debug all kinds of bugs.

The automatic run behavior has been moved to a new command switch:
--gdb-non-stop

https://bugzilla.gnome.org/show_bug.cgi?id=796389

6 years agovalidate: Error out if gst_parse_launch sets an error.
Thibault Saunier [Fri, 18 May 2018 15:50:18 +0000 (11:50 -0400)]
validate: Error out if gst_parse_launch sets an error.

https://bugzilla.gnome.org/show_bug.cgi?id=796240

6 years agovalidate:launcher: Error out loudly if the testlist changes
Thibault Saunier [Tue, 15 May 2018 18:40:45 +0000 (14:40 -0400)]
validate:launcher: Error out loudly if the testlist changes

When --fail-on-testlist-change is set.

6 years agovalidate:launcher: Do not print time spent if the testsuite never started
Thibault Saunier [Tue, 15 May 2018 18:35:30 +0000 (14:35 -0400)]
validate:launcher: Do not print time spent if the testsuite never started

6 years agovalidate: launcher: Make sure testsuites are used/configured once only
Thibault Saunier [Sat, 28 Apr 2018 08:15:17 +0000 (10:15 +0200)]
validate: launcher: Make sure testsuites are used/configured once only

6 years agovalidate:launcher: Add a way to check if a gst feature is present
Thibault Saunier [Sun, 13 May 2018 20:30:25 +0000 (16:30 -0400)]
validate:launcher: Add a way to check if a gst feature is present

And make sure iqa is present to run IQA tests.

6 years agovalidate:launcher: Cleanup the way we find where -validate tools are
Thibault Saunier [Thu, 3 May 2018 09:27:31 +0000 (11:27 +0200)]
validate:launcher: Cleanup the way we find where -validate tools are

6 years agovalidate: launcher: Add a way to simply run SSIM checks on rendered files
Thibault Saunier [Sat, 21 Apr 2018 02:57:32 +0000 (23:57 -0300)]
validate: launcher: Add a way to simply run SSIM checks on rendered files

We will run a simple pipeline with the IQA element to run ssim (dssim)
tests on the rendered files, comparing it with a reference file.

For now we use the very empiric 1.0 value as a ssim error threshold and
the goal is basically to detect completely broken renderings.

6 years agovalidate: Add support for the new testbin protocol
Thibault Saunier [Fri, 20 Apr 2018 01:13:29 +0000 (22:13 -0300)]
validate: Add support for the new testbin protocol

6 years agodebug-viewer: Ignore broken utf8 errors
Thibault Saunier [Fri, 20 Apr 2018 01:13:03 +0000 (22:13 -0300)]
debug-viewer: Ignore broken utf8 errors

Not much we can do if the input file is not perfectly valid UTF8
but we should just do as good as we can.

6 years agodebug-viewer: MEMDUMP debug level support
Philippe Normand [Sun, 13 May 2018 12:02:11 +0000 (13:02 +0100)]
debug-viewer: MEMDUMP debug level support

6 years agovalidate: Remove hls.*seek_with_stop blacklisting
Edward Hervey [Mon, 7 May 2018 15:30:13 +0000 (17:30 +0200)]
validate: Remove hls.*seek_with_stop blacklisting

The issue is closed upstream (because of concentrating on decodebin3
instead), and initial forever testing seems to show the issue doesn't
happen anymore

6 years agomeson: Update option names to omit disable_ prefixes
Nirbheek Chauhan [Sat, 5 May 2018 14:25:14 +0000 (19:55 +0530)]
meson: Update option names to omit disable_ prefixes

Also yield common options to the outer project (gst-build in our case)
so that they don't have to be set manually.

6 years agovalidate: pipeline: Handle the case where a pad has no monitor
Thibault Saunier [Fri, 27 Apr 2018 15:32:38 +0000 (17:32 +0200)]
validate: pipeline: Handle the case where a pad has no monitor

We do not monitor ghost pads, only real pads, so this is a totally
legitimate case.

https://bugzilla.gnome.org/show_bug.cgi?id=792536

6 years agovalidate: fix out of source tree build error
Kai Kang [Wed, 25 Apr 2018 02:57:14 +0000 (10:57 +0800)]
validate: fix out of source tree build error

It fails to generate gst-validate-enum-types.h and gst-validate-enum-types.c
when build out of source tree. Add the path for template files.

https://bugzilla.gnome.org/show_bug.cgi?id=795531

Signed-off-by: Kai Kang <kai.kang@windriver.com>
6 years agodebug-viewer: Fix raising unhandled exception
Thibault Saunier [Thu, 19 Apr 2018 17:26:23 +0000 (14:26 -0300)]
debug-viewer: Fix raising unhandled exception

Old code was uselessly complex

6 years agodebug-viewer: Fix stacktrace after port to py3
Thibault Saunier [Thu, 19 Apr 2018 11:44:50 +0000 (08:44 -0300)]
debug-viewer: Fix stacktrace after port to py3

6 years agodebug-viewer: Copy log files in temporaries before using them
Thibault Saunier [Wed, 18 Apr 2018 12:34:57 +0000 (09:34 -0300)]
debug-viewer: Copy log files in temporaries before using them

They are mmap'ed and it gets wrong if the file is changed.
There is high probablility the user will generate new logs while
inspecting some logs in the same file

6 years agodebug-viewer: Add a shortcut to show/hide timeline
Thibault Saunier [Wed, 18 Apr 2018 12:03:01 +0000 (09:03 -0300)]
debug-viewer: Add a shortcut to show/hide timeline

6 years agodebug-viewer: Port to meson
Thibault Saunier [Sun, 15 Apr 2018 19:31:36 +0000 (16:31 -0300)]
debug-viewer: Port to meson

This allows us to run unit test as part of ninja test and have versionning
in sync. Also the goal is to have everything inside meson.

https://bugzilla.gnome.org/show_bug.cgi?id=795282

6 years agovalidate:launcher: Add support for specifying a workdir in tests
Thibault Saunier [Sun, 15 Apr 2018 23:47:36 +0000 (20:47 -0300)]
validate:launcher: Add support for specifying a workdir in tests

6 years agovalidate:launcher: printc is accepting object as arguments
Thibault Saunier [Sun, 15 Apr 2018 22:45:43 +0000 (19:45 -0300)]
validate:launcher: printc is accepting object as arguments

Make sure in all code paths those are converted to strings

6 years agodebug-viewer: Dispatcher source ID clean-up
Philippe Normand [Sun, 15 Apr 2018 10:28:33 +0000 (11:28 +0100)]
debug-viewer: Dispatcher source ID clean-up

This patch fixes this runtime warning:
GstDebugViewer/Common/Data.py:67: Warning: Source ID 17 was not found when attempting to remove it
  GObject.source_remove(self.source_id)

6 years agodebug-viewer: PEP8 all the things
Philippe Normand [Sat, 14 Apr 2018 15:04:22 +0000 (16:04 +0100)]
debug-viewer: PEP8 all the things

6 years agodebug-viewer: Port to Python3
Philippe Normand [Sat, 14 Apr 2018 13:22:11 +0000 (14:22 +0100)]
debug-viewer: Port to Python3

And fix unit-tests.

https://bugzilla.gnome.org/show_bug.cgi?id=795260

6 years agodebug-viewer: remove broken/unimplemented plugins
Philippe Normand [Sat, 14 Apr 2018 10:27:48 +0000 (11:27 +0100)]
debug-viewer: remove broken/unimplemented plugins

6 years agoUpdate python hook with the new pycodestyle
Thibault Saunier [Fri, 13 Apr 2018 02:24:16 +0000 (23:24 -0300)]
Update python hook with the new pycodestyle

6 years agovalidate:launcher: Add a method to find tests in a TestManager
Thibault Saunier [Fri, 13 Apr 2018 02:11:04 +0000 (23:11 -0300)]
validate:launcher: Add a method to find tests in a TestManager

6 years agovalidate:launcher: Extract method to set a validate configuration on tests
Thibault Saunier [Fri, 13 Apr 2018 02:05:01 +0000 (23:05 -0300)]
validate:launcher: Extract method to set a validate configuration on tests

6 years agovalidate: Handle having a list of structure based/file path configs
Thibault Saunier [Fri, 13 Apr 2018 02:03:04 +0000 (23:03 -0300)]
validate: Handle having a list of structure based/file path configs

6 years agolauncher: Print test number in the order they finish
Thibault Saunier [Fri, 23 Mar 2018 23:58:38 +0000 (20:58 -0300)]
launcher: Print test number in the order they finish

Instead of the test index in the list of tests as it is
meaningless to the user and feels weird.

Also minor fix in the test name display when running with --forever.

6 years agolauncher: Minor indentation issue fixes
Thibault Saunier [Fri, 23 Mar 2018 21:02:43 +0000 (18:02 -0300)]
launcher: Minor indentation issue fixes

6 years agolauncher: Clean up outpout
Thibault Saunier [Fri, 23 Mar 2018 20:44:06 +0000 (17:44 -0300)]
launcher: Clean up outpout

Make our stdout output simpler to follow by:
  - Not printing the tests we launch (it is not really useful in the end)
  - Using `\r` when printing the passed tests
  - Not reprinting all the test in a now useless summary

6 years agocheck: Use meson introspect to list meson tests
Thibault Saunier [Sun, 18 Mar 2018 13:38:42 +0000 (10:38 -0300)]
check: Use meson introspect to list meson tests

6 years agoBack to development
Tim-Philipp Müller [Tue, 20 Mar 2018 10:56:57 +0000 (10:56 +0000)]
Back to development

6 years agoRelease 1.14.0
Tim-Philipp Müller [Mon, 19 Mar 2018 20:29:07 +0000 (20:29 +0000)]
Release 1.14.0

6 years agovalidate: Fix the way we set the testsuite version
Thibault Saunier [Wed, 14 Mar 2018 00:14:51 +0000 (21:14 -0300)]
validate: Fix the way we set the testsuite version

The testuite version should be 'master' during development
and the version number on releases, during the pre-release
cycle, there is no nano version, thus our detection handling
was mistaking.

6 years agomeson: update version
Tim-Philipp Müller [Tue, 13 Mar 2018 22:20:52 +0000 (22:20 +0000)]
meson: update version

6 years agoRelease 1.13.91
Tim-Philipp Müller [Tue, 13 Mar 2018 19:30:43 +0000 (19:30 +0000)]
Release 1.13.91

6 years agovalidate: GST_EXPORT -> GST_VALIDATE_API
Tim-Philipp Müller [Tue, 13 Mar 2018 13:58:07 +0000 (13:58 +0000)]
validate: GST_EXPORT -> GST_VALIDATE_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agodebug-viewer: solved crash when maximum freq sentinel is 0
Xabier Rodriguez Calvar [Tue, 13 Mar 2018 12:48:00 +0000 (13:48 +0100)]
debug-viewer: solved crash when maximum freq sentinel is 0

https://bugzilla.gnome.org/show_bug.cgi?id=794282

6 years agodebug-viewer: Fix copying current line
Thibault Saunier [Mon, 12 Mar 2018 15:11:18 +0000 (12:11 -0300)]
debug-viewer: Fix copying current line

6 years agodebug-viewer: Add an appdata file
Thibault Saunier [Mon, 12 Mar 2018 14:18:02 +0000 (11:18 -0300)]
debug-viewer: Add an appdata file

6 years agoRelease 1.13.90
Tim-Philipp Müller [Sat, 3 Mar 2018 22:54:57 +0000 (22:54 +0000)]
Release 1.13.90

6 years agomeson: enable more warnings
Mathieu Duponchelle [Thu, 1 Mar 2018 17:49:21 +0000 (18:49 +0100)]
meson: enable more warnings

6 years agodebug-viewer: fix names of actions/functions
Xabier Rodriguez Calvar [Wed, 7 Feb 2018 09:13:44 +0000 (10:13 +0100)]
debug-viewer: fix names of actions/functions

https://bugzilla.gnome.org/show_bug.cgi?id=793241

6 years agodebug-viewer: Added filter for threads
Xabier Rodriguez Calvar [Wed, 7 Feb 2018 09:05:35 +0000 (10:05 +0100)]
debug-viewer: Added filter for threads

https://bugzilla.gnome.org/show_bug.cgi?id=793241

6 years agodebug-viewer: Added filter for function
Xabier Rodriguez Calvar [Wed, 7 Feb 2018 08:52:26 +0000 (09:52 +0100)]
debug-viewer: Added filter for function

https://bugzilla.gnome.org/show_bug.cgi?id=793241

6 years agomeson: simplify GST_DISABLE_GST_DEBUG check and don't use add_global_*
Tim-Philipp Müller [Wed, 21 Feb 2018 19:50:33 +0000 (19:50 +0000)]
meson: simplify GST_DISABLE_GST_DEBUG check and don't use add_global_*

add_global_arguments() can't be used in subprojects. It's
entirely possible that devtools is a subproject but gstreamer
is picked up from an installed location, so we should
really use add_project_arguments() in both cases.

6 years agovalidate: tools: fix build dependencies for validate-rtsp-server
Tim-Philipp Müller [Mon, 19 Feb 2018 12:02:04 +0000 (12:02 +0000)]
validate: tools: fix build dependencies for validate-rtsp-server

In file included from ../subprojects/gst-devtools/validate/tools/gst-validate-rtsp-server.c:21:0:
.../gst/gst.h:31:10: fatal error: gst/gstenumtypes.h: No such file or directory

6 years agovalidategtk: Stop using deprecated keymap API
Sebastian Dröge [Sun, 18 Feb 2018 10:21:34 +0000 (12:21 +0200)]
validategtk: Stop using deprecated keymap API

gstvalidategtk.c:184:7: error: ‘gdk_keymap_get_default’ is deprecated: Use 'gdk_keymap_get_for_display' instead [-Werror=deprecated-declarations]
       gdk_keymap_get_entries_for_keyval (gdk_keymap_get_default (),
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

6 years agodebug-viewer: Fixed C++ destructors detection
Xabier Rodriguez Calvar [Wed, 14 Feb 2018 12:30:41 +0000 (13:30 +0100)]
debug-viewer: Fixed C++ destructors detection

https://bugzilla.gnome.org/show_bug.cgi?id=793447

6 years agoFix versions
Tim-Philipp Müller [Thu, 15 Feb 2018 21:00:57 +0000 (21:00 +0000)]
Fix versions

6 years agoBack to development
Tim-Philipp Müller [Thu, 15 Feb 2018 19:44:37 +0000 (19:44 +0000)]
Back to development

6 years agoRelease 1.13.1
Tim-Philipp Müller [Thu, 15 Feb 2018 17:30:08 +0000 (17:30 +0000)]
Release 1.13.1

6 years agovalidate: dist enum types templates
Tim-Philipp Müller [Thu, 15 Feb 2018 18:27:37 +0000 (18:27 +0000)]
validate: dist enum types templates

6 years agodebug-viewer: Fix C++ detection of lambdas as function
Xabier Rodriguez Calvar [Tue, 13 Feb 2018 13:02:39 +0000 (14:02 +0100)]
debug-viewer: Fix C++ detection of lambdas as function

https://bugzilla.gnome.org/show_bug.cgi?id=793422

6 years agovalidate-pad-monitor: Use GST_SEQNUM_INVALID
Edward Hervey [Sat, 10 Feb 2018 13:20:44 +0000 (14:20 +0100)]
validate-pad-monitor: Use GST_SEQNUM_INVALID

Instead of 0 (which is valid)

6 years agodebug-viewer; Store thread as long instead of int
Olivier Crête [Thu, 8 Feb 2018 15:20:55 +0000 (08:20 -0700)]
debug-viewer; Store thread as long instead of int

On 64-bit platforms, the thread id can be over 2^32 so use a long
to handle it.

6 years agotools: gst-validate-images-check: Fix typo
Wonchul Lee [Fri, 29 Dec 2017 02:25:05 +0000 (11:25 +0900)]
tools: gst-validate-images-check: Fix typo

https://bugzilla.gnome.org/show_bug.cgi?id=792035

6 years agomeson: use -fno-strict-aliasing where supported
Tim-Philipp Müller [Tue, 30 Jan 2018 20:36:00 +0000 (20:36 +0000)]
meson: use -fno-strict-aliasing where supported

https://bugzilla.gnome.org/show_bug.cgi?id=769183

6 years agovalidate/baseclasses: Release un-needed data when test ends
Edward Hervey [Mon, 18 Dec 2017 09:51:05 +0000 (10:51 +0100)]
validate/baseclasses: Release un-needed data when test ends

This was keeping around 500-700kB of data for each test, which was
gradually raising memory usage of a full run by 100MB+

The reports are definitely not needed, and we only need to keep
information from the subprocess env variable that we might need
later on for final reporting

6 years agovalidate/baseclasses: Don't leak several hundred MB of XML
Edward Hervey [Mon, 18 Dec 2017 08:48:21 +0000 (09:48 +0100)]
validate/baseclasses: Don't leak several hundred MB of XML

The xml-based MediaDescriptor were keeping open the XML file and the
associated ElementTree structures, resulting in memory usage of several
hundred megabytes.

Instead cache the information we need immediately and release the
XML structure

6 years agomeson: Add missing force_rtsp2 scenario
Nicolas Dufresne [Sun, 17 Dec 2017 21:22:51 +0000 (16:22 -0500)]
meson: Add missing force_rtsp2 scenario

Without this file, gst-validate installed using meson will fail all
RTSP2 tests

6 years agovalidate: Remove protocol-specific timeouts
Edward Hervey [Sun, 3 Dec 2017 11:23:51 +0000 (12:23 +0100)]
validate: Remove protocol-specific timeouts

Since we now check position/status of pipeline at regular intevals,
we no longer need to impose a different timeout based on the
protocol used.

Avoids having 4min long timeouts for no reason (30s is enough)

6 years agovalidate: Use a single TCPServer for subprocess communication
Edward Hervey [Sun, 3 Dec 2017 09:42:49 +0000 (10:42 +0100)]
validate: Use a single TCPServer for subprocess communication

Instead of creating a separate TCPServer for each test, just create
one which handles all connections in a threaded fashion.

Shaves off ~500ms per test

https://bugzilla.gnome.org/show_bug.cgi?id=791159

6 years agovalidate-launcher: Allow running tests out-of-order
Edward Hervey [Sun, 3 Dec 2017 09:49:22 +0000 (10:49 +0100)]
validate-launcher: Allow running tests out-of-order

When the --shuffle option is used, the tests will be run out of order.
This optimizes CPU utilization since it allows running synchronized
and unsynchronized tests at the same.

6 years agovalidate: Reduce time waiting for subprocess to stop
Edward Hervey [Sun, 3 Dec 2017 10:07:00 +0000 (11:07 +0100)]
validate: Reduce time waiting for subprocess to stop

stopping the subprocess is done from the main thread, this would
throttle starting/stopping any tests by one second.
Start with 50ms, and gradually increase the wait between iterations

6 years agogstvalidate: Lower timeout to check for rtsp-server to be up
Edward Hervey [Sun, 3 Dec 2017 10:05:40 +0000 (11:05 +0100)]
gstvalidate: Lower timeout to check for rtsp-server to be up

Check every 100ms, avoids throttling all rtsp tests by 500ms

6 years agovalidate:launcher: Launch tests in `_TestsLauncher` not in TestsManagaer
Thibault Saunier [Sat, 2 Dec 2017 12:36:27 +0000 (09:36 -0300)]
validate:launcher: Launch tests in `_TestsLauncher` not in TestsManagaer

So that Test from several TestManager can run in parallel and thus avoid
waiting for tests from one TestManager to run the following one.,

Also by design TestsLauncher should always have been the responsible for
... launching tests.

6 years agovalidate: Don't leak strings
Edward Hervey [Sat, 25 Nov 2017 12:10:41 +0000 (13:10 +0100)]
validate: Don't leak strings

We only use them in the error/debug case anyway

6 years agovalidate-report: Plug leaks
Edward Hervey [Sat, 25 Nov 2017 11:46:05 +0000 (12:46 +0100)]
validate-report: Plug leaks

The trace was never freed, nor were the output of g_str_split

6 years agovalidate-scenario: Don't assume element have factories
Edward Hervey [Thu, 23 Nov 2017 11:27:11 +0000 (12:27 +0100)]
validate-scenario: Don't assume element have factories

Some elements might not originate from factories (like custom/internal
elements).

Avoids dereferencing a NULL pointer

6 years agovalidate-scenario: Handle non-relative switch
Edward Hervey [Wed, 22 Nov 2017 15:35:46 +0000 (16:35 +0100)]
validate-scenario: Handle non-relative switch

Make sure we stay within the number of present streams (and avoid
out-of-bound read).

CID #1415470

6 years agovalidate-scenario: Handle switching stream of type not present
Edward Hervey [Wed, 22 Nov 2017 15:34:42 +0000 (16:34 +0100)]
validate-scenario: Handle switching stream of type not present

Unlikely to happen, but at least don't end up doing unsafe calculation
with n == 0 afterwards

CID #1415453

7 years agomeson: Always require the latest gst-rtsp-server
Nirbheek Chauhan [Sun, 12 Nov 2017 14:38:39 +0000 (20:08 +0530)]
meson: Always require the latest gst-rtsp-server

In the worst case, when building with gst-uninstalled, we will try to
link against an older gst-rtsp-server provided by the system. Found by
philn.

7 years agovalidate: Call g-ir-scanner with the same toolchain as the rest
Edward Hervey [Wed, 8 Nov 2017 16:22:47 +0000 (17:22 +0100)]
validate: Call g-ir-scanner with the same toolchain as the rest

7 years agovalidate-analyze: Update for xml format changes
Edward Hervey [Fri, 27 Oct 2017 07:59:53 +0000 (09:59 +0200)]
validate-analyze: Update for xml format changes

7 years agovalidate: launcher: Run rtsp tests against both V1 and V2
Thibault Saunier [Mon, 3 Jul 2017 20:36:32 +0000 (16:36 -0400)]
validate: launcher: Run rtsp tests against both V1 and V2

https://bugzilla.gnome.org/show_bug.cgi?id=781446

7 years agovalidate:launcher: Allow disabling using the number of failed tests as exitcode
Thibault Saunier [Wed, 6 Sep 2017 19:35:25 +0000 (16:35 -0300)]
validate:launcher: Allow disabling using the number of failed tests as exitcode

This is usefull on CI servers where the test results will be inspected
and the status of the build built from it.

7 years agovalidate: launcher: Modify the order of the parser argument
Jimmy Ohn [Thu, 24 Aug 2017 05:17:08 +0000 (14:17 +0900)]
validate: launcher: Modify the order of the parser argument

Modify the order of the parser argument before setting dir_group

https://bugzilla.gnome.org/show_bug.cgi?id=786715

7 years agolauncher: Automatically disable output coloration if not supported
Thibault Saunier [Sat, 26 Aug 2017 13:50:44 +0000 (10:50 -0300)]
launcher: Automatically disable output coloration if not supported