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
AgeCommit message (Collapse)Author
2018-01-22Cycles tests: Add extra image testsSergey Sharybin
2018-01-18Memory: add MEM_malloc_arrayN() function to protect against overflow.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3002
2018-01-03BLI_heap: minor changes to the APICampbell Barton
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.
2018-01-03BLI_hash: add BLI_heap_reinsertCampbell Barton
Allows avoiding remove/insert calls.
2018-01-03GTest: initial BLI_heap testCampbell Barton
2018-01-03Correct gtest error in recent beautify changeCampbell Barton
2018-01-03Polyfill Beautify: half-edge optimizationCampbell Barton
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.
2018-01-03BLI_polyfill2d_test: script to generate test dataCampbell Barton
2018-01-03BLI_polyfill2d_test: add test for T52834Campbell Barton
Commented since it currently fails.
2018-01-03BLI_polyfill2d_test: Try flipped x/y axisCampbell Barton
In T52834 this makes a difference.
2018-01-03Missing from last commitCampbell Barton
2018-01-03Cleanup: use stubs for eigen gtestCampbell Barton
2017-09-04Tests: fix incorrect check for hidden dirCampbell Barton
Copy-pasted mistake in tests and tools.
2017-08-17Fixed Alembic unit testSybren A. Stüvel
Commit b6d7cdd3cee9312156e20783248a3b12420b7a53 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-17Fix compilation error when building without BlenderSergey Sharybin
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-17CMake: test build configuration supportCampbell Barton
D2765 by @akitula
2017-08-01Tweak multi-units tests to match new precision handling in conversion from ↵Bastien Montagne
raw value to prety-printed one. Note that new code allows to enable again the '1 million miles' tests.
2017-07-25Python module test: Don't cfail the test when import failure happens in presetSergey Sharybin
2017-07-14Fix unit test error on WindowsSybren A. Stüvel
2017-07-11Fix T52022 Alembic Inherits transform not taken into accountSybren A. Stüvel
Alembic's "inherits transform" flag wasn't taken into account when constructing the parent object relations.
2017-07-03Fixed build error on Windows / VS2015Sybren A. Stüvel
2017-06-19Alembic tests: make failures a bit easier to diagnose.Sybren A. Stüvel
2017-06-19Fix T51762: Unit test script_alembic_import is failing.Sybren A. Stüvel
Implemented workaround for use with the legacy depsgraph.
2017-06-19Fixed bl_load_py_modules / script_load_modules unit testSybren A. Stüvel
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-19Use for/else instead of setting 'ok' variable.Sybren A. Stüvel
This is more efficient, and this use case is exactly what the else clause is for.
2017-06-19Removed trailing spacesSybren A. Stüvel
2017-06-14Make whole ID copying code use const source pointer.Bastien Montagne
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-12Cleanup: indentation, long linesCampbell Barton
2017-06-12Correct gtest EXPECT useCampbell Barton
2017-06-11GTest: initial kdopbvh testCampbell Barton
Currently only find-nearest, ray-casting needs to be added.
2017-06-08Cleanup: cmake indentation, missing includeCampbell Barton
2017-06-05Fix alembic tests not running with debug build on windowsRay Molenkamp
2017-05-30Alembic: simplified sub-frame samplingSybren A. Stüvel
It's now less confusing (for example, using nr_of_samples directly, instead of using 1 / 1 / nr_of_samples). Might also have fixed a bug. Also added unittests.
2017-05-26Add automated ctest for complex merge in Array modifier.Bastien Montagne
See also T50851.
2017-05-23Fix T51534: Alembic: added support for face-varying vertex coloursSybren A. Stüvel
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-04-28Fix T51331: fixes for Alembic unit tests on WindowsSybren A. Stüvel
2017-04-26Alembic import: added unit test for mesh deformation.Sybren A. Stüvel
2017-04-25Fix T51262: Blender CRASH with alembic fileSybren A. Stüvel
Also added a unit test for exporting & importing very long names.
2017-04-23CMake: fix wrong alembic test name on Windows.Brecht Van Lommel
2017-04-22OSX: satisfy macro to also apply alembic testsJens Verwiebe
2017-04-22Disable breaking alembic test for osxJens Verwiebe
2017-04-21Alembic unit tests: Removed trailing spacesSybren A. Stüvel
2017-04-21Alembic unit tests: don't depend on ALEMBIC_ROOT_DIR being defined by userSybren A. Stüvel
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-21CMake: Add option to build against system-wide GlogSergey Sharybin
Similar to previous commit for Gflags.
2017-04-21Alembic import: changing cache modifier path no longer discards object pathsSybren A. Stüvel
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-21CMake: Add option to link against system-wide Gflags librarySergey Sharybin
It is disabled by default, so should not affect existing configurations. Main benefits of this goes as: - Linux distros can use that to avoid libraries duplication and link blender package against gflags package from the system. - It it easier to test whether Blender works with updated version of Gflags prior to re-bundling the library.
2017-04-20Alembic import: select imported objectsSybren A. Stüvel
When the Alembic import is finished, all imported objects are selected.
2017-04-19Alembic import: added simple unit test for importer.Sybren A. Stüvel
It only tests the presence of the objects and their parent/child pointers. Matrix and animated properties should be done in a later test.
2017-04-19Alembic import/export: added as_background_job optionSybren A. Stüvel
The ABC_export and ABC_import functions both take a as_background_job parameter, and return a boolean. When as_background_job=true, returns false immediately after scheduling a background job. This was the old behaviour of this function, which makes it very hard for scripts to do something with the data after the import or export completes. When as_background_job=false, performs the export synchronously, and returns true when the export was ok, and false if there were any errors. This allows further processing. The Scene.alembic_export() function is deprecated, and will be removed from Blender 2.8 in favour of calling the bpy.ops.wm.alembic_export() operator. As such, it has been hard-coded to the old background job behaviour.
2017-04-19Alembic export: made hair/particle export optional.Sybren A. Stüvel
The export is still slower than needed, as the particle systems themselves aren't disabled during the export. It's only the writing to the Alembic file that's skipped.