SVG: Add more sophisticated test suit

This test suit tests SVG on a big files, as opposite of testing one
specific aspect of the standard by atomic files.
This commit is contained in:
Sergey Sharybin 2022-11-10 10:29:00 +01:00
parent 2a6a492a82
commit 3153bd0f5d
3 changed files with 8 additions and 2 deletions

View File

@ -632,7 +632,7 @@ endif()
# SVG Import
if(True)
set(_svg_render_tests path)
set(_svg_render_tests complex path)
foreach(render_test ${_svg_render_tests})
add_python_test(

View File

@ -50,7 +50,10 @@ def main():
from modules import render_report
report = render_report.Report('IO Curve SVG', output_dir, idiff)
report.set_pixelated(True)
print(test_dir)
test_dir_name = Path(test_dir).name
if test_dir_name == 'complex':
report.set_fail_percent(0.01)
ok = report.run(test_dir, blender, get_arguments, batch=True)

View File

@ -166,6 +166,9 @@ class Report:
def set_fail_threshold(self, threshold):
self.fail_threshold = threshold
def set_fail_percent(self, percent):
self.fail_percent = percent
def set_reference_dir(self, reference_dir):
self.reference_dir = reference_dir