platform/upstream/gstreamer.git
9 years agovalidate: Already having a monitor is no error
Thibault Saunier [Tue, 25 Nov 2014 14:32:31 +0000 (15:32 +0100)]
validate: Already having a monitor is no error

9 years agovalidate: pre commit hook: Do not try to run pep8 on non python files!
Thibault Saunier [Tue, 25 Nov 2014 14:30:42 +0000 (15:30 +0100)]
validate: pre commit hook: Do not try to run pep8 on non python files!

9 years agovalidate: Add scub_*_seeking_full scenarios
Thibault Saunier [Tue, 25 Nov 2014 14:29:29 +0000 (15:29 +0100)]
validate: Add scub_*_seeking_full scenarios

Which basically do the same thing as scrub_*_seeking but during
throughout the whole duration of the media

9 years agovalidate: Enhance documentation
Thibault Saunier [Fri, 21 Nov 2014 18:35:16 +0000 (19:35 +0100)]
validate: Enhance documentation

9 years agovalidate: Add an option to update all .media_info files
Thibault Saunier [Wed, 19 Nov 2014 16:58:23 +0000 (17:58 +0100)]
validate: Add an option to update all .media_info files

9 years agovalidate:scenario: Execute actions without playback time without a valid position
Thibault Saunier [Sun, 16 Nov 2014 22:05:45 +0000 (23:05 +0100)]
validate:scenario: Execute actions without playback time without a valid position

If the user did not specify any playback time we should be able to
execute actions even if the pipeline can't answer the position query

+ Make simpler to read the conditions of an action execution

9 years agovalidate:scenario: Properly handle ASYNC action execution in the API
Thibault Saunier [Sun, 9 Nov 2014 18:08:52 +0000 (19:08 +0100)]
validate:scenario: Properly handle ASYNC action execution in the API

The ->execute function now return a GstValidateExecuteActionReturn
which can be set as ASYNC in order to tell the scenario that the action
will be executed asynchronously, when the action is done, the caller is
responsible for calling gst_validate_action_set_done(); so that the
scenario keeps going on.

In this commit we make sure that the old API keeps working as
GST_VALIDATE_EXECUTE_ACTION_ERROR == FALSE and
GST_VALIDATE_EXECUTE_ACTION_OK == TRUE

Morevover GstValidateExecuteActionReturn is just a define

API:
    + gst_validate_action_set_done
    + GstValidateExecuteActionReturn

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

9 years agovalidate: Add a GstValidateActionTypeFlag flag
Thibault Saunier [Fri, 7 Nov 2014 22:19:59 +0000 (23:19 +0100)]
validate: Add a GstValidateActionTypeFlag flag

Allowing us to define action types more in detail.
Keep backward compatibility, at least with the C API

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

9 years agovalidate: Add a GstValidatePipelineMonitor subclass
Thibault Saunier [Fri, 21 Nov 2014 13:01:48 +0000 (14:01 +0100)]
validate: Add a GstValidatePipelineMonitor subclass

We had quite a bit of code dedicated to handled GstPipeline monitoring
inside GstValidateBinMonitor, cleanly split that code into a new object
type

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

9 years agovalidate:launcher: Force clock sync for some protocols
Thibault Saunier [Thu, 20 Nov 2014 10:55:45 +0000 (11:55 +0100)]
validate:launcher: Force clock sync for some protocols

In HLS for example, not having clock sync might lead to races and failures
do not test that for now

9 years agovalidate: Don't fail getting master report from a ghostpad without target
Thibault Saunier [Thu, 20 Nov 2014 10:53:34 +0000 (11:53 +0100)]
validate: Don't fail getting master report from a ghostpad without target

9 years agovalidate: Print current position even if we do not know the rate
Thibault Saunier [Wed, 19 Nov 2014 19:05:57 +0000 (20:05 +0100)]
validate: Print current position even if we do not know the rate

That could cause gst-validate-launcher to wrongly concider tests
as timeout

9 years agovalidate:scenario: Force clock sink for scenarios with a pause action
Thibault Saunier [Mon, 17 Nov 2014 10:39:12 +0000 (11:39 +0100)]
validate:scenario: Force clock sink for scenarios with a pause action

9 years agovalidate: Handle wrong paths when listing avalaible apps
Thibault Saunier [Sat, 15 Nov 2014 17:08:42 +0000 (18:08 +0100)]
validate: Handle wrong paths when listing avalaible apps

User can make mistake or we can have an empty path.

9 years agovalidate: Do not check if first buffer running time is 0
Thibault Saunier [Tue, 11 Nov 2014 19:56:04 +0000 (20:56 +0100)]
validate: Do not check if first buffer running time is 0

It can perfectly not be 0, so it makes no sense to check that.

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

9 years agovalidate: Add audiomixer test to the default testsuite
Thibault Saunier [Thu, 6 Nov 2014 22:43:47 +0000 (23:43 +0100)]
validate: Add audiomixer test to the default testsuite

9 years agopad-monitor: Give better details about segment mismatch issues
Thibault Saunier [Sat, 1 Nov 2014 08:24:15 +0000 (09:24 +0100)]
pad-monitor: Give better details about segment mismatch issues

9 years agovalidate: Be more precise in issue type for wrong seqnum
Thibault Saunier [Thu, 30 Oct 2014 13:10:33 +0000 (14:10 +0100)]
validate: Be more precise in issue type for wrong seqnum

Depending on the type of event where the bug occurs,
it is not the same issue type. That allows us to have
much precise reports, and better explain the user
where the issue stands.

9 years agovalidate: Fix a few annotation issues
Thibault Saunier [Thu, 16 Oct 2014 15:32:56 +0000 (17:32 +0200)]
validate: Fix a few annotation issues

9 years agovalidate: Add the notion of WAIT_MULTIPLIER for the wait action
Thibault Saunier [Wed, 15 Oct 2014 15:03:48 +0000 (17:03 +0200)]
validate: Add the notion of WAIT_MULTIPLIER for the wait action

Allowing the user to decide to wait more, or less, or even not wait
for the wait action to execute when running scenarios.

9 years agovalidate:scenario: Report an EXECUTION_ERROR on action execution failure
Thibault Saunier [Sun, 28 Sep 2014 20:37:01 +0000 (22:37 +0200)]
validate:scenario: Report an EXECUTION_ERROR on action execution failure

If the action type handles a better error report type, it should just
return TRUE, and report its issue itself.

9 years agovalidate: Do not exit when we can not discover a result file
Thibault Saunier [Fri, 19 Sep 2014 07:13:13 +0000 (09:13 +0200)]
validate: Do not exit when we can not discover a result file

Loggable.error actually exit the process, it is not what we want!

+ Avoid a backtrace

9 years agoscenario: Allow set-property action to work much earlier
Edward Hervey [Mon, 3 Nov 2014 10:50:54 +0000 (11:50 +0100)]
scenario: Allow set-property action to work much earlier

By default an action has no playback-time, this makes it actionable
immediatly.

When no playback-time is set on a set-property action, it will
be activated the moment the element is added in the pipeline.

9 years agovalidate-bin-monitor: Initialize local variable
Edward Hervey [Fri, 31 Oct 2014 15:01:52 +0000 (16:01 +0100)]
validate-bin-monitor: Initialize local variable

Avoids segfaults when freeing them if they didn't get filled in

9 years agovalidate: update pre-commit hook.
Mathieu Duponchelle [Sun, 26 Oct 2014 13:47:12 +0000 (14:47 +0100)]
validate: update pre-commit hook.

+ Allows to run multiple pre-commit hooks.
+ Always relink the hooks on autogen.
+ Run pep8 on commited python files.

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

9 years agoapps: gstvalidate.py: fix various pyflakes / uncaught pep8 issues.
Mathieu Duponchelle [Sat, 25 Oct 2014 12:59:49 +0000 (14:59 +0200)]
apps: gstvalidate.py: fix various pyflakes / uncaught pep8 issues.

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

9 years agovalidate-launcher: utils: fix various pyflakes / uncaught pep8 issues.
Mathieu Duponchelle [Sat, 25 Oct 2014 12:50:54 +0000 (14:50 +0200)]
validate-launcher: utils: fix various pyflakes / uncaught pep8 issues.

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

9 years agovalidate-launcher: main: fix various pyflakes / uncaught pep8 issues.
Mathieu Duponchelle [Sat, 25 Oct 2014 12:49:26 +0000 (14:49 +0200)]
validate-launcher: main: fix various pyflakes / uncaught pep8 issues.

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

9 years agovalidate-launcher: loggable: fix various pyflakes / uncaught pep8 issues.
Mathieu Duponchelle [Sat, 25 Oct 2014 12:46:26 +0000 (14:46 +0200)]
validate-launcher: loggable: fix various pyflakes / uncaught pep8 issues.

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

9 years agovalidate-launcher: baseclasses: fix various pyflakes / uncaught pep8 issues.
Mathieu Duponchelle [Fri, 24 Oct 2014 12:38:00 +0000 (14:38 +0200)]
validate-launcher: baseclasses: fix various pyflakes / uncaught pep8 issues.

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

9 years agovalidate-launcher: pep8ify sources.
Mathieu Duponchelle [Fri, 24 Oct 2014 12:23:52 +0000 (14:23 +0200)]
validate-launcher: pep8ify sources.

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

9 years agovalidate-utils: downgrade ERROR to DEBUG.
Mathieu Duponchelle [Thu, 23 Oct 2014 19:43:45 +0000 (21:43 +0200)]
validate-utils: downgrade ERROR to DEBUG.

This function is called in places where it is legit for it
to return NULL.

9 years agolauncher: add a way to specify an application directory.
Mathieu Duponchelle [Thu, 23 Oct 2014 19:36:03 +0000 (21:36 +0200)]
launcher: add a way to specify an application directory.

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

9 years agolauncher: Don't implement product-specific TestManagers.
Mathieu Duponchelle [Thu, 23 Oct 2014 19:34:27 +0000 (21:34 +0200)]
launcher: Don't implement product-specific TestManagers.

This manager will be moved in GES.

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

9 years agovalidate-launcher: restructure filesystem
Mathieu Duponchelle [Thu, 23 Oct 2014 13:21:14 +0000 (15:21 +0200)]
validate-launcher: restructure filesystem

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

9 years agovalidate: Fix compiler warning about implicit enum type conversion
Ramprakash Jelari [Fri, 24 Oct 2014 13:11:30 +0000 (18:41 +0530)]
validate: Fix compiler warning about implicit enum type conversion

gst-validate-reporter.c:119:39: error: implicit conversion from enumeration type
      'GstValidateReportingDetails' to different enumeration type
      'GstValidateInterceptionReturn' [-Werror,-Wenum-conversion]
  GstValidateInterceptionReturn ret = GST_VALIDATE_SHOW_UNKNOWN;
                                ~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~
gst-validate-reporter.c:124:11: error: implicit conversion from enumeration type
      'GstValidateReportingDetails' to different enumeration type
      'GstValidateInterceptionReturn' [-Werror,-Wenum-conversion]
    ret = iface->get_reporting_level (reporter);
        ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gst-validate-reporter.c:127:10: error: implicit conversion from enumeration type
      'GstValidateInterceptionReturn' to different enumeration type
      'GstValidateReportingDetails' [-Werror,-Wenum-conversion]
  return ret;
  ~~~~~~ ^~~

9 years agobuild: We install all headers system wide for now.
Mathieu Duponchelle [Wed, 22 Oct 2014 12:16:45 +0000 (14:16 +0200)]
build: We install all headers system wide for now.

Will be fixed when the API is deemed stable enough

9 years agovalidate: rename GstValidateReportingLevel.
Mathieu Duponchelle [Tue, 21 Oct 2014 21:31:37 +0000 (23:31 +0200)]
validate: rename GstValidateReportingLevel.

Removes the confusion with GstValidateReportLevel.

Modeled on GstDebugGraphDetails.

9 years agovalidate: Verify that elements always send a segment before pushing EOS
Thibault Saunier [Sat, 18 Oct 2014 16:55:59 +0000 (18:55 +0200)]
validate: Verify that elements always send a segment before pushing EOS

EOS is some kind of data flow and thus a segment event should always be
pushed before the EOS is sent

9 years agovalidate: Properly check that the seqnum of the EOS is always properly set
Thibault Saunier [Sat, 18 Oct 2014 16:53:03 +0000 (18:53 +0200)]
validate: Properly check that the seqnum of the EOS is always properly set

In the pipeline, an EOS should always have the same seqnum of the
previous SEGMENT event that was received. If the segment is the result
of a seek, it should always be the same as the seek seqnum too.

+ (Mathieu Duponchelle): fix reporting and concatenation tests.

9 years agovalidate: Add support for text based override files
Thibault Saunier [Fri, 3 Oct 2014 16:51:17 +0000 (18:51 +0200)]
validate: Add support for text based override files

Allowing user to easily determine the severity of issue
types in a config file

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

9 years agovalidate: Remove unused method
Thibault Saunier [Fri, 3 Oct 2014 16:53:42 +0000 (18:53 +0200)]
validate: Remove unused method

gst_media_descriptor_add_frame is not used anywhere

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

9 years agovalidate: Move GstStructure file parsing into utils
Thibault Saunier [Fri, 3 Oct 2014 16:42:04 +0000 (18:42 +0200)]
validate: Move GstStructure file parsing into utils

So it can be reused, at least in GstValidate.

9 years agovalidate: report: Simplify the issue ID registering using GQuarks
Thibault Saunier [Thu, 2 Oct 2014 13:34:28 +0000 (15:34 +0200)]
validate: report: Simplify the issue ID registering using GQuarks

+ Remove unused issue types

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

9 years agovalidate: Check all buffers when we have the info from MediaDescriptor
Thibault Saunier [Mon, 15 Sep 2014 15:27:54 +0000 (17:27 +0200)]
validate: Check all buffers when we have the info from MediaDescriptor

We now check that each buffer is the expected one for each buffer that
come into the decoder.

+ Fix some minor leaks in test-utils

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

9 years agovalidate:media-descriptor-parser: Add a way to create from a string
Thibault Saunier [Thu, 2 Oct 2014 09:27:30 +0000 (11:27 +0200)]
validate:media-descriptor-parser: Add a way to create from a string

So it is simple to make use of it from the testsuite

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

9 years agoreport: g_critical are CRITICAL issues!
Thibault Saunier [Wed, 1 Oct 2014 14:24:58 +0000 (16:24 +0200)]
report: g_critical are CRITICAL issues!

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

9 years agovalidate: launcher: Fix printing of errors in final report
Thibault Saunier [Wed, 17 Sep 2014 15:32:52 +0000 (17:32 +0200)]
validate: launcher: Fix printing of errors in final report

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

9 years agovalidate: Add the possibility to generate media infos with frame descs
Thibault Saunier [Mon, 15 Sep 2014 17:14:27 +0000 (19:14 +0200)]
validate: Add the possibility to generate media infos with frame descs

+ Fix a little issue when the generation fails.

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

9 years agovalidate: MediaDescriptors: Add md5sum to buffer informations
Thibault Saunier [Mon, 15 Sep 2014 15:26:23 +0000 (17:26 +0200)]
validate: MediaDescriptors: Add md5sum to buffer informations

In the media descriptor files, we now have the md5sum of the actual
content of encoded buffers so that we can check that the buffer content is
perfectly what is was supposed to be.

+ Fix the check of whether a frame is a keyframe in the string
  comparison (g_ascii_strcasecmp  return 0 if string matches)

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

9 years agovalidate: Move some method between GstMediaDescriptorParser and GstMediaDescriptor
Thibault Saunier [Mon, 15 Sep 2014 15:25:14 +0000 (17:25 +0200)]
validate: Move some method between GstMediaDescriptorParser and GstMediaDescriptor

So that method land where they actually belong.

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

9 years agovalidate: Add a way to pass a MediaDescriptor around monitors
Thibault Saunier [Mon, 15 Sep 2014 15:22:52 +0000 (17:22 +0200)]
validate: Add a way to pass a MediaDescriptor around monitors

And add an option in gst-validate so that the user can define what
media descriptor file to use.

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

9 years agovalidate:media-descriptor: Handle stream with no tags
Thibault Saunier [Fri, 12 Sep 2014 10:12:14 +0000 (12:12 +0200)]
validate:media-descriptor: Handle stream with no tags

It was segfaulting before.

9 years agovalidate: Add more files to gitignore
Thibault Saunier [Wed, 17 Sep 2014 14:51:20 +0000 (16:51 +0200)]
validate: Add more files to gitignore

9 years agovalidate: Move some method between GstMediaDescriptorParser and GstMediaDescriptor
Thibault Saunier [Mon, 15 Sep 2014 15:25:14 +0000 (17:25 +0200)]
validate: Move some method between GstMediaDescriptorParser and GstMediaDescriptor

So that method land where they actually belong.

9 years agovalidate-report / reporter: rework the way we repeat issues.
Mathieu Duponchelle [Sun, 12 Oct 2014 14:25:25 +0000 (16:25 +0200)]
validate-report / reporter: rework the way we repeat issues.

+ runner: update reports count algorithm.

9 years agopad-monitor: mark the peer pad as EOS too.
Mathieu Duponchelle [Sun, 12 Oct 2014 14:13:51 +0000 (16:13 +0200)]
pad-monitor: mark the peer pad as EOS too.

When a sink pad gets EOS, its src pad monitor should also
be marked as EOS (helpful with issue concatenation).

9 years agovalidate-pad-monitor / runner: Check per-object reporting levels.
Mathieu Duponchelle [Fri, 10 Oct 2014 08:22:31 +0000 (10:22 +0200)]
validate-pad-monitor / runner: Check per-object reporting levels.

9 years agovalidate-report: Set conditions in which a report can't be master.
Mathieu Duponchelle [Sun, 12 Oct 2014 12:36:13 +0000 (14:36 +0200)]
validate-report: Set conditions in which a report can't be 

9 years agovalidate-report: Add a reporting level field and setter.
Mathieu Duponchelle [Sun, 12 Oct 2014 12:34:34 +0000 (14:34 +0200)]
validate-report: Add a reporting level field and setter.

9 years agovalidate-runner: implement synthetic report.
Mathieu Duponchelle [Tue, 21 Oct 2014 17:43:45 +0000 (19:43 +0200)]
validate-runner: implement synthetic report.

+ Fix criticals logic in validate_runner_printf
+ Update padmonitor tests
+ Split validate_report_printf function.

9 years agovalidate-runner: Implement REPORT_NONE for global reporting.
Mathieu Duponchelle [Fri, 10 Oct 2014 04:01:03 +0000 (06:01 +0200)]
validate-runner: Implement REPORT_NONE for global reporting.

Yeah that was tough. Helpful already though, for example:
GST_VALIDATE_REPORT_LEVEL=none,x:all gst-validate src name=x ! sink
will only report issues reported by the source.

+ Add test.

9 years agotests: Check monitors correctly determine their reporting level.
Mathieu Duponchelle [Fri, 10 Oct 2014 03:08:28 +0000 (05:08 +0200)]
tests: Check monitors correctly determine their reporting level.

+ [API] gst_validate_reporter_get_reporting_level

9 years agovalidate-runner / monitor: Let the user single out pads.
Mathieu Duponchelle [Fri, 10 Oct 2014 01:55:37 +0000 (03:55 +0200)]
validate-runner / monitor: Let the user single out pads.

That's some pretty specific code but it should be helpful.
The following syntax can be used : element-name::pad-name.

+ Free return of gst_object_get_name.

9 years agovalidate-runner / reporter: Sanitize reports refcounting.
Mathieu Duponchelle [Fri, 10 Oct 2014 00:52:26 +0000 (02:52 +0200)]
validate-runner / reporter: Sanitize reports refcounting.

The previous code worked but was confusing, the runner didn't actually
take the ref it was releasing later.

+ Fix indentation.

9 years agotests: Test reports refcounts.
Mathieu Duponchelle [Fri, 10 Oct 2014 00:49:54 +0000 (02:49 +0200)]
tests: Test reports refcounts.

+ Set the element monitor on the element as qdata.

9 years agovalidate-monitor: Determine the reporting level at setup.
Mathieu Duponchelle [Thu, 9 Oct 2014 23:17:43 +0000 (01:17 +0200)]
validate-monitor: Determine the reporting level at setup.

9 years agovalidate-runner: Add code to parse GST_VALIDATE_REPORT_LEVEL.
Mathieu Duponchelle [Thu, 9 Oct 2014 17:41:48 +0000 (19:41 +0200)]
validate-runner: Add code to parse GST_VALIDATE_REPORT_LEVEL.

+ Extend the tests.
+ [API] gst_validate_runner_get_default_reporting_level
+ [API] gst_validate_runner_get_reporting_level_for_name

9 years agovalidate-runner: report-level initial work.
Mathieu Duponchelle [Wed, 8 Oct 2014 03:08:21 +0000 (05:08 +0200)]
validate-runner: report-level initial work.

+ Defines reporting levels and document them.
+ Add API to get the default level.
+ fix indentation.
+ fix some typos.
+ Add the beginning of a reporting test.

9 years agovalidate-pad-monitor: concatenate issues.
Mathieu Duponchelle [Thu, 2 Oct 2014 00:50:29 +0000 (02:50 +0200)]
validate-pad-monitor: concatenate issues.

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

The process is to check for a similar report in intercept_report on
the pads of the upstream element, set that report as the master report
of the intercepted report, and return REPORTER_KEEP instead
of REPORTER_REPORT.

9 years agotest-utils: add a create_and_monitor element function.
Mathieu Duponchelle [Thu, 2 Oct 2014 00:34:26 +0000 (02:34 +0200)]
test-utils: add a create_and_monitor element function.

9 years agovalidate-reporter: Add some methods
Mathieu Duponchelle [Wed, 1 Oct 2014 16:28:33 +0000 (18:28 +0200)]
validate-reporter: Add some methods

+ gst_validate_reporter_get_reports
+ gst_validate_reporter_get_reports_count

9 years agovalidate-report: Add the notion of master / shadow reports.
Mathieu Duponchelle [Wed, 1 Oct 2014 13:53:24 +0000 (15:53 +0200)]
validate-report: Add the notion of master / shadow reports.

A master report is a report that has been detected by a monitor
to stem from the same issue. It thus contains a list of
"shadow reports" which it will browse when printing itself.

9 years agovalidate-report: Make the ref / unref functions safer.
Mathieu Duponchelle [Wed, 1 Oct 2014 13:50:11 +0000 (15:50 +0200)]
validate-report: Make the ref / unref functions safer.

9 years agotests/padmonitor: Correcly strdup the result of get_metadata.
Mathieu Duponchelle [Tue, 21 Oct 2014 11:07:02 +0000 (13:07 +0200)]
tests/padmonitor: Correcly strdup the result of get_metadata.

The const pointer was becoming invalid after the first call to add_metadata,
and we ended up setting corrupted data on the second call.

9 years agovalidate-reporter: Add return value to intercept_report.
Mathieu Duponchelle [Wed, 1 Oct 2014 13:11:21 +0000 (15:11 +0200)]
validate-reporter: Add return value to intercept_report.

It will allow to drop, keep or report reports.

9 years agovalidate-pad-monitor: Reimplement reporter interface.
Mathieu Duponchelle [Tue, 30 Sep 2014 14:08:46 +0000 (16:08 +0200)]
validate-pad-monitor: Reimplement reporter interface.

+ Do nothing there for now, except chain up.

9 years agovalidate-reporter: add gst_validate_reporter_get_report.
Mathieu Duponchelle [Tue, 30 Sep 2014 12:52:35 +0000 (14:52 +0200)]
validate-reporter: add gst_validate_reporter_get_report.

+ Add locking.

9 years agoBack to development
Thibault Saunier [Mon, 20 Oct 2014 11:38:20 +0000 (13:38 +0200)]
Back to development

9 years agoRelease 1.4.0
Thibault Saunier [Mon, 20 Oct 2014 10:04:25 +0000 (12:04 +0200)]
Release 1.4.0

9 years agovalidate: Print position if it could properly be queried
Thibault Saunier [Mon, 13 Oct 2014 14:28:54 +0000 (16:28 +0200)]
validate: Print position if it could properly be queried

Otherwize we will print meaningless garbage.

9 years agovalidate:launcher: Minor enhancement in the documentation
Thibault Saunier [Mon, 13 Oct 2014 08:32:07 +0000 (10:32 +0200)]
validate:launcher: Minor enhancement in the documentation

9 years agovalidate: Rename action type playback_time to playback-time
Thibault Saunier [Sun, 12 Oct 2014 18:19:42 +0000 (20:19 +0200)]
validate: Rename action type playback_time to playback-time

Keeping backward compatiblity with the old naming

9 years agovalidate: Rename gst_validate_add_action_type to gst_validate_register_action_type
Thibault Saunier [Sun, 12 Oct 2014 18:07:58 +0000 (20:07 +0200)]
validate: Rename gst_validate_add_action_type to gst_validate_register_action_type

The _register naming corresponds much better to what the method does
and makes it more similar to how we refer to this kind of action in
GStreamer.

It is a last minute API change, but that API should not change anymore
after 1.4 is released.

9 years agovalidate: Fix the addition of playback_time in the parameter types
Thibault Saunier [Sun, 12 Oct 2014 18:00:03 +0000 (20:00 +0200)]
validate: Fix the addition of playback_time in the parameter types

9 years agovalidate: Rename --list-action-types to --inspect-action-type
Thibault Saunier [Sun, 12 Oct 2014 17:46:39 +0000 (19:46 +0200)]
validate: Rename --list-action-types to --inspect-action-type

Making clearer the meaning of the parameter and closer to the
usual naming in the GStreamer land.

9 years agovalidate: Add the 'flags' for the seek action type
Thibault Saunier [Sun, 12 Oct 2014 17:16:08 +0000 (19:16 +0200)]
validate: Add the 'flags' for the seek action type

This was always a mandatory field but was not documented

9 years agovalidate: mishandled pointer criticals
Anuj Jaiswal [Mon, 29 Sep 2014 04:52:55 +0000 (10:22 +0530)]
validate: mishandled pointer criticals

Free glist of criticals

Signed-off-by: Anuj Jaiswal <anuj.jaiswal@samsung.com>
https://bugzilla.gnome.org/show_bug.cgi?id=736313

9 years agovalidate:docs: Add documentation about the default testsuite
Thibault Saunier [Wed, 1 Oct 2014 08:54:47 +0000 (10:54 +0200)]
validate:docs: Add documentation about the default testsuite

9 years agovalidate-runner: switch to using a GList for the reports.
Mathieu Duponchelle [Tue, 30 Sep 2014 08:30:24 +0000 (10:30 +0200)]
validate-runner: switch to using a GList for the reports.

+ Return a copy of that list in get_reports.
+ update tests.

9 years agovalidate-runner: Hide implementation.
Mathieu Duponchelle [Tue, 30 Sep 2014 07:24:48 +0000 (09:24 +0200)]
validate-runner: Hide implementation.

9 years agogst-validate-runner: Add locking for the reports list.
Mathieu Duponchelle [Tue, 30 Sep 2014 07:11:58 +0000 (09:11 +0200)]
gst-validate-runner: Add locking for the reports list.

9 years agoRelease 1.3.90
Thibault Saunier [Mon, 29 Sep 2014 13:37:40 +0000 (15:37 +0200)]
Release 1.3.90

9 years agovalidate:launcher: Factorize code to get a MediaDescriptor name for classname
Thibault Saunier [Fri, 12 Sep 2014 08:47:18 +0000 (10:47 +0200)]
validate:launcher: Factorize code to get a MediaDescriptor name for classname

Instead of copy/pasting that code badly

9 years agovalidate/docs: Add location of Scenario/Action defines
Edward Hervey [Fri, 12 Sep 2014 08:22:15 +0000 (10:22 +0200)]
validate/docs: Add location of Scenario/Action defines

9 years agovalidate: (performance issue)refactor to remove duplicate assignment
Anuj Jaiswal [Wed, 10 Sep 2014 11:15:41 +0000 (16:45 +0530)]
validate: (performance issue)refactor to remove duplicate assignment

Signed-off-by: Anuj Jaiswal <anuj.jaiswal@samsung.com>
https://bugzilla.gnome.org/show_bug.cgi?id=736412

9 years agovalidate: docs: Always dist the launcher directoty
Thibault Saunier [Thu, 11 Sep 2014 08:54:43 +0000 (10:54 +0200)]
validate: docs: Always dist the launcher directoty

Fixing make distcheck

9 years agovalidate: Get the Runner reports in order of arrival
Thibault Saunier [Thu, 11 Sep 2014 07:42:02 +0000 (09:42 +0200)]
validate: Get the Runner reports in order of arrival

Making sure they are printed in the right order

9 years agovalidate: Start a testsuite
Thibault Saunier [Wed, 10 Sep 2014 07:47:22 +0000 (09:47 +0200)]
validate: Start a testsuite

Currently implemented tests are:
  * Settup and cleanup on monitor is done properly
  * Some tests in the PadMonitor are done properly, namely:
        - Buffer before segment
        - Buffer outside segment
        - First buffer running time is always 0
        - The Demuxer flow aggregation is properly checked

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

9 years agovalidate/private: Avoid double typdef
Edward Hervey [Fri, 12 Sep 2014 07:49:35 +0000 (09:49 +0200)]
validate/private: Avoid double typdef

Instead just include required (public and local) header

gst-validate-scenario.h:43:44: error: redefinition of typedef 'GstValidateActionParameter' is a C11 feature [-Werror,-Wtypedef-redefinition]