remove submodule created by mistake. This should be created as a normal folder
[platform/upstream/gst-devtools.git] / validate / testsuites / validate.py
1 # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
2 #
3 # Copyright (c) 2014,Thibault Saunier <thibault.saunier@collabora.com>
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this program; if not, write to the
17 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 # Boston, MA 02110-1301, USA.
19
20 """
21 The GstValidate default testsuite
22 """
23
24 import os
25 from testsuiteutils import update_assets
26
27
28 TEST_MANAGER = "validate"
29
30 BLACKLIST = [('validate.file.transcode.to_vorbis_and_vp8_in_webm.GH1_00094_1920x1280_MTS',
31               'Got error: Internal data stream error. -- Debug message: mpegtsbase.c(1371):'
32               'mpegts_base_loop (): ...: stream stopped, reason not-negotiated')]
33
34
35 def setup_tests(test_manager, options):
36     print("Setting up GstValidate default tests")
37
38     assets_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "medias", "defaults"))
39     if options.sync:
40         if not update_assets(assets_dir):
41             return False
42
43     options.add_paths(assets_dir)
44     options.set_http_server_dir(os.path.abspath(os.path.join(os.path.dirname(__file__),
45                                 "..", "medias")))
46     test_manager.set_default_blacklist(BLACKLIST)
47     test_manager.register_defaults()
48
49     valid_mixing_scenarios = ["play_15s",
50                               "fast_forward",
51                               "seek_forward",
52                               "seek_backward",
53                               "seek_with_stop",
54                               "scrub_forward_seeking"]
55
56     return True