Cycles tests: Add baking features tests

This commit is contained in:
Sergey Sharybin 2017-09-12 16:22:02 +05:00
parent 4aee701f00
commit e7b5bbae6a
2 changed files with 17 additions and 0 deletions

View File

@ -534,6 +534,7 @@ if(WITH_CYCLES)
if(WITH_OPENGL_TESTS)
add_cycles_render_test(opengl)
endif()
add_cycles_render_test(bake)
add_cycles_render_test(denoise)
add_cycles_render_test(displacement)
add_cycles_render_test(image_data_types)

View File

@ -77,6 +77,22 @@ def render_file(filepath):
'--python', os.path.join(basedir,
"util",
"render_opengl.py")]
elif subject == 'bake':
command = [
BLENDER,
"-b",
"-noaudio",
"--factory-startup",
"--enable-autoexec",
filepath,
"-E", "CYCLES"]
command += custom_args
command += [
"-o", TEMP_FILE_MASK,
"-F", "PNG",
'--python', os.path.join(basedir,
"util",
"render_bake.py")]
else:
command = [
BLENDER,