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
2015-04-30RNA defaults testCampbell Barton
Alternative to T32894, simple test which creates new data and compares with RNA defaults. Can be used to keep the values in sync without having to maintain a large set of defines.
2015-04-22Cleanup: pep8, spellingCampbell Barton
2015-04-20CMake: Move performance tests under the cmake optionSergey Sharybin
This way running full sweep of regression tests does not require waiting for the performance test to finish.
2015-04-14Cleanup: don't use single sets for comparisonsCampbell Barton
2015-04-10Test: blacklist loading addons /w known problemsCampbell Barton
The test now runs without warnings
2015-04-09Cycles: Fix wrong render result in certain configuration of render layer's ↵Sergey Sharybin
surface/hair There were some synchronization missing in cases when only one of those settings was disabled. Also added a render test for such configurations now.
2015-03-19BLI GHash: add some basic gtests.Bastien Montagne
We could likely add much more, but those already covers basic behavior and should be able to catch most errors when editing this code. Also added some performances tests as well (timing ghash insert/lookup under heavy loads, for different kinds of keys).
2015-03-12Py Tests: manual URL validatorCampbell Barton
Support for URL checker to use locally generated manual.
2015-03-10Tests: Print counter with operator testCampbell Barton
2015-02-14Refactor array_utils out of BLI_arrayCampbell Barton
BLI_array.h is for resizing array macros, where as array_utils can operate on any arrays.
2015-02-13cleanupCampbell Barton
2015-02-10Tests: Disable failing import/export tests for until they're fixedSergey Sharybin
2015-02-02Add extra Cycles regression testsSergey Sharybin
This new tests are aimed to issues/regressions reported to the tracker.
2015-02-01mathutils: added exponential map to QuaternionSybren A. Stüvel
Added conversion to and from exponential map representation. This representation is useful for interpolation of > 2 quaternions, or in PD controllers. Implementation in C functions quat_to_expmap, quat_normalized_to_expmap, and expmap_to_quat with Python API, unit tests and documentation. Added Quaternion.to_exponential_map() and Quaternion(3-vector) to Python API. Reviewers: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D1049
2015-01-30Corrections to Cycles ctestsSergey Sharybin
- Apply VERBOSE to idiff result as well - Don't treat verification failed error as unknown
2015-01-29cleanup: pep8Campbell Barton
also remove empty class parenthesis
2015-01-23Don't add Cycles tests if tests folder does not existSergey Sharybin
Also print message about those tests being disabled.
2015-01-23Revert "New cycles tests require buildbot to checkout tests of have test ↵Sergey Sharybin
succeed if we test 0 files." This reverts commit d390e24c49ba8543b56948402622563cae6e860f. Forcing tests to success is really bad idea. It'll only lead to cases when you see PASSED and will think everything is OK. Long story short: never force tests to pass!
2015-01-23New cycles tests require buildbot to checkout tests of have test succeed if ↵Martijn Berger
we test 0 files.
2015-01-23PyAPI: don't adjust prefs when an fails to loadCampbell Barton
Recent addons commit meant that addons would be enabled even if they weren't found. This would give an error (which is fine), but also remove from preferences.
2015-01-22CTests: Add render tests for CyclesSergey Sharybin
The idea is to use the set of really small images from the lib folder and run Cycles render on them comparing render output to reference images in the tests repository. For sure same thing could become more generic for BI or Freestyle render engines. Thanks Campbell for review and code tweaks!
2015-01-21Fix Python CTest's, ignore 'addons_contrib'Campbell Barton
Too many contrib addons are in an unstable state making the test not so useful. Thanks to Sergey initial patch: D1012, redid mostly - but outcome is the same.
2015-01-03Add some BLI helpers needed by asset branch.Bastien Montagne
`BLI_strncpy_ensure_pad()` is also useful with current master code. The two others (`BLI_strcmp_ignore_pad()` and `BLI_filelist_duplicate()`) are only used in asset branch currently, but think they could be useful in other places too, and simplifies handling of asset branch & future patch review. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D965
2015-01-03GTest: test beautify with polyfillCampbell Barton
2014-12-31Libmv: Update to latest upstream versionSergey Sharybin
Main purpose of this is to bring new gflags library which is more likely to have a fix for undefined order of static variables initialization and also to bring new glog where some compilation error are fixed (which are only visible with more strict checks with clang and c++11 enabled).
2014-11-14Add Murmur2A hashing feature to BLIBastien Montagne
Murmur2a is a very fast hashing function generation int32 hashes. It also features a very good distribution of generated hashes. However, it is not endianness-agnostic, meaning it will usually generate different hashes for a same key on big- and little-endian architectures. Consequently, **it shall not be used to generate persistent hashes** (never store them in .blend file e.g.). This implementation supports incremental hashing, and is a direct adaptation of reference implementation (in c++): https://smhasher.googlecode.com/svn-history/r130/trunk/MurmurHash2.cpp That cpp code was also used to generate reference values in gtests file. Reviewers: sergey, campbellbarton Reviewed By: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D892
2014-09-28GTest: polyfill2dCampbell Barton
Collection of test cases from libGDX and our own tracker Tests: - combine triangle area matches polygon area. - tris have same winding. - tris don't have duplicates. - correct number of internal & boundary edges. - degenerate polys still give topologically correct output. also checks all possible start-vert offsets, forwards and backwards. optional OBJ output, for debugging.
2014-09-28BLI_Stack add BLI_stack_peek, BLI_stack_discardCampbell Barton
also remove own incorrect assert
2014-09-18Cleanup: use static sets where possibleCampbell Barton
2014-09-17Cleanup: pep8Campbell Barton
2014-09-10Text3d: assert for <0 len textCampbell Barton
also add operator to test blacklist
2014-09-06Py Mathutils: add `invert_safe()` and `inverted_safe()` to `Matrix`.Bastien Montagne
Those two mimic our BLI invert_m4_m4_safe - they add a small offset to diagonal values, in case org matrix is degenerated, and if still non-invertible, return identity matrix. Org patch by me, final enhanced version by ideasman42, many thanks!
2014-08-21Tests: remove support.run_unittestCampbell Barton
2014-08-20Fix T38722: Adding units in Imperial setting results in inconsistent valuesBastien Montagne
Now always check for a default unit, and evaluate the whole expression in this "unit space". Not an ideal solution, but should handle most cases nicely (we can't address all possible corner cases anyway). Note default unit is searched in current string first (bigger unit of current system wins), then in previous string. Note this also replaces ',' by '+' in default separation between units, helps solving issues with parenthesis (e.g. (1'1")*2.5 would fail in existing code)! This would break if someone uses py ops with lower precedence than '+' (like bitwise operations, and comparison), but these are not expected usecase here anyway. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D340
2014-08-11Run unittest.main() directlyCampbell Barton
2014-08-05Fix incorrect comments in listbase, add unit test to verify changeNicholas Bishop
Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D708
2014-07-22Cleanup: pep8 & redundant varsCampbell Barton
2014-07-19Cleanup: test namingCampbell Barton
2014-07-17Add thousands separators to scene stats (D646)Campbell Barton
by januz with own modifications
2014-07-15BLI_stack: various small additionsCampbell Barton
- add BLI_stack_count - add BLI_stack_pop_n to pop into an array - add BLI_stack_push_r, which returns a pointer that can be filled in Also remove sanity check in BLI_stack_pop, assert if the stack is empty.
2014-07-08BLI_string, dont pass unicode to ascii BLI_str_partition functionsCampbell Barton
2014-07-04Add (r)partition funcs to BLI_string, to get left-most/right-most first ↵Bastien Montagne
occurence of delimiters. Inspired by Python (r)partition str functions. Also added some Gtest cases for those new funcs. Reviewed by Campbell Barton, many thanks!
2014-06-30Add BLI_stack testCampbell Barton
2014-06-28CMake: update source filesCampbell Barton
2014-06-22GTest now works without buildinfoCampbell Barton
2014-06-19Add a bmesh_core_test, a start at testing bmesh functionality.Howard Trickey
Needed to make the blender link libraries a global property now that tests are parallel to source directory. Current sort order for blender link libraries doesn't work for tests that start with few defined symbols. Doubling the lib list works, but a TODO to find a better way (probably using CMake's own mechanism for tracking dependencies).
2014-06-19Add brief license headers to testsCampbell Barton
These are effectively public-domain, but use apache2.0 to avoid adding new licenses
2014-06-19Use Blender codestyle, not Google's one!Sergey Sharybin
2014-06-19Add unit tests for aligned allocSergey Sharybin
This was really handy on initial work of aligned alloc and would be handy as well when we'll need to support arbitrary alignment on Apple platforms.
2014-06-18Some WITH_TESTS weer not renamed to WITH_GTESTSergey Sharybin