mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
validate: add config file support
Each test can now use a config file for the given media file used to test. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/243>
This commit is contained in:
parent
26ddb49339
commit
1fd8c1501a
2 changed files with 7 additions and 3 deletions
|
@ -696,7 +696,7 @@ class GstValidateLaunchTest(GstValidateTest):
|
|||
media_descriptor=None, duration=0, hard_timeout=None,
|
||||
extra_env_variables=None, expected_issues=None):
|
||||
|
||||
extra_env_variables = extra_env_variables or {}
|
||||
self.extra_env_variables = extra_env_variables or {}
|
||||
|
||||
if scenario:
|
||||
duration = scenario.get_duration()
|
||||
|
@ -732,7 +732,7 @@ class GstValidateMediaCheckTest(GstValidateTest):
|
|||
uri, minfo_path, timeout=DEFAULT_TIMEOUT,
|
||||
extra_env_variables=None,
|
||||
expected_issues=None):
|
||||
extra_env_variables = extra_env_variables or {}
|
||||
self.extra_env_variables = extra_env_variables or {}
|
||||
|
||||
super(
|
||||
GstValidateMediaCheckTest, self).__init__(GstValidateBaseTestManager.MEDIA_CHECK_COMMAND, classname,
|
||||
|
@ -764,7 +764,7 @@ class GstValidateTranscodingTest(GstValidateTest, GstValidateEncodingTestInterfa
|
|||
expected_issues=None):
|
||||
Loggable.__init__(self)
|
||||
|
||||
extra_env_variables = extra_env_variables or {}
|
||||
self.extra_env_variables = extra_env_variables or {}
|
||||
|
||||
file_dur = int(media_descriptor.get_duration()) / GST_SECOND
|
||||
if not media_descriptor.get_num_tracks("video"):
|
||||
|
|
|
@ -871,6 +871,10 @@ class GstValidateTest(Test):
|
|||
extra_env_variables=extra_env_variables,
|
||||
expected_issues=expected_issues,
|
||||
workdir=workdir)
|
||||
if media_descriptor and media_descriptor.get_media_filepath():
|
||||
config_file = os.path.join(media_descriptor.get_media_filepath() + '.config')
|
||||
if os.path.isfile(config_file):
|
||||
self.add_validate_config(config_file, extra_env_variables)
|
||||
|
||||
if scenario is None or scenario.name.lower() == "none":
|
||||
self.scenario = None
|
||||
|
|
Loading…
Reference in a new issue