platform/upstream/gstreamer.git
8 years agovalidate:launcher: Add proper check for is_seekable
Vineeth T M [Thu, 12 Nov 2015 00:04:01 +0000 (09:04 +0900)]
validate:launcher: Add proper check for is_seekable

The seekable variable in media_info file is of type string. When checking if the file
is seekable using is_seekable, it just returns the string, resulting in it always being true.
It should actually be comparing the string and returning true or false based on comparison

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

8 years agovalidate: fast_forward: Calculate proper playback-time for scenario
Vineeth T M [Thu, 27 Aug 2015 02:16:39 +0000 (11:16 +0900)]
validate: fast_forward: Calculate proper playback-time for scenario

In case of fast-forward scenario, the playback-time is not set properly
as per increase in the rate. This is resulting in short media files of duration
less that 15 seconds to fail.

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

8 years agocodecanalyzer: fix typo leading to implicit decl warning at build-time
Reynaldo H. Verdejo Pinochet [Thu, 28 Jan 2016 22:59:08 +0000 (14:59 -0800)]
codecanalyzer: fix typo leading to implicit decl warning at build-time

8 years agocodecanalyzer: do not use g_error if abort is not desired
Reynaldo H. Verdejo Pinochet [Thu, 28 Jan 2016 22:48:17 +0000 (14:48 -0800)]
codecanalyzer: do not use g_error if abort is not desired

Use g_printerr() instead.

g_error() calls abort after outputting the message
so these blocks' return statements and free()s
were unreachable.

Aditionally, fix wrong void returns on non-void
function, drop trailing whitespace before newline and
add \n's as needed (default handler won't add one).

8 years agocodecanalyzer: add missing includes for g_printf()
Reynaldo H. Verdejo Pinochet [Thu, 28 Jan 2016 22:34:37 +0000 (14:34 -0800)]
codecanalyzer: add missing includes for g_printf()

8 years agocodecanalyzer: Update README URL in help dialog
Reynaldo H. Verdejo Pinochet [Thu, 28 Jan 2016 22:25:59 +0000 (14:25 -0800)]
codecanalyzer: Update README URL in help dialog

Previous one was a 404

8 years agoconfigure: fix typos
Reynaldo H. Verdejo Pinochet [Thu, 28 Jan 2016 19:22:15 +0000 (11:22 -0800)]
configure: fix typos

8 years agopad-monitor: More fixes of previous commit
Edward Hervey [Thu, 21 Jan 2016 14:05:52 +0000 (15:05 +0100)]
pad-monitor: More fixes of previous commit

You'd think in 2016 compilers could complain when assigning/comparing
different types of enums ... *sigh*.

8 years agotools: Fix relative track switching
Edward Hervey [Wed, 20 Jan 2016 12:42:31 +0000 (13:42 +0100)]
tools: Fix relative track switching

I have no idea where that "-2" came from, but it was obviously wrong.
Just use modulo "total number of streams" to get the proper track id.

8 years agovalidate: Remove debugging left overs
Thibault Saunier [Thu, 21 Jan 2016 13:23:24 +0000 (14:23 +0100)]
validate: Remove debugging left overs

8 years agopad-monitor: Add support for GstPadEventFullFunc
Edward Hervey [Thu, 21 Jan 2016 13:17:40 +0000 (14:17 +0100)]
pad-monitor: Add support for GstPadEventFullFunc

This ensures our sink pad event wrapper is properly called if the
element implement a GstPadEventFullFunc instead of a regular one.

Removes all stray "buffer received before segment" issues with
queue/multiqueue

8 years agovalidate: Fix testsuite
Thibault Saunier [Thu, 21 Jan 2016 10:13:55 +0000 (11:13 +0100)]
validate: Fix testsuite

Use fake elements instead of real ones in our tests so that
we control exactly the number of issues generated.

Until now we were trying to hide extra issues with a probe dropping
events and buffers but since 2dfa548f3645844082c3db65d96d87255701b3ad
"pad: Append hooks instead of prepending to call them in the order they were added"
in core, hidding will not work.

8 years agog-i: fix init section to avoid compiler warnings
Thibault Saunier [Tue, 19 Jan 2016 10:31:37 +0000 (11:31 +0100)]
g-i: fix init section to avoid compiler warnings

8 years agorunner: Report criticals when the reporter is in smart mode
Thibault Saunier [Fri, 15 Jan 2016 20:13:59 +0000 (20:13 +0000)]
runner: Report criticals when the reporter is in smart mode

8 years agomedia-descriptor-writer: track running time of buffers
Thiago Santos [Thu, 26 Nov 2015 20:08:12 +0000 (17:08 -0300)]
media-descriptor-writer: track running time of buffers

PTS and DTS can be deceiving as a change in segment can dramatically change
playback synchronization. Track the running-time as well to properly
get any change in synchronization

8 years agoAdd a toplevel configure script to build components at once
Thibault Saunier [Thu, 10 Dec 2015 13:10:54 +0000 (14:10 +0100)]
Add a toplevel configure script to build components at once

And this way respect https://github.com/cgwalters/build-api

8 years agomedia-check: enable 'full' for files which reference are also 'full'
Thiago Santos [Mon, 30 Nov 2015 14:54:05 +0000 (11:54 -0300)]
media-check: enable 'full' for files which reference are also 'full'

If the reference file has frames information, enable it automatically
so that the comparison file also has frames to be used.

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

8 years agomedia-descriptor: check if frame data matches
Thiago Santos [Fri, 27 Nov 2015 21:05:23 +0000 (18:05 -0300)]
media-descriptor: check if frame data matches

When comparing media descriptors, also check if the frames
match

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

8 years agomedia-descriptor-writer: refactor getting the streamnode by a pad
Thiago Santos [Thu, 26 Nov 2015 19:30:20 +0000 (16:30 -0300)]
media-descriptor-writer: refactor getting the streamnode by a pad

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

8 years agomedia-descriptor-writer: remove condition from inside loop
Thiago Santos [Thu, 26 Nov 2015 20:20:20 +0000 (17:20 -0300)]
media-descriptor-writer: remove condition from inside loop

Only enter the loop if it indeed has a change of doing something

8 years agodocs: fix typo
Thiago Santos [Mon, 30 Nov 2015 14:00:07 +0000 (11:00 -0300)]
docs: fix typo

Retrive -> retrieve

8 years agovalidate: Add some documentation and annotiations
Thibault Saunier [Wed, 2 Dec 2015 12:50:02 +0000 (13:50 +0100)]
validate: Add some documentation and annotiations

8 years agovalidate: Add a 'smart' reporting details mode
Thibault Saunier [Wed, 2 Dec 2015 12:49:01 +0000 (13:49 +0100)]
validate: Add a 'smart' reporting details mode

Making sure to show all informations for critical issues, but be synthetic for others

8 years agoscenario: Set the default action execution interval to 10ms
Edward Hervey [Mon, 23 Nov 2015 16:44:27 +0000 (17:44 +0100)]
scenario: Set the default action execution interval to 10ms

Having a default value of 0 meant that a g_idle_add loop was constantly
running, causing each test to use 100% cpu.

This is no longer required. Using a 10ms interval brings down cpu usage
to a sane value

8 years agocodecanalyzer: Fix memory leaks when context parse fails
Vineeth T M [Thu, 20 Aug 2015 07:54:14 +0000 (16:54 +0900)]
codecanalyzer: Fix memory leaks when context parse fails

When g_option_context_parse fails, context and error variables are
not getting free'd which results in memory leaks being reported.

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

8 years agovalidate: media-descriptor-writer: Don't create media info when stream info is not...
Vineeth T M [Mon, 24 Aug 2015 03:30:57 +0000 (12:30 +0900)]
validate: media-descriptor-writer: Don't create media info when stream info is not present.

When a file does not contain any stream info, then there is no need
to create the media info file as, it is not considered to be a valid file
and no validate checks are done for the same.
This skips unnecessary files like .txt, .dump files

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

8 years agovalidate: launcher: Set scenario manager config before discovering testsuites
Thibault Saunier [Mon, 16 Nov 2015 15:45:13 +0000 (16:45 +0100)]
validate: launcher: Set scenario manager config before discovering testsuites

8 years agovalidate: launcher: Print error when media-info files not present
Vineeth T M [Mon, 5 Oct 2015 04:38:10 +0000 (13:38 +0900)]
validate: launcher: Print error when media-info files not present

When there are no media-info files present and --generate-media-info
option is not given, then it just fails without printing error.
Printing an error stating, use --generate-media-info if there are no
media info files.
When there are neither media files and media info files, print error
stating the same

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

8 years agovalidate: Fix memory leaks when context parse fails
Vineeth T M [Thu, 20 Aug 2015 07:51:03 +0000 (16:51 +0900)]
validate: Fix memory leaks when context parse fails

When g_option_context_parse fails, context and error variables are not getting free'd
which results in memory leaks. Free'ing the same.

And replacing g_error_free with g_clear_error, which checks if the error being passed
is not NULL and sets the variable to NULL on free'ing.

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

8 years agovalidate: suppression: suppress 'uninitialised value of size 4' in aacdec
Vineeth TM [Wed, 5 Aug 2015 04:40:52 +0000 (13:40 +0900)]
validate: suppression: suppress 'uninitialised value of size 4' in aacdec

Suppress this error, until the logic in libav is fixed.

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

8 years agovalidate: Implement support to run tests inside gdb
Thibault Saunier [Tue, 10 Nov 2015 16:43:54 +0000 (17:43 +0100)]
validate: Implement support to run tests inside gdb

Making debugging races leading to crashes easier to debug

8 years agovalidate: Minor documentation fix
Thibault Saunier [Tue, 10 Nov 2015 14:14:49 +0000 (15:14 +0100)]
validate: Minor documentation fix

8 years agovalidate: Remove 0.10 caps reference from the documentation
Thibault Saunier [Sun, 8 Nov 2015 00:37:14 +0000 (01:37 +0100)]
validate: Remove 0.10 caps reference from the documentation

8 years agovalidate: Handle setting several scenarios
Thibault Saunier [Thu, 29 Oct 2015 13:53:53 +0000 (14:53 +0100)]
validate: Handle setting several scenarios

The user might have scenarios specific to a particular pipeline, and the
application might have several pipelines running and scenarios that
apply on specific pipeline. We have to handle that valid use case.

8 years agovalidate: Un-blacklist seeking HLS tests
Sebastian Dröge [Tue, 27 Oct 2015 13:51:44 +0000 (15:51 +0200)]
validate: Un-blacklist seeking HLS tests

They are reliable enough after 36b80edb7263118467dfcaee3923f7c964ae6bc8
in gst-plugins-base now.

8 years agovalidate: Add missing gir include path
Wonchul Lee [Mon, 26 Oct 2015 14:35:42 +0000 (15:35 +0100)]
validate: Add missing gir include path

Add missing gir include path for building with gst-uninstalled script

Differential Revision: https://phabricator.freedesktop.org/D461

8 years agovalidate-transcoding: trivial patch to change error from 0.10 to 1.0
Vineeth T M [Thu, 8 Oct 2015 00:58:25 +0000 (09:58 +0900)]
validate-transcoding: trivial patch to change error from 0.10 to 1.0

While printing error in transcoding, gst-validate-transcoding-0.10 is being used.
Changing the same to 1.0

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

8 years agovalidate: Add support for prores
Thibault Saunier [Wed, 14 Oct 2015 10:56:56 +0000 (11:56 +0100)]
validate: Add support for prores

8 years agovalidate: fix double free
Guillaume Desmottes [Sat, 10 Oct 2015 09:51:10 +0000 (10:51 +0100)]
validate: fix double free

Summary:
Move variable declarations in the for block so we won't try re-free
tldir in case of early short circuiting of the 'for' code.

Depends on D348

Reviewers: thiblahute

Reviewed By: thiblahute

Differential Revision: https://phabricator.freedesktop.org/D349

8 years agovalidate: fix loading of full path scenario
Guillaume Desmottes [Sat, 10 Oct 2015 09:50:58 +0000 (10:50 +0100)]
validate: fix loading of full path scenario

Summary:
We were checking if the path was a full one but was using the
scenario_name instead of this path when trying to load the scenario.

Depends on D346

Reviewers: thiblahute

Reviewed By: thiblahute

Differential Revision: https://phabricator.freedesktop.org/D348

8 years agoUpdate .arcconfig
Thibault Saunier [Sat, 10 Oct 2015 09:47:40 +0000 (10:47 +0100)]
Update .arcconfig

8 years agovalidate:launcher: throw valgrind error only for definite loss
Vineeth TM [Sun, 26 Jul 2015 23:46:01 +0000 (08:46 +0900)]
validate:launcher: throw valgrind error only for definite loss

errors-for-leak-kinds should be set to definite, because almost every test case
, will have possibly lost memory, which may or may not be a leak.
And throwing error for all these cases doesn't seem to be correct.

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

8 years agovalidate: launcher: Fix media_check class name and add double quotes for valgrind...
Vineeth T M [Fri, 7 Aug 2015 12:38:20 +0000 (21:38 +0900)]
validate: launcher: Fix media_check class name and add double quotes for valgrind logs

When creating the class names for media check, uri is being used,
instead of the path. Hence converting the uri using uri2path and creating
class name.
Add double quotes for valgrind logs, to support special characters like space

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

8 years agovalidate: media-check: Pass NULL instead of GError if not using it
Vineeth TM [Mon, 17 Aug 2015 01:40:22 +0000 (10:40 +0900)]
validate: media-check: Pass NULL instead of GError if not using it

If not using the GError being passed on to media descriptor, writer and parser,
simply pass NULL instead of GError.

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

8 years agovalidate: descriptor-writer: Handle NULL GError address and free GError during error...
Vineeth TM [Mon, 17 Aug 2015 01:31:33 +0000 (10:31 +0900)]
validate: descriptor-writer: Handle NULL GError address and free GError during error cases

writer_new_discover() API should be able to accept NULL GError and in case of
error, if GError is passed on as parameter, it should be propagated, else it
should be free'd.

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

8 years agovalidate:tools: set locale to all and change argument to FILENAME
Vineeth TM [Tue, 11 Aug 2015 01:05:41 +0000 (10:05 +0900)]
validate:tools: set locale to all and change argument to FILENAME

When file name consists of characters from other languages, say korean,
then it throws an error
Error initializing: Invalid byte sequence in conversion input

Hence setting locale to all to fix this.
And changing the media-info argument to type G_OPTION_ARG_FILENAME

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

8 years agovalidate: Print the return value at the end
Vineeth T M [Mon, 24 Aug 2015 07:39:15 +0000 (16:39 +0900)]
validate: Print the return value at the end

Makes it easier to know if the test passed or failed.

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

8 years agovalidate: launcher: Support relative path for folder names
Vineeth T M [Wed, 26 Aug 2015 01:36:51 +0000 (10:36 +0900)]
validate: launcher: Support relative path for folder names

Even though relative paths are supported, right now it does not
work when we give the path as 'media/' present in the current directory.
Adding support for the same.

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

8 years agovalidate:launcher: Treat min-media-duration as a float
Thibault Saunier [Wed, 30 Sep 2015 16:13:28 +0000 (18:13 +0200)]
validate:launcher: Treat min-media-duration as a float

8 years agoscenarios: Set min-media-duration on switch_audio_track
Thibault Saunier [Wed, 30 Sep 2015 13:02:03 +0000 (15:02 +0200)]
scenarios: Set min-media-duration on switch_audio_track

8 years agovalidate:scenario: Add a way to define a timeout for actions execution
Thibault Saunier [Wed, 30 Sep 2015 12:55:37 +0000 (14:55 +0200)]
validate:scenario: Add a way to define a timeout for actions execution

Reviewers: Mathieu_Du

Differential Revision: https://phabricator.freedesktop.org/D271

8 years agovalidatessim: Stop using deprecated gst_segment_to_position()
Sebastian Dröge [Sat, 26 Sep 2015 16:46:05 +0000 (18:46 +0200)]
validatessim: Stop using deprecated gst_segment_to_position()

8 years agoBack to development
Thibault Saunier [Fri, 25 Sep 2015 10:51:31 +0000 (12:51 +0200)]
Back to development

8 years agoRelease 1.6.0
Thibault Saunier [Fri, 25 Sep 2015 10:50:13 +0000 (12:50 +0200)]
Release 1.6.0

8 years agovalidate: scenarios: set need clock sync for switching subtitle track
eunhae choi [Wed, 16 Sep 2015 08:12:17 +0000 (17:12 +0900)]
validate: scenarios: set need clock sync for switching subtitle track

As soon as the track is changed, the pipeline state is set to NULL
by execution 'stop' action even if there is a 'playback-time' with 5sec.
If the AV sink is not synchronized,
audio fakesink and video fakesink has different position value.
When the validate request the position information of pipeline
to do 'stop' action, the audio fakesink response of the position query
with the bigger value than 5sec.

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

8 years agoRelease 1.5.90
Thibault Saunier [Thu, 20 Aug 2015 15:58:36 +0000 (17:58 +0200)]
Release 1.5.90

8 years agoUpdate common submodule
Thibault Saunier [Fri, 21 Aug 2015 09:09:03 +0000 (11:09 +0200)]
Update common submodule

8 years agovalidate: Put the GstValidate testsuite version in the launcher config
Thibault Saunier [Thu, 20 Aug 2015 14:35:15 +0000 (16:35 +0200)]
validate: Put the GstValidate testsuite version in the launcher config

This way testsuite implementation can have the information

8 years agovalidate/transcoding: Don't override the target state of the scenario when receiving...
Sebastian Dröge [Mon, 17 Aug 2015 15:20:07 +0000 (17:20 +0200)]
validate/transcoding: Don't override the target state of the scenario when receiving BUFFERING=100%

If the scenario handles the states and wants to stay in PAUSED, it's not a
good idea to change the state to PLAYING when receiving BUFFERING=100%. This
caused a race condition in varios seeking tests, most often in the dash scrub
seeking test.

8 years agovalidate: Don't override the target state of the scenario when receiving BUFFERING...
Sebastian Dröge [Mon, 17 Aug 2015 12:27:33 +0000 (14:27 +0200)]
validate: Don't override the target state of the scenario when receiving BUFFERING=100%

If the scenario handles the states and wants to stay in PAUSED, it's not a
good idea to change the state to PLAYING when receiving BUFFERING=100%. This
caused a race condition in varios seeking tests, most often in the dash scrub
seeking test.

8 years agovalidate: Fix typo
Sebastian Dröge [Sun, 16 Aug 2015 15:59:00 +0000 (17:59 +0200)]
validate: Fix typo

8 years agovalidate/launcher: Blacklist some HLS seeking tests again
Sebastian Dröge [Sun, 16 Aug 2015 15:53:28 +0000 (17:53 +0200)]
validate/launcher: Blacklist some HLS seeking tests again

8 years agovalidate/launcher: Un-blacklist validate.dash.playback.reverse_playback.*
Thiago Santos [Sun, 16 Aug 2015 11:50:36 +0000 (08:50 -0300)]
validate/launcher: Un-blacklist validate.dash.playback.reverse_playback.*

Fixed now

8 years agovalidate/launcher: Un-blacklist validate.hls.playback.reverse_playback.*
Sebastian Dröge [Sun, 16 Aug 2015 10:26:16 +0000 (12:26 +0200)]
validate/launcher: Un-blacklist validate.hls.playback.reverse_playback.*

It apparently succeeds now.

8 years agovalidate/launcher: De-blacklist some HLS tests
Sebastian Dröge [Sat, 15 Aug 2015 17:07:02 +0000 (19:07 +0200)]
validate/launcher: De-blacklist some HLS tests

8 years agovalidate/launcher: Blacklist some DASH tests
Sebastian Dröge [Sat, 15 Aug 2015 17:04:14 +0000 (19:04 +0200)]
validate/launcher: Blacklist some DASH tests

8 years agolauncher: Handle override files for media files
Thibault Saunier [Sat, 15 Aug 2015 14:40:11 +0000 (16:40 +0200)]
launcher: Handle override files for media files

And make sure to create a new dict for extra_env_vars when instanciating
GstValidateTest

8 years agolauncher: Make sure MediaDescriptor is set in the GstValidateTest class itself
Thibault Saunier [Sat, 15 Aug 2015 14:23:02 +0000 (16:23 +0200)]
launcher: Make sure MediaDescriptor is set in the GstValidateTest class itself

It is used there but was set in each and every subclasses

8 years agovalidate/launcher: Treat DASH like HLS in another place
Sebastian Dröge [Sat, 15 Aug 2015 14:19:24 +0000 (16:19 +0200)]
validate/launcher: Treat DASH like HLS in another place

8 years agovalidate: scenario: fix leak during error cases
Vineeth TM [Fri, 7 Aug 2015 03:51:53 +0000 (12:51 +0900)]
validate: scenario: fix leak during error cases

When message_async is not called during error cases, needs_parsing GList is
not being freed resulting in leak. Hence free'ing the same in finalize.

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

8 years agovalidate: descriptor-writer: Handle error when stream info is not available
Vineeth TM [Thu, 23 Jul 2015 06:51:09 +0000 (15:51 +0900)]
validate: descriptor-writer: Handle error when stream info is not available

There is no check to see if stream info is available. This leads to
assertion error. Adding proper error messages for the same and reported
the same as a validate warning message.

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

8 years agovalidate: descriptor-writer: Print proper error message when discover fails
Vineeth TM [Thu, 23 Jul 2015 06:08:55 +0000 (15:08 +0900)]
validate: descriptor-writer: Print proper error message when discover fails

When discovering the files, there will be different kind of errors. If we print
the exact message, then it will be more helpful for user. Especially in the case
of missing plugins, displaying which plugin is missing as error message

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

8 years agovalidate:override-registry: fix memory leak
Vineeth TM [Thu, 23 Jul 2015 04:35:04 +0000 (13:35 +0900)]
validate:override-registry: fix memory leak

mutex is being initialized but not cleared.

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

8 years agovalidate: tools: transcoding error due to wrong condition check
Vineeth TM [Thu, 23 Jul 2015 02:08:18 +0000 (11:08 +0900)]
validate: tools: transcoding error due to wrong condition check

when checking the restriction caps, not adding proper check, which
results in assertion error when calling gst_caps_from_string

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

8 years agovalidate:launcher: Fix documentation
Vineeth TM [Thu, 23 Jul 2015 00:18:46 +0000 (09:18 +0900)]
validate:launcher: Fix documentation

Fix some trivial spelling mistakes in documentation
and document about --update-media-info.

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

8 years agovalidate:launcher: escape the characters to remove bad range in regex
Vineeth TM [Tue, 21 Jul 2015 23:45:26 +0000 (08:45 +0900)]
validate:launcher: escape the characters to remove bad range in regex

When media file name consists of some special characters of the format
[b-a].mp3, then it fails with 'bad character range' error and exits.
call re.escape to escape the characters before using it in findall

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

8 years agovalidate:launcher: improve uri generation for --medias-path
Vineeth TM [Mon, 3 Aug 2015 23:35:16 +0000 (08:35 +0900)]
validate:launcher: improve uri generation for --medias-path

When --medias-paths option is being used, right now we have to
specify the full path, like /home/user/gst/master/media/
But when inside master directory, would like to specify only
media/ and expect it to work. Using os.path.abspath and create uri based on that.
This way we can either just pass media/ or pass the full path as parameters.

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

8 years agovalidate:launcher: skip setting up test suite for --medias-paths
Vineeth TM [Fri, 17 Jul 2015 07:45:35 +0000 (16:45 +0900)]
validate:launcher: skip setting up test suite for --medias-paths

in validate.py, some mixer test generators are being added by default.
When passing --media-paths, i would not want to test these.
So instead of setting up the validate test suite, just call tester.register_defaults().

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

8 years agovalidate: scenarios: Change start time for reverse playback
Vineeth TM [Tue, 4 Aug 2015 04:47:24 +0000 (13:47 +0900)]
validate: scenarios: Change start time for reverse playback

Right now reverse playback happens till the beginning of the media file.
But for files which are longer than 150 seconds,
Timeout 'Hard timeout reached: 150 secs' error happens. So we should set the
start time within 150 seconds.

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

8 years agovalidate: launcher: Add a --force-sync option
Thibault Saunier [Tue, 4 Aug 2015 13:21:16 +0000 (15:21 +0200)]
validate: launcher: Add a --force-sync option

Which should put the testsuite in a clean state (basically using git
reset --hard for git based testsuite for example)

8 years agovalidate: Enable flac reverse playback tests
Nicolas Dufresne [Tue, 4 Aug 2015 12:53:17 +0000 (08:53 -0400)]
validate: Enable flac reverse playback tests

This is now supported and works as expected.

8 years agovalidate: media-descriptor: Workaround file:// stream-id changing
Nicolas Dufresne [Fri, 31 Jul 2015 14:50:24 +0000 (10:50 -0400)]
validate: media-descriptor: Workaround file:// stream-id changing

file:// base stream-id will vary depending on the file path. As we
don't expect everyone to use the same absolute path to place the
validate testsuite, the resulting stream-id changes. Because of that,
we can't match the stream-id in the recorded file, hence cannot do
further check. We work around this by doing what filesink would do,
which is compute a SHA256 of the URI which we can use to first
validate the ID is prefixed like expected, and decide if we should
consider the stream IDs the same or not.

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

8 years agovalidate: media-descriptor: Fix reading seekable record
Nicolas Dufresne [Fri, 31 Jul 2015 14:49:00 +0000 (10:49 -0400)]
validate: media-descriptor: Fix reading seekable record

Casting the result of g_strmp0 to boolean won't make gboolean
value 0 or 1. We need proper 0 and 1 so we can use == comparision.

8 years agovalidate: media-descriptor: handle proper return values
Vineeth TM [Fri, 24 Jul 2015 06:36:27 +0000 (15:36 +0900)]
validate: media-descriptor: handle proper return values

while comparing the media descriptor with --expected-results, the return
values are not being handled properly, which results in wrong comparision

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

8 years agovalidate: media-descriptor: Add comment before ignored return value
Nicolas Dufresne [Thu, 30 Jul 2015 19:14:13 +0000 (15:14 -0400)]
validate: media-descriptor: Add comment before ignored return value

As stated in the bug, this comparison failing is not a critical
error, warning is enough. Add a comment so nobody thinks it's a
coding error.

https://bugzilla.gnome.org/review?bug=748390

8 years agovalidate: media-descriptor: remove duplicate conditions
Vineeth TM [Wed, 22 Jul 2015 07:32:06 +0000 (16:32 +0900)]
validate: media-descriptor: remove duplicate conditions

when comparing tags, two conditions in if an else if are same
the correct way is to first check if both are NULL and return.
changed the condition accordingly.

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

8 years agovalidate: media-descriptor: fix trivial spelling mistakes
Vineeth TM [Wed, 22 Jul 2015 07:07:19 +0000 (16:07 +0900)]
validate: media-descriptor: fix trivial spelling mistakes

replace comparse_stream with compare_streams

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

8 years agovalidate:tools: set locale to all and change argument to FILENAME
Vineeth TM [Wed, 29 Jul 2015 07:42:48 +0000 (16:42 +0900)]
validate:tools: set locale to all and change argument to FILENAME

When file name consists of characters from other languages, say korean,
then it throws an error
Error initializing: Invalid byte sequence in conversion input

Hence setting locale to all to fix this.
And changing the media-info argument to type G_OPTION_ARG_FILENAME

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

8 years agovalidate: Add a method to get action->scenario in a thread safe way
Thibault Saunier [Sat, 25 Jul 2015 08:54:19 +0000 (10:54 +0200)]
validate: Add a method to get action->scenario in a thread safe way

API:
  gst_validate_action_get_scenario

8 years agovalidate-scenario: Use thread-safe GWeakRef
Olivier Crête [Fri, 24 Jul 2015 20:47:57 +0000 (16:47 -0400)]
validate-scenario: Use thread-safe GWeakRef

Since _set_done() is meant to be thread safe,
it can not be used with g_object_add_weak_pointer(),
instead, one must use GWeakRef. But since it is in the API,
document that fact and add a couple assertions to make sure
it doesn't get broken in the future.

8 years agovalidate-scenario: Use GLib functions to make sure GMainContext is used
Olivier Crête [Fri, 24 Jul 2015 20:25:38 +0000 (16:25 -0400)]
validate-scenario: Use GLib functions to make sure GMainContext is used

8 years agoscenario: Only modify the actions from the main thread
Olivier Crête [Fri, 24 Jul 2015 20:19:46 +0000 (16:19 -0400)]
scenario: Only modify the actions from the main thread

The action's content is not protected by a mutex, so only
modify it from the main thread.

8 years agogitignore: Add more generated files
Olivier Crête [Fri, 24 Jul 2015 21:05:30 +0000 (17:05 -0400)]
gitignore: Add more generated files

9 years agovalidate-scenario: get duration from media_info if not able to query
Vineeth T M [Fri, 17 Jul 2015 14:42:22 +0000 (23:42 +0900)]
validate-scenario: get duration from media_info if not able to query

In case of files, which don't have duration in header, baseparse
estimates the duration only after 1.5 seconds. But Async_done event
is sent before the duration is estimated, which results in error.
If duration query fails, getting the duration from the media-info being
passed through --set-media-info. If media-info is also not set,
printing an error message and throwing error.

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

9 years agovalidate:launcher: add quotes to the file path
Vineeth T M [Mon, 20 Jul 2015 10:37:41 +0000 (19:37 +0900)]
validate:launcher: add quotes to the file path

When folder name contains space or other special characters,
it fails to recognise the same and error is thrown. Adding the path
inside  to recognise the same

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

9 years agovalidate:launcher: unquote the path to remove special characters
Vineeth T M [Mon, 20 Jul 2015 10:35:34 +0000 (19:35 +0900)]
validate:launcher: unquote the path to remove special characters

When getting path from url using, url2path, it is returning
special characters (%20 for space etc..), instead of returning
plain path. path.unquote replaces the same..

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

9 years agovalidate:launcher: return on error cases properly
Vineeth TM [Mon, 20 Jul 2015 08:27:56 +0000 (17:27 +0900)]
validate:launcher: return on error cases properly

When folder name contains spaces during --medias-paths, it does not
create the media info, but still it shows as passed.
Returing failed during this case

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

9 years agovalidate:launcher: handle file path in --medias-paths
Vineeth TM [Wed, 22 Jul 2015 06:20:54 +0000 (15:20 +0900)]
validate:launcher: handle file path in --medias-paths

right now --medias-paths accepts only directories. Added support to
accept file path as well.

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

9 years agovalidate:launcher: skip default media path for --media-paths option
Vineeth T M [Thu, 16 Jul 2015 11:27:11 +0000 (20:27 +0900)]
validate:launcher: skip default media path for --media-paths option

when --media-paths is specified, then no need to check the default media.
And add Force argument to let testsuite force the inclusion of
default media directory.

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

9 years agovalidate:ssim: Fix calls to the converters
Thibault Saunier [Thu, 16 Jul 2015 11:44:07 +0000 (13:44 +0200)]
validate:ssim: Fix calls to the converters

We were mixing them