Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-11 20:39:31 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-11 20:39:31 +0300
commitd8888b2f48bc3146eeb490de4544fadd5fc37386 (patch)
tree14d87ab4f0e3b291e07b79b44f0a58b52fb4462e /tests
parent558d7dd90e56ca1b4dbf1b7b8b7b555791821148 (diff)
parent2a9c8da709593b5b6187002797d9bb4363440bd5 (diff)
Merge branch 'blender2.7'
Diffstat (limited to 'tests')
-rw-r--r--tests/python/CMakeLists.txt1
-rwxr-xr-xtests/python/cycles_render_tests.py73
2 files changed, 27 insertions, 47 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt
index 1e4b5b19b92..760b0ce075e 100644
--- a/tests/python/CMakeLists.txt
+++ b/tests/python/CMakeLists.txt
@@ -555,6 +555,7 @@ if(OPENIMAGEIO_IDIFF AND EXISTS "${TEST_SRC_DIR}/render/ctests/shader")
add_cycles_render_test(bake)
add_cycles_render_test(bsdf)
add_cycles_render_test(denoise)
+ add_cycles_render_test(denoise_animation)
add_cycles_render_test(displacement)
add_cycles_render_test(hair)
add_cycles_render_test(image_data_types)
diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py
index 63f7dc0a454..381c04d9b7f 100755
--- a/tests/python/cycles_render_tests.py
+++ b/tests/python/cycles_render_tests.py
@@ -14,61 +14,40 @@ def render_file(filepath, output_filepath):
basedir = os.path.dirname(dirname)
subject = os.path.basename(dirname)
- custom_args = os.getenv('CYCLESTEST_ARGS')
- custom_args = shlex.split(custom_args) if custom_args else []
+ frame_filepath = output_filepath + '0001.png'
+
+ common_args = [
+ "-noaudio",
+ "--factory-startup",
+ "--enable-autoexec",
+ filepath,
+ "-E", "CYCLES",
+ "-o", output_filepath,
+ "-F", "PNG"]
# OSL and GPU examples
# custom_args += ["--python-expr", "import bpy; bpy.context.scene.cycles.shading_system = True"]
# custom_args += ["--python-expr", "import bpy; bpy.context.scene.cycles.device = 'GPU'"]
-
- frame_filepath = output_filepath + '0001.png'
+ custom_args = os.getenv('CYCLESTEST_ARGS')
+ custom_args = shlex.split(custom_args) if custom_args else []
+ common_args += custom_args
if subject == 'opengl':
- command = [
- BLENDER,
- "--window-geometry", "0", "0", "1", "1",
- "-noaudio",
- "--factory-startup",
- "--enable-autoexec",
- filepath,
- "-E", "CYCLES"]
- command += custom_args
- command += [
- "-o", output_filepath,
- "-F", "PNG",
- '--python', os.path.join(basedir,
- "util",
- "render_opengl.py")]
+ command = [BLENDER, "--window-geometry", "0", "0", "1", "1"]
+ command += common_args
+ command += ['--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", output_filepath,
- "-F", "PNG",
- '--python', os.path.join(basedir,
- "util",
- "render_bake.py")]
+ command = [BLENDER, "--background"]
+ command += common_args
+ command += ['--python', os.path.join(basedir, "util", "render_bake.py")]
+ elif subject == 'denoise_animation':
+ command = [BLENDER, "--background"]
+ command += common_args
+ command += ['--python', os.path.join(basedir, "util", "render_denoise.py")]
else:
- command = [
- BLENDER,
- "--background",
- "-noaudio",
- "--factory-startup",
- "--enable-autoexec",
- filepath,
- "-E", "CYCLES"]
- command += custom_args
- command += [
- "-o", output_filepath,
- "-F", "PNG",
- "-f", "1"]
+ command = [BLENDER, "--background"]
+ command += common_args
+ command += ["-f", "1"]
try:
# Success