platform/upstream/gstreamer.git
9 years agovalidate: Define GST_PLUGIN_LDFLAGS as needed
Thibault Saunier [Mon, 23 Feb 2015 11:24:39 +0000 (12:24 +0100)]
validate: Define GST_PLUGIN_LDFLAGS as needed

9 years agovalidate: Determine development mode using git hash value
Young Han Lee [Thu, 19 Feb 2015 11:53:16 +0000 (20:53 +0900)]
validate: Determine development mode using git hash value

Development mode has been determined by whether the launcher is in git
repo
or not. This could be wrong when the launcher is installed to
subdirectory of other project's git repo, such as jhbuild. It is normal
to install compiled output to subdirectory of your jhbuild.

Changed logic gets the first commit hash of current git repo and
compares it with gst-devtools' the first commit hash.

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

9 years agovalidate:launcher: Fix typo s/FILE_EXTENDION/FILE_EXTENSION/g
Thibault Saunier [Thu, 19 Feb 2015 10:32:05 +0000 (11:32 +0100)]
validate:launcher: Fix typo s/FILE_EXTENDION/FILE_EXTENSION/g

9 years agovalidate:scenario: Fix GstValidateAction ABI adding a private structure
Thibault Saunier [Wed, 18 Feb 2015 13:23:16 +0000 (14:23 +0100)]
validate:scenario: Fix GstValidateAction ABI adding a private structure

This way we can easily extend the structure and avoid needing using
a union and such

9 years agovalidate: Test buffer outside of received range.
Mathieu Duponchelle [Thu, 22 Jan 2015 21:29:10 +0000 (22:29 +0100)]
validate: Test buffer outside of received range.

Summary: As part of the preparation for a port to tracer.

Test Plan: This is a test, we won't test tests

Reviewers: tsaunier

Differential Revision: http://internal.opencreed.com:8888/D19

9 years agocodecanalyzer: fix codec detection with git master
Tim-Philipp Müller [Wed, 18 Feb 2015 11:36:59 +0000 (11:36 +0000)]
codecanalyzer: fix codec detection with git master

The names might be 'MPEG-2 (Simple Profile)' now.
Shouldn't really rely on codec name strings here
in the first place, but use caps instead.

9 years agovalidate: Properly notify user about missing plugins
Thibault Saunier [Wed, 18 Feb 2015 09:05:55 +0000 (10:05 +0100)]
validate: Properly notify user about missing plugins

This way it is clear in gst-validate-launcher that the failure is due
to a missing plugin

9 years agovalidate: Fix wrong sizeof usage
Thibault Saunier [Tue, 17 Feb 2015 17:18:56 +0000 (18:18 +0100)]
validate: Fix wrong sizeof usage

sizeof(int) is always <= sizeof(gpointer)

9 years agovalidate: launcher: Use cElementTree for XML parsing
Ramiro Polla [Wed, 21 Jan 2015 12:13:02 +0000 (13:13 +0100)]
validate: launcher: Use cElementTree for XML parsing

Using cElementTree instead of ElementTree speeds up parsing of media
descriptor files.

The total time spent parsing XML files drops from ~0.64 s to ~0.24 s,
leading to faster initialisation times for gst-validate-launcher.

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

9 years agovalidate: Print actions directly from the scenario
Thibault Saunier [Tue, 17 Feb 2015 13:56:47 +0000 (14:56 +0100)]
validate: Print actions directly from the scenario

Avoiding user to have to print them in each and every action type
implementation.

This requires adding some API to prepare actions before printing them.
Preparing action in that case mean parsing the values contained in the
GstStructure parsing equations and setting back the actual value
afterward

API:
  * GstValidatePrepateAction
  * gst_validate_action_type_set_prepare_function

9 years agovalidate: Fix build on windows
Thibault Saunier [Mon, 16 Feb 2015 21:12:54 +0000 (22:12 +0100)]
validate: Fix build on windows

Check where libgstvalidate.dll is installed and use that base folder to
figure out where GstValidate plugins are installed

9 years agovalidate: Do not forget to dist _full variant of scrubing scenarios
Thibault Saunier [Mon, 16 Feb 2015 19:52:54 +0000 (20:52 +0100)]
validate: Do not forget to dist _full variant of scrubing scenarios

9 years agovalidate: Create a gst-validate-types.h header where we define types
Thibault Saunier [Mon, 16 Feb 2015 18:49:50 +0000 (19:49 +0100)]
validate: Create a gst-validate-types.h header where we define types

And include it from validate.h.

This way we avoid to need to typedef GstValidateAction twice, which is
a C11 feature

9 years agovalidate-report: Fix valist usage
Edward Hervey [Mon, 16 Feb 2015 18:24:23 +0000 (19:24 +0100)]
validate-report: Fix valist usage

a va_list always 'exists' (it's a struct). It therefore can't be NULL
(and can't be tested)

Just use the regular print variant where appropriate.

9 years agovalidate:scenario: Document locking
Thibault Saunier [Mon, 16 Feb 2015 15:47:37 +0000 (16:47 +0100)]
validate:scenario: Document locking

9 years agovalidate:scenario: Make get_position happen on idle
Thibault Saunier [Fri, 13 Feb 2015 11:17:37 +0000 (12:17 +0100)]
validate:scenario: Make get_position happen on idle

Summary:
- Add a way to force action to be executed in their own GSource dispatch, disabling chain action execution

API:
  GstValidateScenario::execute-on-idle property

9 years agovalidate:scenario: Add a method to retrieve all remaining actions
Thibault Saunier [Thu, 12 Feb 2015 15:23:49 +0000 (16:23 +0100)]
validate:scenario: Add a method to retrieve all remaining actions

Not only the next one as it was not making much sense!

API:
  - gst_validate_scenario_get_next_action
  + gst_validate_scenario_get_actions

9 years agovalidate:utils: Fix some annotations
Thibault Saunier [Thu, 12 Feb 2015 15:13:09 +0000 (16:13 +0100)]
validate:utils: Fix some annotations

9 years agovalidate:scenario: Allow link up of action executions for overriden types
Thibault Saunier [Thu, 12 Feb 2015 15:10:00 +0000 (16:10 +0100)]
validate:scenario: Allow link up of action executions for overriden types

Exposing a GstValidateActionType.overriden_type field
And properly expose gst_validate_execute_action

9 years agovalidate:reporter: Always print reports in the Gst debug system
Thibault Saunier [Thu, 12 Feb 2015 15:09:11 +0000 (16:09 +0100)]
validate:reporter: Always print reports in the Gst debug system

9 years agovalidate: Misc fixes
Thibault Saunier [Wed, 11 Feb 2015 17:27:10 +0000 (18:27 +0100)]
validate: Misc fixes

9 years agovalidate: Properly annotate gst_validate_register_action_type*
Thibault Saunier [Wed, 11 Feb 2015 16:06:06 +0000 (17:06 +0100)]
validate: Properly annotate gst_validate_register_action_type*

It does not return any reference to the type

9 years agoRevert "validate:scenario: Add a way to specify action structure size"
Thibault Saunier [Tue, 10 Feb 2015 12:50:23 +0000 (13:50 +0100)]
Revert "validate:scenario: Add a way to specify action structure size"

This reverts commit b976319ef7f977b8ce910c4b8aa1a843da3b264f.

Now that the exact same structure can be used to represent different
action types, we can not rely on the structure size to stuff
informations into the action.  Users should just make use of
GstMiniObject.qdata.

9 years agovalidate:scenario: We do not own any ref in GstValidateExecuteAction
Thibault Saunier [Tue, 10 Feb 2015 12:39:43 +0000 (13:39 +0100)]
validate:scenario: We do not own any ref in GstValidateExecuteAction

And gst_validate_action_set_done might very well unref the last
reference to the action

9 years agovalidate: Make sure that the latest action type registration is kept
Thibault Saunier [Tue, 10 Feb 2015 12:22:34 +0000 (13:22 +0100)]
validate: Make sure that the latest action type registration is kept

Avoiding to change the behaviour!

9 years agovalidate:scenario: Handle scenario repeat property with sub actions
Thibault Saunier [Sat, 7 Feb 2015 11:51:30 +0000 (12:51 +0100)]
validate:scenario: Handle scenario repeat property with sub actions

And port change_state_intensive.scenario to it

9 years agovalidate:scenario: Add the notion of sub actions
Thibault Saunier [Sat, 7 Feb 2015 10:19:22 +0000 (11:19 +0100)]
validate:scenario: Add the notion of sub actions

Sub action will allow user to executed action *right* after the
previous action has been completed, meaning in the end that both
action can be considered as one single action.

+ Factor out a function to fill an GstValidateAction structure from a
  GstStructure
+ Factor out a function to set action playback time

9 years agovalidate: Document some env variable usage
Thibault Saunier [Fri, 6 Feb 2015 11:20:30 +0000 (12:20 +0100)]
validate: Document some env variable usage

9 years agovalidate: Add an API to cleanly register action type from plugins
Thibault Saunier [Fri, 6 Feb 2015 10:46:13 +0000 (11:46 +0100)]
validate: Add an API to cleanly register action type from plugins

API:
    gst_validate_register_action_type_dynamic

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

9 years agovalidate: Rename libfaultinjector to libgstvalidatefaultinjector
Thibault Saunier [Wed, 4 Feb 2015 21:12:48 +0000 (22:12 +0100)]
validate: Rename libfaultinjector to libgstvalidatefaultinjector

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

9 years agovalidate: Use plugin name as implementer_namespace when registering action type
Thibault Saunier [Wed, 4 Feb 2015 14:14:04 +0000 (15:14 +0100)]
validate: Use plugin name as implementer_namespace when registering action type

And document it as a good practice as it will allow us to map plugins
and action types

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

9 years agovalidate: Move the fault_injection plugin to gst/plugins/
Thibault Saunier [Wed, 4 Feb 2015 13:54:55 +0000 (14:54 +0100)]
validate: Move the fault_injection plugin to gst/plugins/

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

9 years agovalidate: Use an actual GstRegistry to track our plugins
Thibault Saunier [Wed, 4 Feb 2015 13:50:14 +0000 (14:50 +0100)]
validate: Use an actual GstRegistry to track our plugins

Keeping everything internal for now

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

9 years agovalidate: Implement fault_injection as a Gs(tValidate)Plugin
Thibault Saunier [Wed, 4 Feb 2015 13:30:05 +0000 (14:30 +0100)]
validate: Implement fault_injection as a Gs(tValidate)Plugin

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

9 years agovalidate:scenario: Add a way to specify action structure size
Thibault Saunier [Mon, 2 Feb 2015 17:00:14 +0000 (18:00 +0100)]
validate:scenario: Add a way to specify action structure size

And return the register GstValidateActionType on registration

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

9 years agoscenario: Do not concider we are seek_in_paused if executing a new action
Thibault Saunier [Mon, 2 Feb 2015 10:41:24 +0000 (11:41 +0100)]
scenario: Do not concider we are seek_in_paused if executing a new action

The new action might change the position on purpose and we should not
fail in that case.

Also at that point we know the test of position after the seek has
been executed

+ Minor cosmetic fixes

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

9 years agovalidate:launcher:baseclasses: Avoid raising axception when all getting scenarios
Thibault Saunier [Tue, 20 Jan 2015 08:59:23 +0000 (09:59 +0100)]
validate:launcher:baseclasses: Avoid raising axception when all getting scenarios

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

9 years agolauncher: Use gst-integration-testsuites FDO git repo
Thibault Saunier [Tue, 13 Jan 2015 18:07:04 +0000 (19:07 +0100)]
launcher: Use gst-integration-testsuites FDO git repo

And make sure that people that were using the old repo get the origin
repo properly updated.

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

9 years agovalidate: launcher: Allow discovering scenario from full path
Thibault Saunier [Wed, 4 Feb 2015 14:27:37 +0000 (15:27 +0100)]
validate: launcher: Allow discovering scenario from full path

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

9 years agovalidate: scenario: Add a method to get the following action to be executed
Thibault Saunier [Wed, 4 Feb 2015 14:25:50 +0000 (15:25 +0100)]
validate: scenario: Add a method to get the following action to be executed

API:
  + gst_validate_scenario_get_next_action

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

9 years agovalidate: Add helper functions ti print actions
Thibault Saunier [Wed, 4 Feb 2015 14:24:35 +0000 (15:24 +0100)]
validate: Add helper functions ti print actions

API:
  + gst_validate_scenario_get_next_action
  + gst_validate_reporter_report_simple

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

9 years agovalidate: Minor documentation fixes
Thibault Saunier [Wed, 4 Feb 2015 14:23:29 +0000 (15:23 +0100)]
validate: Minor documentation fixes

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

9 years agovalidate: Set seek_with_stop as needing at least 2secs media files
Thibault Saunier [Wed, 4 Feb 2015 14:18:22 +0000 (15:18 +0100)]
validate: Set seek_with_stop as needing at least 2secs media files

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

9 years agovalidate: Fix the check of action that can be *not* executed
Thibault Saunier [Sat, 13 Dec 2014 22:23:11 +0000 (23:23 +0100)]
validate: Fix the check of action that can be *not* executed

The check was wrong and we ended up allowing seek actions to no be
executed.

API:
    GST_VALIDATE_ACTION_TYPE_NO_EXECUTION_NOT_FATAL

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

9 years agovalidate:scenario; Advertise action types that will be executed on addition
Thibault Saunier [Sat, 13 Dec 2014 22:16:27 +0000 (23:16 +0100)]
validate:scenario; Advertise action types that will be executed on addition

Adding a flag to the action type

And make that code thread safe.

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

9 years agovalidate:scenario: Add a Flag fore ActionType that need clocks sync
Thibault Saunier [Sat, 13 Dec 2014 22:12:30 +0000 (23:12 +0100)]
validate:scenario: Add a Flag fore ActionType that need clocks sync

And cleanly use it to set the need-clock-sync field in
the scenario properties

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

9 years agovalidate: Add the notion of INTERLACED actions
Thibault Saunier [Sat, 13 Dec 2014 18:17:45 +0000 (19:17 +0100)]
validate: Add the notion of INTERLACED actions

An interlaced action is an action that will be executed ASYNC but
without that will not block following actions during its execution.
The action should be set to done later on at any point during the
execution of the scenario.

API:
  + GST_VALIDATE_EXECUTE_ACTION_INTERLACED
  + GST_VALIDATE_ACTION_TYPE_INTERLACED

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

9 years agovalidate: Add a way to retrieve register actoin type from outside
Thibault Saunier [Sat, 13 Dec 2014 18:15:59 +0000 (19:15 +0100)]
validate: Add a way to retrieve register actoin type from outside

API:
  * GstValidateActionType
  * gst_validate_get_action_type

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

9 years agovalidate:launcher: Implement a FakeMediaDescriptor
Thibault Saunier [Sat, 13 Dec 2014 15:01:49 +0000 (16:01 +0100)]
validate:launcher: Implement a FakeMediaDescriptor

This allows us to more cleanly implement Simple pipeline test
generation

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

9 years agovalidate:scenario: Make action->scenario public API
Thibault Saunier [Sat, 13 Dec 2014 15:00:19 +0000 (16:00 +0100)]
validate:scenario: Make action->scenario public API

It can be usefull for action type implementers

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

9 years agovalidate:scenario: Add a disable-plugin action type
Thibault Saunier [Sat, 13 Dec 2014 15:00:12 +0000 (16:00 +0100)]
validate:scenario: Add a disable-plugin action type

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

9 years agovalidate: Properly advertise the wait action as ASYNC
Thibault Saunier [Fri, 12 Dec 2014 13:41:38 +0000 (14:41 +0100)]
validate: Properly advertise the wait action as ASYNC

And add some printing when executing the set-property action

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

9 years agovalidate: Enhance support for simple pipeline test generation
Thibault Saunier [Fri, 12 Dec 2014 13:36:16 +0000 (14:36 +0100)]
validate: Enhance support for simple pipeline test generation

The GstValidatePipelineGenerator was quite limited in term
of configuration for user who just want to specify pipelines
to run with/without scenario.

Enhance the API so that we can properly configure that.

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

9 years agovalidate: Wait for switch-track to complete before executing next action
Thibault Saunier [Thu, 11 Dec 2014 13:21:12 +0000 (14:21 +0100)]
validate: Wait for switch-track to complete before executing next action

This action type can take some time, we need to make sure that the
combiner/input-selector element properly pushed a buffer marked
as DISCONT to concider the action is done.

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

9 years agovalidate:scenario: Avoid waiting for 50ms between actions
Thibault Saunier [Thu, 11 Dec 2014 11:08:13 +0000 (12:08 +0100)]
validate:scenario: Avoid waiting for 50ms between actions

We should be able to execute the next action as soon as the previous
one is fully completed, make sure the code tries to do that and does
not artificially add some waiting time.

And make sure if the gst_validate_action_set_done is called from outside
our execution thread, we do not try to execute anything

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

9 years agoscenario: Add a signal to notify user when the scenario is DONE executing
Thibault Saunier [Wed, 10 Dec 2014 19:37:58 +0000 (20:37 +0100)]
scenario: Add a signal to notify user when the scenario is DONE executing

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

9 years agovalidate: launcher: Print test name in Result
Ramiro Polla [Tue, 20 Jan 2015 15:44:07 +0000 (16:44 +0100)]
validate: launcher: Print test name in Result

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

9 years agovalidate: launcher: Add option to run tests in parallel
Ramiro Polla [Fri, 16 Jan 2015 20:29:55 +0000 (21:29 +0100)]
validate: launcher: Add option to run tests in parallel

Patch 4/4 to implement parallel test execution.

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

9 years agovalidate: launcher: Print test number on result
Ramiro Polla [Fri, 16 Jan 2015 20:09:37 +0000 (21:09 +0100)]
validate: launcher: Print test number on result

With parallel test execution, it will be hard to track which result
relates to which test. Therefore, the test number should be printed
along with the results as well.

Patch 3/4 to implement parallel test execution.

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

9 years agovalidate: launcher: Use jobs list to take track of tests running
Ramiro Polla [Fri, 16 Jan 2015 20:08:54 +0000 (21:08 +0100)]
validate: launcher: Use jobs list to take track of tests running

Currently the tests are still run serially.

Patch 2/4 to implement parallel test execution.

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

9 years agovalidate: launcher: Use test index instead of counting test numbers
Ramiro Polla [Fri, 16 Jan 2015 19:35:33 +0000 (20:35 +0100)]
validate: launcher: Use test index instead of counting test numbers

Patch 1/4 to implement parallel test execution.

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

9 years agovalidate: launcher: Support simultaneous requests in RangeHTTPServer
Ramiro Polla [Mon, 19 Jan 2015 09:35:03 +0000 (10:35 +0100)]
validate: launcher: Support simultaneous requests in RangeHTTPServer

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

9 years agovalidate: launcher: Make TestManager handle waiting for processes
Ramiro Polla [Fri, 16 Jan 2015 18:08:19 +0000 (19:08 +0100)]
validate: launcher: Make TestManager handle waiting for processes

Patch 4/4 to make TestManager handle waiting for processes instead of
expecting each Test to do it.

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

9 years agovalidate: launcher: Use a Queue to test for test completion
Ramiro Polla [Fri, 16 Jan 2015 18:03:07 +0000 (19:03 +0100)]
validate: launcher: Use a Queue to test for test completion

TestManager will use a Queue to track progress for all tests. This
commit implements a queue inside Test to simplify the transition.

Patch 3/4 to make TestManager handle waiting for processes instead of
expecting each Test to do it.

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

9 years agovalidate: launcher: Initialize Test start time outside of wait_process
Ramiro Polla [Fri, 16 Jan 2015 18:00:25 +0000 (19:00 +0100)]
validate: launcher: Initialize Test start time outside of wait_process

wait_process will be moved to TestManager, so the values used to track
process update must remain inside Test.

Patch 2/4 to make TestManager handle waiting for processes instead of
expecting each Test to do it.

9 years agovalidate: launcher: Split process_update() out of wait_process()
Ramiro Polla [Fri, 16 Jan 2015 17:57:06 +0000 (18:57 +0100)]
validate: launcher: Split process_update() out of wait_process()

Patch 1/4 to make TestManager handle waiting for processes instead of
expecting each Test to do it.

9 years agovalidate: launcher: Move logfile handling out of Reporter and into Test
Ramiro Polla [Fri, 16 Jan 2015 17:50:38 +0000 (18:50 +0100)]
validate: launcher: Move logfile handling out of Reporter and into Test

This makes each Test handle its own logfile, allowing the Reporter to
work on multiple tests at the same time.

Patch 5/5 to move logfile handling out of Reporter and into Test.

9 years agovalidate: launcher: Remove redundant check
Ramiro Polla [Fri, 16 Jan 2015 18:54:56 +0000 (19:54 +0100)]
validate: launcher: Remove redundant check

self.out is always available when _get_captured() is called.

Patch 4/5 to move logfile handling out of Reporter and into Test.

9 years agovalidate: launcher: Split test log file handling in Reporter
Ramiro Polla [Fri, 16 Jan 2015 17:45:52 +0000 (18:45 +0100)]
validate: launcher: Split test log file handling in Reporter

Patch 3/5 to move logfile handling out of Reporter and into Test.

9 years agovalidate: launcher: Separate Reporter from current Test
Ramiro Polla [Fri, 16 Jan 2015 17:42:19 +0000 (18:42 +0100)]
validate: launcher: Separate Reporter from current Test

Instead of saving the current Test in Reporter for every test, use
function parameters to achieve the same goal.

Patch 2/5 to move logfile handling out of Reporter and into Test.

9 years agovalidate: launcher: Initialize reporter timer before starting all tests
Ramiro Polla [Fri, 16 Jan 2015 17:25:56 +0000 (18:25 +0100)]
validate: launcher: Initialize reporter timer before starting all tests

Patch 1/5 to move logfile handling out of Reporter and into Test.

9 years agovalidate: launcher: Don't wait for processes longer than necessary
Ramiro Polla [Mon, 12 Jan 2015 12:09:33 +0000 (13:09 +0100)]
validate: launcher: Don't wait for processes longer than necessary

9 years agosocket interposer: Be even more platform restrictive.
Mathieu Duponchelle [Tue, 3 Feb 2015 15:48:49 +0000 (16:48 +0100)]
socket interposer: Be even more platform restrictive.

9 years agovalidate: do not compile for android.
Mathieu Duponchelle [Tue, 3 Feb 2015 14:41:01 +0000 (15:41 +0100)]
validate: do not compile for android.

9 years agovalidate: Implement a fault injection library.
Mathieu Duponchelle [Fri, 30 Jan 2015 17:52:57 +0000 (18:52 +0100)]
validate: Implement a fault injection library.

+ And implement a corrupt-socket-recv action
+ Only compile this on Linux, LD_PRELOAD won't work on Windows.

For now the registering of the action is done through
a call to socket_interposer_init, this will get better
when we refactor the action logic.

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

9 years agovalidate: tests more issues with caps.
Mathieu Duponchelle [Fri, 23 Jan 2015 01:04:47 +0000 (02:04 +0100)]
validate: tests more issues with caps.

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

9 years agovalidate: Add a test case for caps missing field.
Mathieu Duponchelle [Fri, 23 Jan 2015 00:40:59 +0000 (01:40 +0100)]
validate: Add a test case for caps missing field.

+ Make the fake decoder have video/x-raw caps.

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

9 years agovalidate: prepare tests for port to tracers backend.
Mathieu Duponchelle [Thu, 22 Jan 2015 21:29:10 +0000 (22:29 +0100)]
validate: prepare tests for port to tracers backend.

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

9 years agobin-monitor: add itself as gobject data.
Mathieu Duponchelle [Thu, 22 Jan 2015 21:07:37 +0000 (22:07 +0100)]
bin-monitor: add itself as gobject data.

9 years agovalidate: launcher: Fix test log header output
Ramiro Polla [Tue, 13 Jan 2015 01:32:16 +0000 (02:32 +0100)]
validate: launcher: Fix test log header output

Write log file header before running tests, instead of overwriting the
file afterwards.

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

9 years agovalidate: launcher: Always create log files
Ramiro Polla [Thu, 15 Jan 2015 14:32:12 +0000 (15:32 +0100)]
validate: launcher: Always create log files

Create log files even when stdout redirection is enabled.
This commit partially reverts 20c28de.

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

9 years agovalidate: launcher: Introduce new parameter for log file redirecting
Ramiro Polla [Thu, 15 Jan 2015 14:26:14 +0000 (15:26 +0100)]
validate: launcher: Introduce new parameter for log file redirecting

Allow log file redirection through the new --redirect-logs parameter.
Keep the old --logs-dir stdout/stderr parameter, but reset to the
default logs directory in that case, and set redirect_logs internally.
This also prevents the creation of an stdout/stderr directory for
writing xunit.xml.

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

9 years agopad-monitor: plug caps leak on iterator resync
Thiago Santos [Fri, 9 Jan 2015 17:04:16 +0000 (14:04 -0300)]
pad-monitor: plug caps leak on iterator resync

9 years agopad-monitor: use the same filter caps when querying downstream caps
Thiago Santos [Fri, 9 Jan 2015 15:36:31 +0000 (12:36 -0300)]
pad-monitor: use the same filter caps when querying downstream caps

To avoid comparing the real result that has been filtered against
a much larger caps that contains all possibilities.

9 years agovalidate: tests: disable g_log handler
Thibault Saunier [Tue, 9 Dec 2014 09:09:15 +0000 (10:09 +0100)]
validate: tests:  disable g_log handler

It messes up our own failures counter

And pass test-utils into gst-indent

9 years agotests: padmonitor: disable glog handling
Thiago Santos [Mon, 8 Dec 2014 21:53:55 +0000 (18:53 -0300)]
tests: padmonitor: disable glog handling

It messes up our own failures counter

9 years agopad-monitor: get correct caps to check for proxied fields in caps queries
Thiago Santos [Mon, 8 Dec 2014 20:27:52 +0000 (17:27 -0300)]
pad-monitor: get correct caps to check for proxied fields in caps queries

Elements should proxy the peer element's caps fields and not what they
have currently set on their pads when replying to a caps query

9 years agopad-monitor: Only add pending caps fields for source pads
Thiago Santos [Mon, 8 Dec 2014 20:17:08 +0000 (17:17 -0300)]
pad-monitor: Only add pending caps fields for source pads

As caps events are downstream, caps set travels from sinks to
sources. Adding pending setcaps values to sink pads makes no sense
as when a new caps is set on the sink it would compare with values
currently set on the source pad, causing a critical failure when
renegotiation happens.

9 years agovalidate: launcher: Take the timeout as ref timeout to compute hard_timeout
Thibault Saunier [Mon, 8 Dec 2014 17:23:10 +0000 (18:23 +0100)]
validate: launcher: Take the timeout as ref timeout to compute hard_timeout

when it is provided.

9 years agovalidate: launcher: Set a hard timeout on GstValidate tests if we know the duration
Thibault Saunier [Mon, 8 Dec 2014 14:27:54 +0000 (15:27 +0100)]
validate: launcher: Set a hard timeout on GstValidate tests if we know the duration

9 years agovalidate: launcher: Force kill subprocess when done with them
Thibault Saunier [Mon, 8 Dec 2014 13:37:15 +0000 (14:37 +0100)]
validate: launcher: Force kill subprocess when done with them

Making sure that we do not end up having spurious subprocess around

9 years agolauncher: baseclass: add missing parameter
Thiago Santos [Mon, 8 Dec 2014 11:42:51 +0000 (08:42 -0300)]
launcher: baseclass: add missing parameter

Fixes "NameError: global name 'options' is not defined"

9 years agovalidate: launcher: Properly handle non default main dir
Thibault Saunier [Mon, 8 Dec 2014 09:09:57 +0000 (10:09 +0100)]
validate: launcher: Properly handle non default main dir

for the case of the new testsuite files

9 years agovalidate: launcher: Make the gstvalidate application a python module
Thibault Saunier [Sun, 7 Dec 2014 11:30:25 +0000 (12:30 +0100)]
validate: launcher: Make the gstvalidate application a python module

9 years agovalidate: Remove remaining reference to launcher/apps/validate
Thibault Saunier [Sat, 6 Dec 2014 09:53:37 +0000 (10:53 +0100)]
validate: Remove remaining reference to launcher/apps/validate

It has been removed now.

9 years agovalidate: Avoid assert removing an already removed signal handler
Thibault Saunier [Wed, 3 Dec 2014 10:28:28 +0000 (11:28 +0100)]
validate: Avoid assert removing an already removed signal handler

And, make sure that we set the return value != 0 when we receive
SIGINT

9 years agovalidate: Handle setting the HTTP server local path from testsuites
Thibault Saunier [Tue, 2 Dec 2014 16:32:18 +0000 (17:32 +0100)]
validate: Handle setting the HTTP server local path from testsuites

9 years agovalidate: Rename gst-qa-assets to gst-integration-testsuites
Thibault Saunier [Tue, 2 Dec 2014 14:41:17 +0000 (15:41 +0100)]
validate: Rename gst-qa-assets to gst-integration-testsuites

9 years agovalidate: print execution of set_subtitles actions
Thibault Saunier [Tue, 2 Dec 2014 14:39:09 +0000 (15:39 +0100)]
validate: print execution of set_subtitles actions

9 years agovalidate: Factor out an LauncherConfig class type to handle configurations
Thibault Saunier [Tue, 2 Dec 2014 09:02:09 +0000 (10:02 +0100)]
validate: Factor out an LauncherConfig class type to handle configurations

Allowing us to more simply define default value and expose an API on
top of it