diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2018-05-13 16:37:08 -0400 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-05-13 16:37:21 -0400 |
commit | ab956c20e8bd81cbcc13135fd5194783d2e75217 (patch) | |
tree | 81884ec4d032b2044faa505948436513b93d653b /tests/validate | |
parent | 36aa60b01068386fefd5ed0581a8fc8eebe696ba (diff) |
validate: Run IQA tests when possible
Meaning that a reference file has to be present on disk with a
`.expected_result` extension.
Diffstat (limited to 'tests/validate')
-rw-r--r-- | tests/validate/geslaunch.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/validate/geslaunch.py b/tests/validate/geslaunch.py index b82612ec..bc135c25 100644 --- a/tests/validate/geslaunch.py +++ b/tests/validate/geslaunch.py @@ -171,6 +171,11 @@ class GESRenderTest(GESTest, GstValidateEncodingTestInterface): GESTest.build_arguments(self) self._set_rendering_info() + def run_external_checks(self): + reference_file_path = urllib.parse.urlsplit(self.media_descriptor.get_uri()).path + ".expected_result" + if os.path.exists(reference_file_path): + self.run_iqa_test(utils.path2url(reference_file_path)) + def _set_rendering_info(self): self.dest_file = path = os.path.join(self.options.dest, self.classname.replace(".render.", os.sep). |