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
AgeCommit message (Collapse)Author
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-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-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
2015-12-29Fix memleaks in our gtests.Bastien Montagne
2015-12-10Eigen: move C API into intern/eigen.Brecht Van Lommel
2015-10-09BLI_math: add mat3_polar_decompose, interp_m3_m3m3 and interp_m4_m4m4.Bastien Montagne
mat3_polar_decompose gives the right polar decomposition of given matrix, as a pair (U, P) of matrices. interp_m3_m3m3 uses that polar decomposition to perform a correct matrix interpolation, even with non-uniformly scaled ones (where blend_m3_m3m3 would fail). interp_m4_m4m4 just adds translation interpolation to the _m3 variant.
2015-07-10BLI_math 'compare' cleanup & enhancements.Bastien Montagne
This commit: * Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats. * Makes 'compare_vxvx' functions use that new 'compare_ff' one. * Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats. * Adds matching 'compare_vxvx_relative' functions. * Adds some basic tests for compare_ff_relative. See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative (using a very small absolute max_diff), but these do not have exact same behavior... Left a comment there for now, we can do it later if/when we are sure it won't break anything!
2015-06-29Remove WITH_TESTS_PERFORMANCE option.Bastien Montagne
Performance tests now have their own CMake macro, which ensures they do not get added to ctest list, so we do not have to bother about them anymore, and can always build them (when GTests are enabled, of course).
2015-06-29GTests: do not add 'performance' tests to auto-ran tests (with ctest or ↵Bastien Montagne
'make test')...
2015-06-27Cleanup: int/uint mismatch in printf...Bastien Montagne
2015-06-27Cleanup: all params of BLI_str partition funcs can be const...Bastien Montagne
2015-06-27GTests for new 'end' option of `BLI_str_partition_ex()`.Bastien Montagne
2015-06-10GTest: add test for listbase sortingCampbell Barton
Check for correct sort and stable order for matching values.
2015-06-03BLI_stack: gtest for clearCampbell 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-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-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-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-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-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
2014-06-18GTest unit testing frameworkSergey Sharybin
Currently covers only small set of functionality.