platform/upstream/gstreamer.git
9 years agovalidate:scenario: Handle action execution after pipeline destruction
Thibault Saunier [Wed, 13 May 2015 10:18:18 +0000 (12:18 +0200)]
validate:scenario: Handle action execution after pipeline destruction

Summary:
It is possible to keep executing actions after the pipeline
has been destroyed.

API:
  GST_VALIDATE_ACTION_TYPE_DOESNT_NEED_PIPELINE

Depends on D171

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D172

9 years agovalidate:scenario: Add a macro to get ActionType from an Action
Thibault Saunier [Wed, 13 May 2015 10:16:57 +0000 (12:16 +0200)]
validate:scenario: Add a macro to get ActionType from an Action

Summary: Depends on D170

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D171

9 years agovalidate:scenario: Factor out code to check position
Thibault Saunier [Wed, 13 May 2015 10:13:17 +0000 (12:13 +0200)]
validate:scenario: Factor out code to check position

Summary:
Making simpler to follow the execute_next_action function.

Depends on D169

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D170

9 years agovalidate:pipeline-monitor: Stop printing position when not possible
Thibault Saunier [Wed, 13 May 2015 09:27:25 +0000 (11:27 +0200)]
validate:pipeline-monitor: Stop printing position when not possible

Summary:
If from anything >= PAUSED to anything <= READY we can not query
pipeline position, so do not try to.

Depends on D168

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D169

9 years agovalidate:scenario: Rename 'get_position_id' to 'execute_actions_source_id'
Thibault Saunier [Wed, 13 May 2015 09:20:42 +0000 (11:20 +0200)]
validate:scenario: Rename 'get_position_id' to 'execute_actions_source_id'

Summary: Depends on D167

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D168

9 years agovalidate: Do not unref twice the same list
Thibault Saunier [Tue, 12 May 2015 10:07:13 +0000 (12:07 +0200)]
validate: Do not unref twice the same list

Summary: Depends on D166

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D167

9 years agovalidate:scenario: Add a way to specify the pipeline on which a scenario applies
Thibault Saunier [Tue, 12 May 2015 08:58:19 +0000 (10:58 +0200)]
validate:scenario: Add a way to specify the pipeline on which a scenario applies

Summary:
From within the scenario itself.

Depends on D165

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D166

9 years agovalidate: Avoid depending on Gst 1.4
Thibault Saunier [Tue, 12 May 2015 10:04:52 +0000 (12:04 +0200)]
validate: Avoid depending on Gst 1.4

Summary: Depends on D117

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D165

9 years agovalidate: Add a gtk plugins that implements action types relative to Gtk
Thibault Saunier [Tue, 21 Apr 2015 13:29:15 +0000 (15:29 +0200)]
validate: Add a gtk plugins that implements action types relative to Gtk

Summary:
Currently the only supported action is gtk-put-event allowing press and
release keyboard keys.

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D117

9 years agovalidate: Always git submodule update from the toplevel directory
Thibault Saunier [Tue, 12 May 2015 07:55:58 +0000 (09:55 +0200)]
validate: Always git submodule update from the toplevel directory

Otherwise it fails with older git versions

9 years agovalidate: Reshape documentation
Emanuele Aina [Sat, 9 May 2015 14:28:20 +0000 (16:28 +0200)]
validate: Reshape documentation

Fix some errors, use more Docbook tags and split each command reference
in its own file.

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

9 years agovalidate: Go back to the validate dir after submodule init
Emanuele Aina [Sat, 9 May 2015 14:23:06 +0000 (16:23 +0200)]
validate: Go back to the validate dir after submodule init

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

9 years agovalidate: ignore x264 valgrind errors
Guillaume Desmottes [Mon, 11 May 2015 15:08:37 +0000 (17:08 +0200)]
validate: ignore x264 valgrind errors

Summary: The x264 code is pretty hardcore so I just opened a bug for now.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D164

9 years agovalidate: disable QOS features when running with valgrind
Guillaume Desmottes [Fri, 8 May 2015 14:33:50 +0000 (16:33 +0200)]
validate: disable QOS features when running with valgrind

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D156

9 years agovalidate: move element_has_klass() to utils
Guillaume Desmottes [Mon, 11 May 2015 12:24:32 +0000 (14:24 +0200)]
validate: move element_has_klass() to utils

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D163

9 years agovalidate: rename get_valgrind_suppression_file()
Guillaume Desmottes [Mon, 11 May 2015 10:22:25 +0000 (12:22 +0200)]
validate: rename get_valgrind_suppression_file()

Summary:
This function is actually not specific to valgrind so we can make it more
generic.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D162

9 years agovalidate: allow to pass more than one file to GST_VALIDATE_CONFIG
Guillaume Desmottes [Mon, 11 May 2015 10:01:56 +0000 (12:01 +0200)]
validate: allow to pass more than one file to GST_VALIDATE_CONFIG

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D161

9 years agovalidate: gst_validate_plugin_get_config() return 'core' conf if plugin is NULL
Guillaume Desmottes [Mon, 11 May 2015 09:47:47 +0000 (11:47 +0200)]
validate: gst_validate_plugin_get_config() return 'core' conf if plugin is NULL

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D160

9 years agovalidate: add gst_validate_deinit()
Guillaume Desmottes [Mon, 11 May 2015 11:54:15 +0000 (13:54 +0200)]
validate: add gst_validate_deinit()

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D159

9 years agovalidate: don't leak not maching config structures
Guillaume Desmottes [Mon, 11 May 2015 12:25:49 +0000 (14:25 +0200)]
validate: don't leak not maching config structures

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D158

9 years agovalidate: factor out create_config()
Guillaume Desmottes [Mon, 11 May 2015 09:08:36 +0000 (11:08 +0200)]
validate: factor out create_config()

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D157

9 years agovalidate: display debug info when stopping because EOS
Guillaume Desmottes [Fri, 8 May 2015 14:28:11 +0000 (16:28 +0200)]
validate: display debug info when stopping because EOS

Summary:
Useful to know if we are executing the 'stop' command provided by the scenario
or not.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D155

9 years agoUpdate .gitignore
Thibault Saunier [Mon, 11 May 2015 17:40:49 +0000 (19:40 +0200)]
Update .gitignore

9 years agovalidate: unref last_caps when destroying pad monitor
Guillaume Desmottes [Thu, 7 May 2015 09:19:57 +0000 (11:19 +0200)]
validate: unref last_caps when destroying pad monitor

Reviewers: thiblahute

Reviewed By: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D150

9 years agovalidate: fix typo in reverse_playback.scenario
Guillaume Desmottes [Tue, 5 May 2015 13:59:18 +0000 (15:59 +0200)]
validate: fix typo in reverse_playback.scenario

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D148

9 years agovalidate: initialize position
Guillaume Desmottes [Tue, 5 May 2015 10:46:38 +0000 (12:46 +0200)]
validate: initialize position

Summary: Fix invalid read when executing without having the actual position.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D147

9 years agovalidate: be less specific when ignoring the pixman tls leak
Guillaume Desmottes [Tue, 5 May 2015 07:32:53 +0000 (09:32 +0200)]
validate: be less specific when ignoring the pixman tls leak

Summary: I hit the same big in a slightly different code path.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D146

9 years agoupdate gitignore
Guillaume Desmottes [Mon, 4 May 2015 12:22:00 +0000 (14:22 +0200)]
update gitignore

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D145

9 years agouse the setup_sink_props_max_lateness config scenario with valgrind
Guillaume Desmottes [Thu, 30 Apr 2015 15:39:55 +0000 (17:39 +0200)]
use the setup_sink_props_max_lateness config scenario with valgrind

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D141

9 years agovalidate: add 'target-element-klass' property on set-property action
Guillaume Desmottes [Thu, 30 Apr 2015 15:22:19 +0000 (17:22 +0200)]
validate: add 'target-element-klass' property on set-property action

Summary:
This allows us to set a property on all the elements of the pipeline matching
a specific klass name.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D140

9 years agovalidate: add 'optional' action keyword
Guillaume Desmottes [Fri, 1 May 2015 14:39:04 +0000 (16:39 +0200)]
validate: add 'optional' action keyword

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D139

9 years agovalidate: scenario: call _element_added_cb() on existing children
Guillaume Desmottes [Thu, 30 Apr 2015 13:39:23 +0000 (15:39 +0200)]
validate: scenario: call _element_added_cb() on existing children

Summary:
We want to have a chance to set property on all the elements of the pipelines,
including the existing children when the element is added.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D138

9 years agoFix 'stoped' typo
Guillaume Desmottes [Wed, 29 Apr 2015 12:12:01 +0000 (14:12 +0200)]
Fix 'stoped' typo

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D137

9 years agovalidate: add vg suppression for libdrm bug
Guillaume Desmottes [Mon, 27 Apr 2015 13:57:13 +0000 (15:57 +0200)]
validate: add vg suppression for libdrm bug

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D134

9 years agovalidate: ignore invalid read from libav aac decoding
Guillaume Desmottes [Mon, 27 Apr 2015 13:14:10 +0000 (15:14 +0200)]
validate: ignore invalid read from libav aac decoding

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D133

9 years agovalidate: ignore libvpx valgrind errors
Guillaume Desmottes [Mon, 27 Apr 2015 12:48:54 +0000 (14:48 +0200)]
validate: ignore libvpx valgrind errors

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D132

9 years agovalidate: display the URL of ignored Valgrind bugs
Guillaume Desmottes [Mon, 27 Apr 2015 12:04:05 +0000 (14:04 +0200)]
validate: display the URL of ignored Valgrind bugs

Summary:
We don't want to forget about those so best to remind it when starting tests
as we do with blacklisted tests.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D131

9 years agovalidate: move look_for_file_in_source_dir and get_valgrind_suppression_file to utils
Guillaume Desmottes [Mon, 27 Apr 2015 11:25:44 +0000 (13:25 +0200)]
validate: move look_for_file_in_source_dir and get_valgrind_suppression_file to utils

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D130

9 years agovalidate: Make sure to run submodule init from the root dir
Thibault Saunier [Thu, 30 Apr 2015 21:57:09 +0000 (23:57 +0200)]
validate: Make sure to run submodule init from the root dir

9 years agovalidate:scenario: Fix 'duration' property of the pause action
Thibault Saunier [Wed, 29 Apr 2015 11:22:11 +0000 (13:22 +0200)]
validate:scenario: Fix 'duration' property of the pause action

We preparse it into and set it as GstClockTime in the
structures so make sure to use them as such.

9 years agovalidate:launcher: Concider unset MediaDescriptor duration has 'infinite'
Thibault Saunier [Tue, 28 Apr 2015 14:44:42 +0000 (16:44 +0200)]
validate:launcher: Concider unset MediaDescriptor duration has 'infinite'

9 years agovalidate: ignore a pixman leak which is fixed in master
Guillaume Desmottes [Wed, 22 Apr 2015 09:38:56 +0000 (11:38 +0200)]
validate: ignore a pixman leak which is fixed in master

http://phabricator.freedesktop.org/D128

9 years agovalidate: use a bigger hammer to ignore mesa related leaks
Guillaume Desmottes [Tue, 21 Apr 2015 13:57:57 +0000 (15:57 +0200)]
validate: use a bigger hammer to ignore mesa related leaks

Looks like some tests are hitting a slightly different code path in udev but
the root bug is the same.

http://phabricator.freedesktop.org/D128

9 years agocodecanalyzer: minor style fix
Tim-Philipp Müller [Thu, 23 Apr 2015 11:33:26 +0000 (12:33 +0100)]
codecanalyzer: minor style fix

9 years agocodecanalyzer: don't try to free uninitialized pointers
Vineeth T M [Thu, 23 Apr 2015 06:53:12 +0000 (15:53 +0900)]
codecanalyzer: don't try to free uninitialized pointers

xml_files_path and hex_files_path variable are not initialized.
There are chances that corruption happens when uninitialized
variables are freed, so init them to NULL before use.

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

9 years agocodecanalyzer: run gst-indent on code
Tim-Philipp Müller [Thu, 23 Apr 2015 11:23:24 +0000 (12:23 +0100)]
codecanalyzer: run gst-indent on code

9 years agovalidate: Update autogen.sh
Thibault Saunier [Thu, 23 Apr 2015 09:44:24 +0000 (11:44 +0200)]
validate: Update autogen.sh

And add a gst-validate.doap file.

9 years agoUpdate common submodule
Thibault Saunier [Thu, 23 Apr 2015 09:24:14 +0000 (11:24 +0200)]
Update common submodule

9 years agovalidate: use -debug versions of bins when running from source
Guillaume Desmottes [Tue, 21 Apr 2015 09:00:58 +0000 (11:00 +0200)]
validate: use -debug versions of bins when running from source

Summary:
Those versions are using rpath instead of libtool's wrappers and so will be
faster to start and won't confuse valgrind.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D116

9 years agomove scenarios to data/scenarios
Guillaume Desmottes [Mon, 20 Apr 2015 13:24:46 +0000 (15:24 +0200)]
move scenarios to data/scenarios

Differential Revision: http://phabricator.freedesktop.org/D115

9 years agovalidate: add gstvalidate.supp valgrind suppression file
Guillaume Desmottes [Mon, 20 Apr 2015 08:53:29 +0000 (10:53 +0200)]
validate: add gstvalidate.supp valgrind suppression file

Differential Revision: http://phabricator.freedesktop.org/D115

9 years agovalidate: scenario: fix structure and action leak
Guillaume Desmottes [Mon, 13 Apr 2015 11:55:56 +0000 (13:55 +0200)]
validate: scenario: fix structure and action leak

9 years agovalidate: report: fix GString leak when early returning
Guillaume Desmottes [Fri, 10 Apr 2015 09:28:34 +0000 (11:28 +0200)]
validate: report: fix GString leak when early returning

9 years agovalidate:pipelinemonitor: Print position only when in state >= PAUSED
Thibault Saunier [Sun, 19 Apr 2015 09:57:36 +0000 (11:57 +0200)]
validate:pipelinemonitor: Print position only when in state >= PAUSED

Reviewers: Mathieu_Du

Reviewed By: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D86

9 years agovalidate:launcher: Use full HD screen as default screen size in xvfb
Thibault Saunier [Sun, 19 Apr 2015 09:56:29 +0000 (11:56 +0200)]
validate:launcher: Use full HD screen as default screen size in xvfb

9 years agovalidate:launcher: Add a way to run tests without displaying the output
Thibault Saunier [Fri, 17 Apr 2015 18:37:21 +0000 (20:37 +0200)]
validate:launcher: Add a way to run tests without displaying the output

Summary:
Adding a --no-display option and running Xvfb virtual frame buffer X
server.

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D105

9 years agovalidate:launcher: Error out if valgrind is not available on the system
Thibault Saunier [Fri, 17 Apr 2015 17:56:17 +0000 (19:56 +0200)]
validate:launcher: Error out if valgrind is not available on the system

Summary:
When the user wants to use valgrind, make sure it is present on the
system before doing anything

Reviewers: gdesmott

Differential Revision: http://phabricator.freedesktop.org/D104

9 years agovalidate:scenario: Stop scenario execution on stop action
Thibault Saunier [Fri, 17 Apr 2015 17:28:19 +0000 (19:28 +0200)]
validate:scenario: Stop scenario execution on stop action

And document it properly.

Summary:
The stop action was defined as "setting state to NULL" but
its actual goal is to stop the execution of the scenario. Make sure
that the scenario will not try to execute other actions when that
one has been executed.

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D103

9 years agovalidate: Gracefully handle absence of TAG on streams
Thibault Saunier [Thu, 16 Apr 2015 11:40:08 +0000 (13:40 +0200)]
validate: Gracefully handle absence of TAG on streams

Summary: And do not segfault when it happens!

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D99

9 years agovalidate:launcher: Pass GST_VALIDATE_SCENARIO to the subprocess env only
Thibault Saunier [Thu, 16 Apr 2015 10:02:11 +0000 (12:02 +0200)]
validate:launcher: Pass GST_VALIDATE_SCENARIO to the subprocess env only

Summary:
And make sure to remove it from the env if the user has it in its main
environment.

Without that commit we ended up passing scenarios from previous tests
to the following ones where None were specified.

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D98

9 years agovalidate: don't pass NULL to gst_caps_copy()
Guillaume Desmottes [Tue, 31 Mar 2015 13:10:11 +0000 (15:10 +0200)]
validate: don't pass NULL to gst_caps_copy()

9 years agovalidate: use GstMediaDescriptorWriter as log handler
Guillaume Desmottes [Tue, 31 Mar 2015 12:54:28 +0000 (14:54 +0200)]
validate: use GstMediaDescriptorWriter as log handler

Allow us to catch warnings when running gst-validate-media-check-1.0.

9 years agovalidate: media-descriptor-writer: fix string leaks
Guillaume Desmottes [Tue, 31 Mar 2015 07:59:58 +0000 (09:59 +0200)]
validate: media-descriptor-writer: fix string leaks

9 years agovalidate:launcher: Handle git error properly
Young Han Lee [Wed, 15 Apr 2015 05:02:32 +0000 (14:02 +0900)]
validate:launcher: Handle git error properly

'OSError' exception is emitted but not handled properly when git is not
installed on running system.

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

9 years agovalidate: set GST_GL_XINITTHREADS
Guillaume Desmottes [Tue, 14 Apr 2015 10:31:32 +0000 (12:31 +0200)]
validate: set GST_GL_XINITTHREADS

This ensure that XInitThreads is called and so gl contexts are properly
initialized.

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

Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
9 years agovalidate:launcher: Make validate the only default testsuite
Thibault Saunier [Fri, 10 Apr 2015 16:19:40 +0000 (18:19 +0200)]
validate:launcher: Make validate the only default testsuite

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D93

9 years agovalidate:launcher: Let the responsibility to update asset to the testsuite
Thibault Saunier [Fri, 10 Apr 2015 16:11:09 +0000 (18:11 +0200)]
validate:launcher: Let the responsibility to update asset to the testsuite

Summary:
It makes it easier to make sure that the assets needed for a specific
testsuite are available when needed

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D92

9 years agovalidate:tools: EOS handling is the responsibility of the scenario
Thibault Saunier [Fri, 10 Apr 2015 11:29:47 +0000 (13:29 +0200)]
validate:tools: EOS handling is the responsibility of the scenario

Summary: If any scenario set

Reviewers: Mathieu_Du

Differential Revision:
http://phabricator.freedesktop.org/D90

9 years agovalidate:scenario: Add support for waiting on signals and messages
Ramiro Polla [Fri, 13 Feb 2015 17:34:04 +0000 (18:34 +0100)]
validate:scenario: Add support for waiting on signals and messages

Reviewers: Mathieu_Du

Differential Revision:
http://phabricator.freedesktop.org/D88

9 years agovalidate:scenario: Report disabling plugin issues
Thibault Saunier [Fri, 6 Mar 2015 10:55:09 +0000 (11:55 +0100)]
validate:scenario: Report disabling plugin issues

Summary:
+ typedef GstValidateActionReturn so it can be used in the introspection
+ Add GST_VALIDATE_EXECUTE_ACTION_ERROR_REPORTED which should be used
  to tell Validate that something wrong happened so the sub action
  won't be executed, but that it should not report an error itself
  as it has already been handled in the action function.

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D81

9 years agovalidate:scenario: Allow execution of disable-plugin as a config action
Thibault Saunier [Fri, 6 Mar 2015 10:51:19 +0000 (11:51 +0100)]
validate:scenario: Allow execution of disable-plugin as a config action

Summary:
And fix a bug where config actions were added to the list of action even
if they had already been executed

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D80

9 years agovalidate:scenarios: Set seek_forward_backward min-media-duration=45
Thibault Saunier [Tue, 3 Mar 2015 09:16:20 +0000 (09:16 +0000)]
validate:scenarios: Set seek_forward_backward min-media-duration=45

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D79

9 years agovalidate:launcher: Set more env variable in the launcher command desc
Thibault Saunier [Fri, 27 Feb 2015 23:20:43 +0000 (23:20 +0000)]
validate:launcher: Set more env variable in the launcher command desc

Summary:
Adding if present:
  * LD_PRELOAD
  * DISPLAY
  * GST_VALIDATE_CONFIG
  * GST_VALIDATE_OVERRIDE

+  enhance the add_env_variable method to more easily set envvar from
current value

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D78

9 years agovalidate: Add a method to easily get plugin configuration
Thibault Saunier [Mon, 2 Mar 2015 10:03:08 +0000 (11:03 +0100)]
validate: Add a method to easily get plugin configuration

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D77

9 years agovalidate:plugins: Add support to all GApplication as a test apps
Thibault Saunier [Thu, 26 Feb 2015 12:11:51 +0000 (13:11 +0100)]
validate:plugins: Add support to all GApplication as a test apps

Summary:
Add a very simple plugin that will allow any GApplication to easily be
used with GstValidate using the LD_PRELOAD feature

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D75

9 years agovalidate: let structs_from_filename be exported.
Mathieu Duponchelle [Sat, 17 Jan 2015 21:21:16 +0000 (22:21 +0100)]
validate: let structs_from_filename be exported.

Summary: It is useful for plugins too

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D74

9 years agovalidate:scenario: Update Action.repeat field when needed
Thibault Saunier [Tue, 3 Mar 2015 14:42:06 +0000 (15:42 +0100)]
validate:scenario: Update Action.repeat field when needed

Summary: And print the current repeat value of the action that have such a field

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D73

9 years agovalidate:scenario: Alway execute a 'quit' action on EOS
Thibault Saunier [Thu, 26 Feb 2015 14:21:01 +0000 (15:21 +0100)]
validate:scenario: Alway execute a 'quit' action on EOS

Summary: Making scenario more usable with LD_PRELOAD

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D72

9 years agovalidate:scenario: Set the main action structure in fill_structure
Thibault Saunier [Fri, 27 Feb 2015 21:39:42 +0000 (22:39 +0100)]
validate:scenario: Set the main action structure in fill_structure

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D71

9 years agovalidate:launcher: Use GST_VALIDATE_SCENARIO envvar to set scenarios
Thibault Saunier [Fri, 27 Feb 2015 13:18:04 +0000 (13:18 +0000)]
validate:launcher: Use GST_VALIDATE_SCENARIO envvar to set scenarios

Summary:
Instead of concidering all apps will have a --set-scenario argument
which is not going to be the case as soon as we run the tests through
LD_PRELOAD

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D70

9 years agovalidate:launcher: Move get_current_position from GstValidatePipelineTest to GstValid...
Thibault Saunier [Fri, 27 Feb 2015 13:16:01 +0000 (13:16 +0000)]
validate:launcher: Move get_current_position from GstValidatePipelineTest to GstValidateTest

This is where it belongs

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D69

9 years agovalidate: fix typo in scenario file format docs
Wonchul Lee [Wed, 8 Apr 2015 05:13:11 +0000 (14:13 +0900)]
validate: fix typo in scenario file format docs

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

9 years agovalidate: scenario: fix caps leak
Guillaume Desmottes [Mon, 30 Mar 2015 14:47:28 +0000 (16:47 +0200)]
validate: scenario: fix caps leak

9 years agovalidate: media-descriptor: fix filenode->caps leak
Guillaume Desmottes [Mon, 30 Mar 2015 14:46:12 +0000 (16:46 +0200)]
validate: media-descriptor: fix filenode->caps leak

9 years agovalidate: transcoding: don't create a second mainloop
Guillaume Desmottes [Fri, 27 Mar 2015 15:00:50 +0000 (16:00 +0100)]
validate: transcoding: don't create a second mainloop

9 years agovalidate: transcoding: don't leak the requested sinkpad from decodebin
Guillaume Desmottes [Fri, 27 Mar 2015 15:00:19 +0000 (16:00 +0100)]
validate: transcoding: don't leak the requested sinkpad from decodebin

9 years agovalidate: pad-monitor: fix caps leak
Guillaume Desmottes [Fri, 27 Mar 2015 14:59:42 +0000 (15:59 +0100)]
validate: pad-monitor: fix caps leak

Don't create othercaps when early returning.

9 years agovalidate: GstValidateMediaCheckTest should inherit from GstValidateTest
Guillaume Desmottes [Fri, 27 Mar 2015 11:16:03 +0000 (12:16 +0100)]
validate: GstValidateMediaCheckTest should inherit from GstValidateTest

9 years agovalidate:launcher: Install config.py for non-development mode
Young Han Lee [Tue, 31 Mar 2015 00:20:05 +0000 (09:20 +0900)]
validate:launcher: Install config.py for non-development mode

Running installed gst-validate-launcher aborted with the following error.

File "lib/gst-validate-launcher/python/launcher/baseclasses.py", line 28, in <module>
  import config
ImportError: No module named config

This is because config.py is added but not installed
in ba6d209b3fd062f4e6bd889f81f1213cc12339ec.

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

9 years agovalidate:launcher: Show timeout seconds for timeout result message
Young Han Lee [Sun, 29 Mar 2015 02:13:01 +0000 (11:13 +0900)]
validate:launcher: Show timeout seconds for timeout result message

Current timeout message doesn't show how many seconds a test took and
it is timeouted by normal timeout or hard timeout.

This patch changes the message like following.

1. normal timeout
old : validate.http.playback.reverse_playback.raw_video_mov: Timeout (Application timed out)
new : validate.http.playback.reverse_playback.raw_video_mov: Timeout (Application timed out: 120 secs)

2. hard timeout
old : validate.http.playback.reverse_playback.raw_video_mov: Timeout (Application timed out)
new : validate.http.playback.reverse_playback.raw_video_mov: Timeout (Hard timeout reached: 600 secs)

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

9 years agovalidate:launcher: Fix wrong test number with -j option
Young Han Lee [Mon, 30 Mar 2015 07:00:09 +0000 (16:00 +0900)]
validate:launcher: Fix wrong test number with -j option

When '-j n' option is given, first n tests print test number 0.
This is caused by test_num part of 919db986052602dca452f05e284cfc857302d4f0.

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

9 years agovalidate:launcher: Avoid depending on PyGObject
Thibault Saunier [Sat, 28 Mar 2015 22:29:56 +0000 (23:29 +0100)]
validate:launcher: Avoid depending on PyGObject

Summary:
And rely on our knowledge of the configuration to figure out where the
suppression file has been installed

Reviewers: gdesmott

Differential Revision: http://phabricator.freedesktop.org/D61

9 years agovalidate: media-descriptor-writer: don't leak info and streaminfo
Guillaume Desmottes [Thu, 26 Mar 2015 14:42:11 +0000 (15:42 +0100)]
validate: media-descriptor-writer: don't leak info and streaminfo

9 years agovalidate: media-check: don't leak output_file and expected_file
Guillaume Desmottes [Thu, 26 Mar 2015 14:39:12 +0000 (15:39 +0100)]
validate: media-check: don't leak output_file and expected_file

9 years agovalidate: check VALGRIND_ERROR_CODE in Test as well
Guillaume Desmottes [Thu, 26 Mar 2015 12:59:30 +0000 (13:59 +0100)]
validate: check VALGRIND_ERROR_CODE in Test as well

We were doing it only in GstValidateTest which was overriding the default
implementation.

9 years agovalidate: don't increase hard_timeout is if it's None
Guillaume Desmottes [Thu, 26 Mar 2015 12:57:34 +0000 (13:57 +0100)]
validate: don't increase hard_timeout is if it's None

Some tests, like the media check ones, have None as hard_timeout.

9 years agovalidate: increase VALGRIND_TIMEOUT_FACTOR
Guillaume Desmottes [Thu, 26 Mar 2015 10:29:26 +0000 (11:29 +0100)]
validate: increase VALGRIND_TIMEOUT_FACTOR

5 wasn't enough for my poor laptop.

9 years agovalidate: increase the normal timeout as well when using valgrind
Guillaume Desmottes [Thu, 26 Mar 2015 10:29:06 +0000 (11:29 +0100)]
validate: increase the normal timeout as well when using valgrind

9 years agovalidate: media-descriptor: fix caps leak
Guillaume Desmottes [Thu, 26 Mar 2015 09:32:09 +0000 (10:32 +0100)]
validate: media-descriptor: fix caps leak

gst_pad_get_current_caps() returns a reffed caps.

9 years agoalso call gst_deinit() in media-check and transcoding
Guillaume Desmottes [Mon, 23 Mar 2015 12:36:45 +0000 (13:36 +0100)]
also call gst_deinit() in media-check and transcoding

More valgrind friendly.