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
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.
2017-04-18Alembic import/export: write curve resolution to user propertySybren A. Stüvel
Curve resolution isn't natively supported by Alembic, hence it is stored in a user property "blender:resolution". I've looked at a Maya curves example file, but that also didn't contain any information about curve resolution. Differential Revision: https://developer.blender.org/D2634 Reviewers: kevindietrich
2017-04-18Alembic unittest: pass unknown CLI arguments to unittest.main()Sybren A. Stüvel
This allows specifying test names on the CLI, in order to run only one of the tests.
2017-04-18Alembic export: fixed curve type and order.Sybren A. Stüvel
The order number written to Alembic is the same as we use in memory, so the +1 wasn't needed, at least according to the reference Maya exporter maya/AbcExport/MayaNurbsCurveWriter.cpp, function MayaNurbsCurveWriter::write(), in the Alembic source code. Furthermore, when writing an array of nurb orders, the curve type should be set to kVariableOrder, otherwise the importer will ignore it.
2017-04-14Alembic import: fixed dupligroup export when the dupli-empty has a parentSybren A. Stüvel
2017-04-14Added simple unittests for Alembic exporterSybren A. Stüvel
This test checks that a set of cubes are exported with the correct transform, both with flatten=True and flatten=False. This commit also adds an easy to use superclass for upcoming Alembic unit tests.
2017-04-13Datablock ID PropertiesAlexander Romanov
The absence of datablock properties "will certainly be resolved soon as the need for them is becoming obvious" said the [[http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.67/Python_Nodes|Python Nodes release notes]]. So this patch allows Python scripts to create ID Properties which reference datablocks. This functionality is implemented for `PointerProperty` and now such properties can be created with Python. In addition to the standard update callback, `PointerProperty` can have a `poll` callback (standard RNA) which is useful for search menus. For details see the test included in this patch. Original author: @artfunkel Alexander (Blend4Web Team) Reviewers: brecht, artfunkel, mont29, campbellbarton Reviewed By: mont29, campbellbarton Subscribers: jta, sergey, campbellbarton, wisaac, poseidon4o, mont29, homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov, fjuhec, sharlybg, cardboard, duarteframos, blueprintrandom, a.romanov, BYOB, disnel, aditiapratama, bliblubli, dfelinto, lukastoenne Maniphest Tasks: T37754 Differential Revision: https://developer.blender.org/D113
2017-04-10PyAPI: Fast buffer access to id property arraysJacques Lucke
Support Python's buffer protocol for ID-properties.
2017-04-07Tests: Compare vectors with epsilonSergey Sharybin
SOlves the test false-positively failing in 32 bit environment.
2017-04-07Fix building alembic gtest with buildinfo...Bastien Montagne
2017-04-06Alembic: rotation mode issue in copy_m44_axis_swap, and added unit tests.Sybren A. Stüvel
2017-04-06Added float[][] comparison macros to testing.hSybren A. Stüvel
I've moved EXPECT_M3_NEAR from abc_matrix_test.cc to testing.h, as that's a more suitable location.
2017-04-06Alembic: Renamed create_rotation_matrix to create_swapped_rotation_matrix ↵Sybren A. Stüvel
and more: Also replaced the bool param "to_yup" with "AbcAxisSwapMode mode", so that it's more explicit that axes are swapped. Also added unittests for create_swapped_rotation_matrix.
2017-03-29Remove non-bmesh case from testCampbell Barton
2017-03-29Use 'empty' option for clearing factory settingsCampbell Barton
2017-03-24Cleanup: minor edits to path testCampbell Barton
No need for redundant ID's and correct arg order
2017-03-24BLI_path_util: Add BLI_path_joinCampbell Barton
There weren't any convenient ways to join multiple paths in C that accounted for corner cases.
2017-03-22BLI_path_util: add BLI_path_name_at_indexCampbell Barton
Utility to get a file/dir in the path by index, supporting negative indices to start from the end of the path. Without this it wasn't straightforward to get the a files parent directory name from a filepath.
2017-03-18PyAPI: ID Property testsJacques Lucke
2017-02-27Cleanup: typo in struct nameCampbell Barton
2017-02-16Register test for mesh.split_faces()Sergey Sharybin
2017-02-16Cyctes tests: Commit blender.git side changesSergey Sharybin
2017-02-10CTests: Initial work to cover Cycles nodes with OpenGL testsSergey Sharybin
Works similar to regular Cycles tests, just does OpenGL render to get output image. Seems to work fine with the only funny effect: Blender window will pop up for each of the tests. This is current limitation of our OpenGL context. Might be changed in the future.
2017-02-10Cleanup: Trailing whitespaceSergey Sharybin
2017-02-03Tests: Use proper order for EXPECT_EQ()Sergey Sharybin
2017-02-03Tests: Use EXPECT_FALSE() instead of EXPECT_EQ(foo, false)Sergey Sharybin
2017-02-03Tests: Use EXPECT_TRUE() instead of EXPECT_EQ(foo, true)Sergey Sharybin
2017-02-01Cycles tests: Allow python auto-execSergey Sharybin
2017-01-25[Cycles/MSVC/Testing] Fix broken test code.lazydodo
Currently the tests don't run on windows for the following reasons 1) render_graph_finalize has an linking issue due missing a bunch of libraries (not sure why this is not an issue for linux) 2) This one is more interesting, in test/python/cmakelists.txt ${TEST_BLENDER_EXE_BARE} and ${TEST_BLENDER_EXE} are flat out wrong, but for some reason this doesn't matter for most tests, cause ctest will actually go out and look for the executable and fix the path for you *BUT* only for the command, if you use them in any of the parameters it'll happily pass on the wrong path. 3) on linux you can just run a .py file, windows is not as awesome and needs to be told to run it with pyton. 4) had to use the NAME/COMMAND long form of add_test otherwise $<TARGET_FILE:blender> doesn't get expanded, why? beats me. 5) missing idiff.exe for msvc2015/x64 in the libs folder. This patch addresses 1-4 , but given I have no working Linux build environment, I'm unsure if it'll break anything there 5 has been fixed in rBL61751 Reviewers: juicyfruit, brecht, sergey Reviewed By: sergey Subscribers: Blendify Tags: #cycles, #automated_testing Differential Revision: https://developer.blender.org/D2367
2017-01-12Cycles tests: Rework output messagesSergey Sharybin
Made them closer to how GTest shows the output, so reading test logs is easier now (at least feels more uniform). Additionally now we know how much time tests are taking so can tweak samples/resolution to reduce render time of slow tests. It is now also possible to enable colored messages using magic CYCLESTEST_COLOR environment variable. This makes it even easier to visually grep failed/passed tests using `ctest -R cycles -V`.
2016-12-31Add BLI_string_utf8 specific test.Bastien Montagne
This test should ensure we correctly detect all invalid utf-8 sequences in a given string. DISCLAIMER: Do not run this with current code - you'll either laugh or cry, nearly *all* checks fail! Based on utf-8 decoder stress-test (https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt) by Markus Kuhn <http://www.cl.cam.ac.uk/~mgk25/> - 2015-08-28 - CC BY 4.0