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-02-17Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/editors/animation/anim_draw.c
2017-02-17Layers: Fix unittest after 65a75e11Dalai Felinto
2017-02-17Layers: Fix visibility evalution + UnittestingDalai Felinto
test_evaluation_visibility_a failed before, but it is now fixed test_evaluation_visibility_b passed before and was used as control to make sure it was not broken
2017-02-16Register test for mesh.split_faces()Sergey Sharybin
2017-02-16Cyctes tests: Commit blender.git side changesSergey Sharybin
2017-02-15Layer Unittest: use macro for testsDalai Felinto
2017-02-14Layers: Unittesting - make them granularDalai Felinto
Some tests may break Blender, which makes the entire unittest routine to fail. They are now I isolate the tests into individual files Kudos to Sybren Stüvel and Sergey Sharybin for the advice. Note: at the moment test_link.py is failing (since a41bbfb7)
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-08Merge branch 'master' into blender2.8Sybren A. Stüvel
# Conflicts: # source/blender/blenloader/intern/writefile.c
2017-02-07Render Layers and Collections (merge from render-layers)Dalai Felinto
Design Documents ---------------- * https://wiki.blender.org/index.php/Dev:2.8/Source/Layers * https://wiki.blender.org/index.php/Dev:2.8/Source/DataDesignRevised User Commit Log --------------- * New Layer and Collection system to replace render layers and viewport layers. * A layer is a set of collections of objects (and their drawing options) required for specific tasks. * A collection is a set of objects, equivalent of the old layers in Blender. A collection can be shared across multiple layers. * All Scenes have a master collection that all other collections are children of. * New collection "context" tab (in Properties Editor) * New temporary viewport "collections" panel to control per-collection visibility Missing User Features --------------------- * Collection "Filter" Option to add objects based on their names * Collection Manager operators The existing buttons are placeholders * Collection Manager drawing The editor main region is empty * Collection Override * Per-Collection engine settings This will come as a separate commit, as part of the clay-engine branch Dev Commit Log -------------- * New DNA file (DNA_layer_types.h) with the new structs We are replacing Base by a new extended Base while keeping it backward compatible with some legacy settings (i.e., lay, flag_legacy). Renamed all Base to BaseLegacy to make it clear the areas of code that still need to be converted Note: manual changes were required on - deg_builder_nodes.h, rna_object.c, KX_Light.cpp * Unittesting for main syncronization requirements - read, write, add/copy/remove objects, copy scene, collection link/unlinking, context) * New Editor: Collection Manager Based on patch by Julian Eisel This is extracted from the layer-manager branch. With the following changes: - Renamed references of layer manager to collections manager - I doesn't include the editors/space_collections/ draw and util files - The drawing code itself will be implemented separately by Julian * Base / Object: A little note about them. Original Blender code would try to keep them in sync through the code, juggling flags back and forth. This will now be handled by Depsgraph, keeping Object and Bases more separated throughout the non-rendering code. Scene.base is being cleared in doversion, and the old viewport drawing code was poorly converted to use the new bases while the new viewport code doesn't get merged and replace the old one. Python API Changes ------------------ ``` - scene.layers + # no longer exists - scene.objects + scene.scene_layers.active.objects - scene.objects.active + scene.render_layers.active.objects.active - bpy.context.scene.objects.link() + bpy.context.scene_collection.objects.link() - bpy_extras.object_utils.object_data_add(context, obdata, operator=None, use_active_layer=True, name=None) + bpy_extras.object_utils.object_data_add(context, obdata, operator=None, name=None) - bpy.context.object.select + bpy.context.object.select = True + bpy.context.object.select = False + bpy.context.object.select_get() + bpy.context.object.select_set(action='SELECT') + bpy.context.object.select_set(action='DESELECT') -AddObjectHelper.layers + # no longer exists ```
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
2016-11-02tests: Update hash for OBJSergey Sharybin
Was a recent update of UV precision.
2016-09-11Fix undefined variable on errors in Cycles ctests.Dmitry Dygalo
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2201
2016-08-01Replace pep8 with flake8 checkerCampbell Barton
2016-07-29Add GMock library which is responsive for dealing with mock objectsSergey Sharybin
2016-07-29Fix Cycles OSL hair BSDF inconsistencies with SVM.Brecht Van Lommel
2016-07-29Fix Cycles ctests not always deleting fail.png files on success.Brecht Van Lommel
2016-07-06Cycles tests: Don't create fail file on idiff warningSergey Sharybin
2016-07-04Fix bmesh test after recent refactor.Bastien Montagne
2016-06-23BLI_array_utils: add BLI_array_rfindindexCampbell Barton
Array search from back to front.
2016-06-19Cycles tests: raise failure threshold, copy failed image for comparison.Brecht Van Lommel
2016-06-11BLI_rand: add BLI_rng_get_char_nCampbell Barton
Use to fill an array of bytes to random values.
2016-05-30Add 'multi small' testcase to performance Ghash tests.Bastien Montagne
This new test simply inserts and lookup a lot of time on very small ghashes (most are < 17 items).
2016-05-30BLI_array_store testsCampbell Barton
Ensure the data is valid once expanded, and that de-duplication is working as expected.
2016-05-02Fix bl_load_py_modules testCampbell Barton
- scripts that execute directly need to include their basedir in the sys.path - modules which are in a directory without an __init__.py weren't importing.
2016-04-15Tests: Fix wrong hash after "no redundant zeroes" commitSergey Sharybin
2016-04-04Update hash for an OBJ unit testSergey Sharybin
2016-03-24Fix BLI_strncasestr use with a single characterCampbell Barton
2016-03-23UI: multi word filtering in search menuCampbell Barton
D1080 by @rockets, with own improvements to tests
2016-02-29Tests: improve RNA default reportingCampbell Barton
Float values were often reported with extra precision from float32 -> 64 conversion. Add repr_float_32 to give cleaner output.
2016-02-20Add GHash/GSet pop() feature.Bastien Montagne
Behavior is similar to python's set.pop(), it removes and returns a 'random' entry from the hash. Notes: * Popping will return items in same order as ghash/gset iterators (i.e. increasing order in internal buckets-based storage), unless ghash/gset is modified in between. * We are keeping a track of the latest bucket we popped out (through a 'state' parameter), this allows for similar performances to iterators when iteratively popping a whole hash (without it, we are roughly O(n!), with it we are roughly O(n)...). Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1808
2016-02-17Fix broken ghash performance gtest.Bastien Montagne
Regression from rB2dba2b3d71d9781bce45. Do not understand why MSVC needs this convoluted allocation (looks like broken compiler crap?), but at least let's do it correctly!
2016-02-06Fix gtests on Windows/MSVCSergey Sharybin
There were some missing stubs and some tests were specifically written for Linux. Also, apparently MSVC has a limit of 64K for the insource strings..
2016-02-06Fix typo in 32bytes aligned malloc testSergey Sharybin
2016-02-06Fix GTests compilations on WindowsSergey Sharybin
Unfortunately this doesn't make all tests compilable due to all sort of weird and wonderful bad levels includes on Windows (G referenced from bf_blenlib) but at least allows to selectively build tests for now.
2016-01-31Cleanup: pep8Campbell Barton
2016-01-19GTests: were using C++11 featureCampbell Barton
2016-01-19GTests: split array_utils testsCampbell Barton
2016-01-19GTests: array_utilsCampbell Barton
2016-01-04Correct include directories for GTestsSergey Sharybin
2016-01-04Remove SCons building systemSergey Sharybin
While SCons building system was serving us really good for ages it's no longer having much attention by the developers and started to become quite a difficult task to maintain. What's even worse -- there started to be quite serious divergence between SCons and CMake which was only accumulating over the releases now. The fact that none of the active developers are really using SCons and that our main studio is also using CMake spotting bugs in the SCons builds became quite a difficult task and we aren't always spotting them in time. Meanwhile CMake became really mature building system which is available on every platform we support and arguably it's also easier and more robust to use. This commit includes: - Removal of actual SCons building system - Removal of SCons git submodule - Removal of documentation which is stored in the sources and covers SCons - Tweaks to the buildbot master to stop using SCons submodule (this change requires deploying to the server) - Tweaks to the install dependencies script to skip installing or mentioning SCons building system - Tweaks to various helper scripts to avoid mention of SCons folders/files as well Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit Reviewed By: campbellbarton, juicyfruit Differential Revision: https://developer.blender.org/D1680
2015-12-29Fix memleaks in our gtests.Bastien Montagne
2015-12-10Eigen: move C API into intern/eigen.Brecht Van Lommel