Sybren A. Stüvel
8a3728800c
Alembic: not using global in unit test.
...
Thanks @sergey for pointing out this fix.
2017-11-02 14:33:21 +01:00
Sybren A. Stüvel
89eb05a890
Alembic: exporting MetaBalls as mesh
...
- Only basis balls are exported, as they represent the resulting mesh.
As a result the mesh is written to Alembic using the name of the basis
ball.
- MetaBalls are converted to a mesh on every frame, then an
AbcMeshWriter is used to write that mesh to Alembic.
2017-10-29 15:21:36 +01:00
Campbell Barton
512b879241
BLI_heap: add validation check, improve tests
...
Also minor readability changes, avoid running both heap_up/down
gives minor speedup too.
2017-10-29 18:23:33 +11:00
Campbell Barton
3425732926
BLI_heap: minor changes to the API
...
Recent addition of 'reinsert' didn't match logic for ghash API.
Rename to BLI_heap_node_value_update,
also add BLI_heap_insert_or_update since it's a common operation.
2017-10-29 15:47:06 +11:00
Campbell Barton
4af1af70ad
BLI_hash: add BLI_heap_reinsert
...
Allows avoiding remove/insert calls.
2017-10-29 04:42:58 +11:00
Campbell Barton
b84e3dc7f3
GTest: initial BLI_heap test
2017-10-29 00:56:56 +11:00
Sybren A. Stüvel
03a582ceeb
Using gtest fixtures in Alembic export tests
2017-10-26 12:43:59 +02:00
Campbell Barton
af067f2305
Correct gtest error in recent beautify change
2017-10-23 14:20:35 +11:00
Campbell Barton
6dfe4cbc6b
Polyfill Beautify: half-edge optimization
...
Was using an edge hash for triangle -> edge lookups,
updating triangle indices for each edge-rotation.
Replace this with half-edge which can rotate edges much more simply,
writing triangles back once the solution has been calculated.
Gives ~33% speedup in own tests.
2017-10-23 01:40:03 +11: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
Campbell Barton
a2d246c5c0
BLI_polyfill2d_test: script to generate test data
2017-09-20 13:40:30 +10:00
Campbell Barton
16355d545b
Fix T52834: Polyfill2D fails with co-linear edges
2017-09-20 04:29:04 +10:00
Campbell Barton
c4235356c9
BLI_polyfill2d_test: add test for T52834
...
Commented since it currently fails.
2017-09-20 03:40:13 +10:00
Campbell Barton
e00bb4d22c
BLI_polyfill2d_test: Try flipped x/y axis
...
In T52834 this makes a difference.
2017-09-20 03:35:06 +10:00
Campbell Barton
60956397ca
Cleanup: BLI_utildefines prefix for header-only libs
...
This allows to have different macro headers without them sharing
similar names to regular C modules.
2017-09-19 20:16:05 +10: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
Campbell Barton
b1f2b69884
Missing from last commit
2017-08-27 15:24:41 +10:00
Campbell Barton
6178cf8353
Cleanup: use stubs for eigen gtest
2017-08-27 15:21:09 +10: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
b53e35c655
Fix compilation error when building without Blender
...
Simply disabled python tests, they can't be run anyway (since blender target is
not enabled) and we don't have any player-related tests in that folder.
2017-08-08 11:32:33 +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
1fb3075803
Fixed build error on Windows / VS2015
2017-07-03 16:09:19 +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
Bastien Montagne
eeb9e5316a
Make whole ID copying code use const source pointer.
...
Noisy change, but safe, and better do it sooner than later if we are to
rework copying code. Also, previous commit shows this *is* useful to
catch some mistakes.
2017-06-14 22:38:11 +02:00
Campbell Barton
00c4f49a6d
Cleanup: indentation, long lines
2017-06-12 13:38:21 +10:00
Campbell Barton
1bd6ed7128
Correct gtest EXPECT use
2017-06-12 10:25:18 +10:00
Campbell Barton
eb1cde5a81
GTest: initial kdopbvh test
...
Currently only find-nearest, ray-casting needs to be added.
2017-06-11 19:10:33 +10:00
Campbell Barton
46c073e4ac
Cleanup: cmake indentation, missing include
2017-06-09 06:45:21 +10:00