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`
Thibault Saunier [Tue, 22 May 2018 17:43:01 +0000 (19:43 +0200)]
validate: media-check: Also check that segments are correct
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.
Edward Hervey [Tue, 5 Jun 2018 14:38:10 +0000 (16:38 +0200)]
validate/media-descriptor: Fix indentation
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
Edward Hervey [Tue, 5 Jun 2018 14:25:46 +0000 (16:25 +0200)]
validate: Update all gitignore
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
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
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
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
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.
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
Thibault Saunier [Sat, 28 Apr 2018 08:15:17 +0000 (10:15 +0200)]
validate: launcher: Make sure testsuites are used/configured once only
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.
Thibault Saunier [Thu, 3 May 2018 09:27:31 +0000 (11:27 +0200)]
validate:launcher: Cleanup the way we find where -validate tools are
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.
Thibault Saunier [Fri, 20 Apr 2018 01:13:29 +0000 (22:13 -0300)]
validate: Add support for the new testbin protocol
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.
Philippe Normand [Sun, 13 May 2018 12:02:11 +0000 (13:02 +0100)]
debug-viewer: MEMDUMP debug level support
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
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.
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
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>
Thibault Saunier [Thu, 19 Apr 2018 17:26:23 +0000 (14:26 -0300)]
debug-viewer: Fix raising unhandled exception
Old code was uselessly complex
Thibault Saunier [Thu, 19 Apr 2018 11:44:50 +0000 (08:44 -0300)]
debug-viewer: Fix stacktrace after port to py3
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
Thibault Saunier [Wed, 18 Apr 2018 12:03:01 +0000 (09:03 -0300)]
debug-viewer: Add a shortcut to show/hide timeline
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
Thibault Saunier [Sun, 15 Apr 2018 23:47:36 +0000 (20:47 -0300)]
validate:launcher: Add support for specifying a workdir in tests
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
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)
Philippe Normand [Sat, 14 Apr 2018 15:04:22 +0000 (16:04 +0100)]
debug-viewer: PEP8 all the things
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
Philippe Normand [Sat, 14 Apr 2018 10:27:48 +0000 (11:27 +0100)]
debug-viewer: remove broken/unimplemented plugins
Thibault Saunier [Fri, 13 Apr 2018 02:24:16 +0000 (23:24 -0300)]
Update python hook with the new pycodestyle
Thibault Saunier [Fri, 13 Apr 2018 02:11:04 +0000 (23:11 -0300)]
validate:launcher: Add a method to find tests in a TestManager
Thibault Saunier [Fri, 13 Apr 2018 02:05:01 +0000 (23:05 -0300)]
validate:launcher: Extract method to set a validate configuration on tests
Thibault Saunier [Fri, 13 Apr 2018 02:03:04 +0000 (23:03 -0300)]
validate: Handle having a list of structure based/file path configs
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.
Thibault Saunier [Fri, 23 Mar 2018 21:02:43 +0000 (18:02 -0300)]
launcher: Minor indentation issue fixes
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
Thibault Saunier [Sun, 18 Mar 2018 13:38:42 +0000 (10:38 -0300)]
check: Use meson introspect to list meson tests
Tim-Philipp Müller [Tue, 20 Mar 2018 10:56:57 +0000 (10:56 +0000)]
Back to development
Tim-Philipp Müller [Mon, 19 Mar 2018 20:29:07 +0000 (20:29 +0000)]
Release 1.14.0
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.
Tim-Philipp Müller [Tue, 13 Mar 2018 22:20:52 +0000 (22:20 +0000)]
meson: update version
Tim-Philipp Müller [Tue, 13 Mar 2018 19:30:43 +0000 (19:30 +0000)]
Release 1.13.91
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.
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
Thibault Saunier [Mon, 12 Mar 2018 15:11:18 +0000 (12:11 -0300)]
debug-viewer: Fix copying current line
Thibault Saunier [Mon, 12 Mar 2018 14:18:02 +0000 (11:18 -0300)]
debug-viewer: Add an appdata file
Tim-Philipp Müller [Sat, 3 Mar 2018 22:54:57 +0000 (22:54 +0000)]
Release 1.13.90
Mathieu Duponchelle [Thu, 1 Mar 2018 17:49:21 +0000 (18:49 +0100)]
meson: enable more warnings
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
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
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
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.
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
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 (),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
Tim-Philipp Müller [Thu, 15 Feb 2018 21:00:57 +0000 (21:00 +0000)]
Fix versions
Tim-Philipp Müller [Thu, 15 Feb 2018 19:44:37 +0000 (19:44 +0000)]
Back to development
Tim-Philipp Müller [Thu, 15 Feb 2018 17:30:08 +0000 (17:30 +0000)]
Release 1.13.1
Tim-Philipp Müller [Thu, 15 Feb 2018 18:27:37 +0000 (18:27 +0000)]
validate: dist enum types templates
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
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)
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.
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
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
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
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
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
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)
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
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.
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
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
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.
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
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
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
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
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
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.
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
Edward Hervey [Fri, 27 Oct 2017 07:59:53 +0000 (09:59 +0200)]
validate-analyze: Update for xml format changes
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
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.
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
Thibault Saunier [Sat, 26 Aug 2017 13:50:44 +0000 (10:50 -0300)]
launcher: Automatically disable output coloration if not supported
Thibault Saunier [Sat, 26 Aug 2017 12:10:40 +0000 (09:10 -0300)]
meson: Fix the way we set the testsuite version
Thibault Saunier [Fri, 18 Aug 2017 14:37:28 +0000 (11:37 -0300)]
validate:launcher: Use the number of failed test as exit code
We used to always return 0, which was not right!
Thibault Saunier [Mon, 14 Aug 2017 19:39:56 +0000 (16:39 -0300)]
launcher: Avoid exceptions when inspecting renders files
We were a bit to strict on the Exception types which lead to
the launcher failling itself when it shouldn't
Tim-Philipp Müller [Sat, 12 Aug 2017 11:08:09 +0000 (12:08 +0100)]
meson: hide symbols by default unless explicitly exported
Tim-Philipp Müller [Sat, 12 Aug 2017 11:04:42 +0000 (12:04 +0100)]
validate: hide some private symbols
Thibault Saunier [Fri, 11 Aug 2017 01:43:54 +0000 (21:43 -0400)]
validate: Plug a potential leak when retrieving peer pad
Thibault Saunier [Thu, 10 Aug 2017 23:25:09 +0000 (19:25 -0400)]
validate: Fix going over ghostpads/proxypads
Tim-Philipp Müller [Thu, 10 Aug 2017 13:35:09 +0000 (14:35 +0100)]
meson: fix a few meson warnings
WARNING: The variable(s) 'DATADIR', 'LIBDIR' in the input file
'subprojects/gst-devtools/validate/launcher/config.py.in' are not
present in the given configuration data
WARNING: Passed invalid keyword argument "scanobj_args". This will
become a hard error in the future.
WARNING: Keyword argument "install" defined multiple times. This
will be a an error in future Meson releases.
Thibault Saunier [Mon, 7 Aug 2017 20:00:53 +0000 (16:00 -0400)]
validate:win32: Update .def file.
Thibault Saunier [Mon, 7 Aug 2017 19:56:21 +0000 (15:56 -0400)]
validate: Mark symbols explicitly for export with GST_EXPORT
With an exception:
* gst_validate_monitor_setup
which was never declared in headers and should always have been static.