()
| 97 | |
| 98 | |
| 99 | def main(): |
| 100 | parser = create_argparse() |
| 101 | args = parser.parse_args() |
| 102 | |
| 103 | blocklist = ["raycast_hit.blend", "raycast_normal.blend", "raycast_position.blend"] |
| 104 | if args.gpu_backend == "vulkan": |
| 105 | blocklist += BLOCKLIST_VULKAN |
| 106 | |
| 107 | report = WorkbenchReport("Workbench", args.outdir, args.oiiotool, variation=args.gpu_backend, blocklist=blocklist) |
| 108 | if args.gpu_backend == "vulkan": |
| 109 | report.set_compare_engine('workbench', 'opengl') |
| 110 | else: |
| 111 | report.set_compare_engine('eevee', 'opengl') |
| 112 | report.set_pixelated(True) |
| 113 | report.set_reference_dir("workbench_renders") |
| 114 | |
| 115 | test_dir_name = Path(args.testdir).name |
| 116 | if test_dir_name.startswith('hair') and platform.system() == "Darwin": |
| 117 | report.set_fail_threshold(0.050) |
| 118 | if test_dir_name.startswith('openvdb'): |
| 119 | report.set_fail_threshold(0.04) |
| 120 | |
| 121 | ok = report.run(args.testdir, args.blender, get_arguments, batch=args.batch) |
| 122 | |
| 123 | sys.exit(not ok) |
| 124 | |
| 125 | |
| 126 | if not inside_blender and __name__ == "__main__": |
no test coverage detected