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-03-25Merge branch 'master' into blender2.8Campbell 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-22Layer Unittesting: pep8 2/2Dalai Felinto
Mass replacing the common code of all tests ``` echo "Fixing $1" ed "$1" <<'EOF' 1,/Testing/d i from render_layer_common import * import unittest import os import sys sys.path.append(os.path.dirname(__file__)) . w q EOF ``` Using line-width of 120
2017-03-22Layer Unittesting: pep8 1/2Dalai Felinto
Manual corrections, using line-width of 120
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-20Layers unittesting: update after doversion changesDalai Felinto
Collections now are called "Collection 1", instead of "1"
2017-03-20Merge branch 'master' into blender2.8Campbell Barton
2017-03-18PyAPI: ID Property testsJacques Lucke
2017-03-13Outliner/layer: fix users trying to drop a collection into itself (recursion ↵Dalai Felinto
hell)
2017-03-10Layers: fix bug in move layer collection above/belowDalai Felinto
Reported by Julian Eisel (Severin)
2017-03-09Layers: move LayerCollectionDalai Felinto
This is to be used from the Outliner, when dragging and dropping collections from the Active Render Layer It also includes a cleanup on the outliner so it calls the new functions. Note: the outliner still needs fix to allow all the functionality here exposed. But this will be tackled by Julian Eisel later.
2017-03-09Layers: move SceneCollectionDalai Felinto
This is to be used from the Outliner, when dragging and dropping. It does not include moving LayerCollection (from Active Render Layer)
2017-03-02Fixup for layer rename unittest (rB3baa186724)Dalai Felinto
2017-03-02Layers unittest: isolate the depsgraph crash in individual testsDalai Felinto
(and re-order the tests alphabetically)
2017-03-01Add tests for layer renamingJulian Eisel
Could have an own file for each test, but this is good enough. With great help from @dfelinto, thanks!
2017-02-27Merge branch 'master' into blender2.8Luca Rood
2017-02-27Cleanup: typo in struct nameCampbell Barton
2017-02-24Fix T50714: Collections: Adding object to scene without an existing collectionDalai Felinto
This was causing blender to segfault. We now add create a new collection and link to the layer before adding the new object (also included unittests, and requires updated lib/tests)
2017-02-24Unittest: split object_add in individual test filesDalai Felinto
(and small cleanup in unittest) This is required to the upcoming unittest + bugfix
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).