Brecht Van Lommel
233a886ceb
Code cleanup: deduplicate code for running Python scripts outside Blender.
2018-02-16 12:51:49 +01:00
Brecht Van Lommel
3d2d58391a
Tests: add OpenGL UI drawing tests.
...
This reuses the Cycles regression test code to also work for OpenGL UI drawing.
We launch Blender with a bunch of .blend files, take a screenshot and compare
it with a reference screenshot, and generate a HMTL report showing the failed
tests and their differences.
For Cycles we keep small reference renders to compare to in svn, but for OpenGL
developers currently have to generate the references manually. How to use:
* WITH_OPENGL_DRAW_TESTS=ON in CMake
* BLENDER_TEST_UPDATE=1 ctest -R opengl_draw
* .. make code changes ..
* ctest -R opengl_draw
* open build_dir/tests/opengl_draw/report.html
Differential Revision: https://developer.blender.org/D3064
2018-02-16 12:51:49 +01:00
Brecht Van Lommel
0f23f618f3
Tests: split off render report test code from Cycles tests.
...
This renames test environment variables from CYCLESTEST_* to BLENDER_TEST_*.
Differential Revision: https://developer.blender.org/D3064
2018-02-16 12:51:49 +01:00
Campbell Barton
b48815a9b7
Cleanup: use prefix for tests
...
Allows for running all `bmesh_*` or `object_*` tests.
2018-02-14 16:02:21 +11:00
Howard Trickey
ce8b5bd90d
Add boolean regression test.
2018-02-12 07:23:50 -05:00
Brecht Van Lommel
8c8e53c12d
Cycles tests: separate directory for sss tests.
2018-02-08 16:56:11 +01:00
Campbell Barton
7980265e7e
Tests: replace os.system w/ subprocess.call
...
Saves on process creation and avoids
being tripped up by command line parsing.
Based on D2967 by @ldo with edits.
2018-01-26 12:23:15 +11:00
Sergey Sharybin
a130c82f0a
Cycles tests: Enable texture space tests
2017-12-19 09:54:23 +01:00
Sybren A. Stüvel
b53918be39
Added alpha channel check to Alembic unit test
...
It was broken due to 823bcf1689 , which added
alpha information and thus changed tuple size from 3 to 4 items.
2017-10-17 10:59:02 +02:00
Sergey Sharybin
d83bcf7071
Cycles tests: Don't proint braces for empty status
2017-10-11 12:36:18 +05:00
Brecht Van Lommel
8289b47e3a
Fix Cycles test report not closing files properly.
2017-09-20 19:12:26 +02:00
Sergey Sharybin
e7b5bbae6a
Cycles tests: Add baking features tests
2017-09-12 16:22:02 +05:00
Brecht Van Lommel
28532f1867
Cycles tests: add environment variable to update references renders.
...
This will copy new renders over references renders:
CYCLESTEST_UPDATE=1 ctest -R cycles
2017-09-12 12:50:44 +02:00
Sergey Sharybin
4f1b510d75
Cycles: Add tangent attribute tests
2017-08-30 17:42:00 +02:00
Ray Molenkamp
58d92cefbd
[cycles/ctest] fix failing tests when output folder doesn't exist yet.
2017-08-25 17:17:49 -06:00
Campbell Barton
46b9f89f5e
Tests: fix incorrect check for hidden dir
...
Copy-pasted mistake in tests and tools.
2017-08-23 15:36:39 +10:00
Brecht Van Lommel
4218b9367e
Cycles tests: pass Blender custom arguments from CYCLESTEST_ARGS.
...
This is useful for testing with different devices, split kernel, OSL,
impact of integrator settings, etc.
2017-08-19 18:14:16 +02:00
Brecht Van Lommel
d282dc04ef
Cycles tests: add light type tests.
2017-08-18 17:09:12 +02:00
Brecht Van Lommel
5cf36c0f05
Cycles tests: make page less wide, use relative URLs for serving through http.
2017-08-18 17:09:08 +02:00
Sergey Sharybin
596ee4b505
Cycles tests: Draw images on top of checkerboard
...
This way it's easier to see alpha-channel only images, such as shadow catcher
images on transparent film.
2017-08-11 13:49:50 +02:00
Brecht Van Lommel
977e7b68cb
Cycles: add denoising tests, keep new image even if no reference exists.
2017-08-11 01:09:35 +02:00
Sybren A. Stüvel
8cfb9b9535
Fixed Alembic unit test
...
Commit b6d7cdd3ce changed how the mesh data
is deformed, which wasn't taken into account yet in this unit test.
Instead of directly reading the mesh vertices (which aren't animated any
more), we convert the modified mesh to a new one, and inspect those
vertices instead.
2017-08-09 13:59:58 +02:00
Sergey Sharybin
2190c0c7e5
Modules test: Don't print backtrace for files which are ignored
...
This could make output really polluted, where it'll be hard to see actual
issues.
It is still possible to have all backtraces printed using BLENDER_VERBOSE
environment variable.
2017-08-09 09:42:03 +02:00
Sergey Sharybin
771e6120c8
Cycles tests: CMake side changes to support recent files split in the SVN repo
2017-08-07 14:33:47 +02:00
Brecht Van Lommel
0f3f093d3b
Cycles: add HTML report to inspect failed test images.
...
Shows new, reference and diff renders, with mouse hover to flip between
new and ref for easy comparison. This generates a report.html in
build_dir/tests/cycles, stored along with the new and diff images.
Differential Revision: https://developer.blender.org/D2770
2017-08-07 14:01:24 +02:00
Campbell Barton
696599edac
CMake: test build configuration support
...
D2765 by @akitula
2017-08-04 08:11:42 +10:00
Bastien Montagne
13d324f26b
Tweak multi-units tests to match new precision handling in conversion from raw value to prety-printed one.
...
Note that new code allows to enable again the '1 million miles' tests.
2017-08-01 16:43:40 +02:00
Sergey Sharybin
35d9f68121
Python module test: Don't cfail the test when import failure happens in preset
2017-07-25 11:39:10 +02:00
Sybren A. Stüvel
0f793ee606
Fix unit test error on Windows
2017-07-14 09:53:27 +02:00
Sybren A. Stüvel
32edfd53d9
Fix T52022 Alembic Inherits transform not taken into account
...
Alembic's "inherits transform" flag wasn't taken into account when
constructing the parent object relations.
2017-07-11 16:17:27 +02:00
Sybren A. Stüvel
243b42af49
Alembic tests: make failures a bit easier to diagnose.
2017-06-19 17:55:51 +02:00
Sybren A. Stüvel
81775e1920
Fix T51762: Unit test script_alembic_import is failing.
...
Implemented workaround for use with the legacy depsgraph.
2017-06-19 17:50:43 +02:00
Sybren A. Stüvel
7461bb3f52
Fixed bl_load_py_modules / script_load_modules unit test
...
It tried to assert that
addons/io_blend_utils/blender_bam-unpacked.whl/__init__.py was loaded when
the io_blend_utils module was imported. However, this happens only on
demand, and not directly when importing the add-on.
2017-06-19 15:28:52 +02:00
Sybren A. Stüvel
c9291ab2ac
Use for/else instead of setting 'ok' variable.
...
This is more efficient, and this use case is exactly what the else clause
is for.
2017-06-19 15:28:52 +02:00
Sybren A. Stüvel
9af3119c53
Removed trailing spaces
2017-06-19 15:28:52 +02:00
Campbell Barton
00c4f49a6d
Cleanup: indentation, long lines
2017-06-12 13:38:21 +10:00
Campbell Barton
46c073e4ac
Cleanup: cmake indentation, missing include
2017-06-09 06:45:21 +10:00
Ray Molenkamp
7bff00b522
Fix alembic tests not running with debug build on windows
2017-06-04 17:05:59 -06:00
Bastien Montagne
19809c8385
Add automated ctest for complex merge in Array modifier.
...
See also T50851.
2017-05-26 21:58:29 +02:00
Sybren A. Stüvel
7b25ffb618
Fix T51534: Alembic: added support for face-varying vertex colours
...
Houdini writes vertex data in a different format than Blender does; Houdini
uses "face-varying scope", which means that the vertex colours are indexed
by an ever-increasing number over all vertices of all faces instead of the
vertex index.
I've also merged the read_custom_data_mcols() and read_mcols() functions,
because the latter was only called from the former, and the changes in this
commit would add yet more function parameters to pass.
2017-05-23 17:27:15 +02:00
Sybren A. Stüvel
1e8d7f3b25
Fix T51331: fixes for Alembic unit tests on Windows
2017-04-28 15:28:41 +02:00
Sybren A. Stüvel
dba6e170c4
Alembic import: added unit test for mesh deformation.
2017-04-26 10:42:20 +02:00
Sybren A. Stüvel
3128600a8a
Fix T51262: Blender CRASH with alembic file
...
Also added a unit test for exporting & importing very long names.
2017-04-25 12:06:03 +02:00
Brecht Van Lommel
cedb1915fe
CMake: fix wrong alembic test name on Windows.
2017-04-23 18:24:43 +02:00
Jens Verwiebe
20c9c1b44e
OSX: satisfy macro to also apply alembic tests
2017-04-22 19:03:59 +02:00
Jens Verwiebe
517bd13baa
Disable breaking alembic test for osx
2017-04-22 18:39:11 +02:00
Sybren A. Stüvel
7e977470f3
Alembic unit tests: Removed trailing spaces
2017-04-21 16:20:35 +02:00
Sybren A. Stüvel
e6ee3fd924
Alembic unit tests: don't depend on ALEMBIC_ROOT_DIR being defined by user
...
By mistake, the code relied on ALEMBIC_ROOT_DIR being defined by the user
running the tests. Now CMake macros are used to correctly find the Alembic
root directory.
2017-04-21 16:20:01 +02:00
Sybren A. Stüvel
9c02990ac1
Alembic import: changing cache modifier path no longer discards object paths
...
This allows, for example, the path of an Alembic file to be changed from
absolute to relative, without having to reconstruct all object paths.
2017-04-21 14:11:49 +02:00
Sybren A. Stüvel
ae79eb2105
Alembic import: select imported objects
...
When the Alembic import is finished, all imported objects are selected.
2017-04-20 12:01:31 +02:00