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
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
2015-12-06PyAPI: add optional filter argument to KDTree.findCampbell Barton
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-09-24Add test scripts to ctest & renameCampbell Barton
2015-09-22Update module test to pass w/o freestyle enabledCampbell Barton
2015-09-22Update test to RNA APICampbell Barton
2015-09-03Fix: Made bpy.path.ensure_ext compatible with compound extensions.Sybren A. Stüvel
Extensions such as ".tar.gz" are now also supported. Before this patch, ensure_ext('demo.tar.gz', '.tar.gz') would return 'demo.tar.tar.gz'. This results in issues with the `ExportHelper` mix-in class; clicking an existing file in the file dialogue warns about overwriting it (highlighting the input box in red), but then saves to a different file. Also added a unit test for the new behaviour. Reviewers: mont29, campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1498
2015-08-24Tests: Ignore preview render script in module loading testsSergey Sharybin
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-29Fix .obj testing.Bastien Montagne
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-13addon_utils default mismatch /w enable/disableCampbell Barton
default_set argument is now False for both.
2015-06-10GTest: add test for listbase sortingCampbell Barton
Check for correct sort and stable order for matching values.
2015-06-08rename wiki -> manualCampbell Barton
2015-06-07Cleanup: pep8Campbell Barton
2015-06-03BLI_stack: gtest for clearCampbell Barton
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