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
2019-07-01Tests: Point ffmpeg data to a new folderSergey Sharybin
2019-06-28Python tests: replaced `imp` with `importlib`Sybren A. Stüvel
The `imp` module has been deprecated since Python 3.4, and is replaced by `importlib`.
2019-06-28Tests: disable keymap hierarchy tests until they are fixedBrecht Van Lommel
This is not a critical issue, and it's important to have tests always passing. Ref T65963.
2019-06-27Tests: speed up render tests by running multiple in the same processBrecht Van Lommel
Blender startup time and shader compilation is a big factor when running hundreds of tests, so now all renders in the same ctest run in the same process. This was previously reverted due to skipping other tests when one test crashed. Now if a test crashes, Blender is re-run with the remaining tests so we get results from them still.
2019-06-26Tests: put output of IO tests in subdirectoryBrecht Van Lommel
2019-06-26Tests: add navigation links for HTML test reports, and other tweaksBrecht Van Lommel
2019-06-25Fix related to T65963: Ctest: Failing test script_load_keymap passes.Bastien Montagne
Fix things to make test actually fail as expected (one cannot compare functions to strings, so no more sorting for now). Not sure how to actually fix the test though, not even sure test make any sense anymore actually, with all those weirdo gizmos and tools keymaps thingy...
2019-06-22macOS: rename blender.app to Blender.appBrecht Van Lommel
Using a capitalized app name fits the platform guidelines. Since macOS file systems are case insensitive by default this should not break scripts that assume lowercase.
2019-06-05GTests: BLI_task: Add basic tests for BLI_task_parallel_listbase(), and some ↵Bastien Montagne
performances benchmarks. Nothing special to mention about regression test itself, it basically mimics the one for `BLI_task_parallel_mempool()`... Basic performances benchmarks do not tell us much, besides the fact that for very light processing of listbase, even with 100k items, single-thread remains an order of magnitude faster than threaded code. Synchronization is just way too expensive in that case with current code. This should be partially solvable with much bigger (and configurable) chunk sizes though (current ones are just ridiculous for such cases ;) )...
2019-06-04Fix (unreported) missing updates in scripts/docs after `scene.update()` removal.Bastien Montagne
This should really have been done together with API changes, simple usage of grep does the trick to catch most places needing updates.
2019-05-28Tests: make grease pencil tests part of OpenGL render testsBrecht Van Lommel
Otherwise tests fail on machines without OpenGL.
2019-05-21CTest: Fix Bli_task_test failing on windows.Ray Molenkamp
The task_scheduler was not being explicitly freed, leading to unpredictable behavior when the process was exiting. The test would pass, but would sometimes segfault at process shutdown.
2019-05-20Fix broken workbench tests after recent changesBrecht Van Lommel
2019-05-17Cycles/Eevee: unify depth of field settings for camerasJeroen Bakker
There is now a checkbox to enable/disable depth of field per camera. For Eevee this replace the scene level setting. For Cycles there is now only an F-Stop value, no longer a Radius. Existing files are converted based on Cycles or Eevee being set in the scene. Differential Revision: https://developer.blender.org/D4882
2019-05-17Eevee: Remove the Volumetric Render checkboxClément Foucault
This is to simplify the usage of Volumetrics. Now it automatically detect if there is any Volumetric material in the view and allocate the needed buffer if any.
2019-05-16Tests: add more descriptive messages when idiff is not availableBrecht Van Lommel
Based on patch contributed by Diana Picus in D4355.
2019-05-16Tweak API to support adding evaluated meshes to main databaseSergey Sharybin
One of the usecases is to create mesh from an object is a manner similar to how Apply Modifiers does it, and have it in the bmain so it can be referenced by other objects. This usecase is something what went unnoticed in the previous API changes, so here is a followup. Summary of changes: * bpy.meshes.new_from_object() behaves almost the same as before this change. The difference now is that it now ensures all referenced data-blocks are original (for example, materials referenced by the mesh). * object.to_mesh() now creates free-standing Mesh data-block which is outside of any bmain. The object owns it, which guarantees the memory never leaks. It is possible to force free memory by calling object.to_mesh_clear(). Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4875
2019-05-16Revert "Tests: speed up render tests by running multiple in the same process"Brecht Van Lommel
This makes finding the crashing tests harder, reverting until there is a better solution. This reverts commit 93901e7f0a05ba471f3b4c0201500d9dfcd68c2c.
2019-05-16Dependency graph API changesSergey Sharybin
Main goal here is to make it obvious and predictable about what is going on. Summary of changes. - Access to dependency graph is now only possible to a fully evaluated graph. This is now done via context.evaluated_depsgraph_get(). The call will ensure both relations and datablocks are updated. This way we don't allow access to some known bad state of the graph, and also making explicit that getting update dependency graph is not cheap. - Access to evaluated ID is now possible via id.evaluated_get(). It was already possible to get evaluated ID via dependency graph, but that was a bit confusing why access to original is done via ID and to evaluated via depsgraph. If datablock is not covered by dependency graph it will be returned as-is. - Similarly, request for original from an ID which is not evaluated will return ID as-is. - Removed scene.update(). This is very expensive to update all the view layers. - Added depsgraph.update(). Now when temporary changes to objects are to be done, this is to happen on original object and then dependency graph is to be updated. - Changed object.to_mesh() to behave the following way: * When is used for original object modifiers are ignored. For meshes this acts similar to mesh-copy, not very useful but allows to keep code paths similar (i.e. for exporter which has Apply Modifiers option it's only matter choosing between original and evaluated object, the to_mesh() part can stay the same). For curves this gives a mesh which is constructed from displist without taking own modifiers and modifiers of bevel/taper objects into account. For metaballs this gives empty mesh. Polygonization of metaball is not possible from a single object. * When is used for evaluated object modifiers are always applied. In fact, no evaluation is happening, the mesh is either copied as-is, or constructed from current state of curve cache. Arguments to apply modifiers and calculate original coordinates (ORCO, aka undeformed coordinates) are removed. The ORCO is to be calculated as part of dependency graph evaluation. File used to regression-test (a packed Python script into .blend): {F7033464} Patch to make addons tests to pass: {F7033466} NOTE: I've included changes to FBX exporter, and those are addressing report T63689. NOTE: All the enabled-by-default addons are to be ported still, but first want to have agreement on this part of changes. NOTE: Also need to work on documentation for Python API, but, again, better be done after having agreement on this work. Reviewers: brecht, campbellbarton, mont29 Differential Revision: https://developer.blender.org/D4834
2019-05-15Objects: new 3D cursor alignment option when adding objectsHans Goudey
The choices are now World, View and 3D Cursor. This breaks Python API compatibility, add-ons that add objects with this parameter will need to be updated. Differential Revision: https://developer.blender.org/D4706
2019-05-13Tests: disable DoF in Eevee tests for now, it adds blurring with default valuesBrecht Van Lommel
2019-05-11Tests: speed up render tests by running multiple in the same processBrecht Van Lommel
Blender startup time and shader compilation is a big factor when running hundreds of tests, so now all renders in the same ctest run in the same process. If a test crashes, the remaining tests in the same category will be marked as skipped. Benchmarked on a quad core with ctest -j8. cycles: 118.1s -> 94.3s eevee: 66.2s -> 29.2s workbench: 31.7s -> 8.6s
2019-05-11Tests: fix eevee and workbench using Cycles in a few testsBrecht Van Lommel
2019-05-10Tests: Be more explicit about the required location of the tests folder.Ray Molenkamp
2019-05-10Fix failing tests when Cycles is enabledBrecht Van Lommel
The --env-system-scripts hack does not work with it, it can't find the cycles Python module then when importing add-ons.
2019-05-09Tests: add tests/report.html that links to all HTML test reportsBrecht Van Lommel
Currently this is for Cycles, Eevee and workbench tests.
2019-05-07Tests: add Cycles image texture colorspace testsBrecht Van Lommel
2019-05-06Tests: add Eevee reference images, and add workbench testsBrecht Van Lommel
Being able to compare Eevee reference images is useful for refactoring I'm working on so might as well add them now, even if we can still improve them. Workbench tests are just rendering the same files as Cycles and Eevee. This doesn't really tests many workbench settings until we add tests specifically for them, but does cover how it it handles the different object types.
2019-05-06Fix error running Eevee render testsBrecht Van Lommel
2019-04-29GTest: BLI_path_util testsCampbell Barton
Unit tests for: - BLI_path_extension_check - BLI_path_frame_check_chars - BLI_path_frame_range - BLI_path_frame_get D4749 by @zazizizou
2019-04-20Cleanup: comment line length (tests)Campbell Barton
2019-04-18PyTests: do not load addons in load_py_modules test.Bastien Montagne
It makes no sense to load add-ons here, we already do that (in a more complete way) in load_addons test, this is only adding overhead and doubling code to maintain). Also do not try to load-as-modules add-ons that are not 2.8-ready, and some other misc fix. load_py_modules test should be passing again now. Thanks to @sergey who did part of the work here as well.
2019-04-18Cleanup: add trailing commas to avoid right shiftCampbell Barton
2019-04-18PyTests: do not try to load non-2.8-ready add-ons.Bastien Montagne
2019-04-18Cleanup: remove last bits of WITH_LEGACY_DEPSGRAPH CMake option.Bastien Montagne
Legacy depsgraph has been removed from Blender since several months already...
2019-04-17Tests: Fix Alembic regression testSergey Sharybin
2019-04-17Tests: Fix ID properties testSergey Sharybin
Simply adjust to Python API changes done in 2.8.
2019-04-17Fix T63678 Link error of tests with MSVC.Ray Molenkamp
Ideally OCIO removes their log2 implementation from the global namespace but for now this linker tweak will have to do.
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
2019-04-17Cleanup: use 2 space indentation for CMakeCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-16ClangFormat: add comments to ignore formattingCampbell Barton
2019-04-16CMake: remove BLENDER_SORTED_LIBSCampbell Barton
Use CMake's target_link_libraries instead of manually maintaining library dependencies in a single list. In practice adding new libraries often ended up being guess-work, now each library lists the libraries it uses. This was used for the game player executable so libraries could optionally link to stubs. If we need this functionality it can be done using target-properties as described in T46725.
2019-04-14CMake: prepare for BLENDER_SORTED_LIBS removalCampbell Barton
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.
2019-04-04Fix ply import tests.Howard Trickey
The function for clearing out objects in the startup file needed updating for 2.8 collections api.
2019-04-03Fix export_obj_cube test.Howard Trickey
Verified that current export files for all_quads.blend are good, then updated expected MD5 hash to match current files.
2019-03-20Cleanup: More C++ like nature for word split testSergey Sharybin
While it looks more longer, but also contains more comments about what's going on. Surely, this function almost never breaks and investing time into maintaining its tests is not that important, but we should have a good, clean, understandable tests so they act as a nice example of how they are to be written. Especially important to show correct language usage, without old school macros magic. Doing this at a lunch breaks, so will be series of some updates in the area.
2019-03-20Fix BLI_path_frame_stripSybren A. Stüvel
The `BLI_path_frame_strip` function was completely broken, unless the number of digits in the sequence number was the same as the length of the extension. In other words, it would work fine for `file.0001.abc` (4 digit `0001` and 4 char `.abc`), but other combinations would truncate to the shortest (`file.001.abc` would become `file.###.ab` and `file.00001.a` would become `file.##.a`). The dependency between the sequence number and the file extension is now removed. The behaviour has changed a little bit in the case where there are no numbers in the filename. Previously, `path="filename.abc"` would result in `path="filename.abc"` and `ext=""`, but now it results in `path="filename"` and `ext=".abc"`. This way `ext` always contains the extension, and the behaviour is consistent regardless of whether there were any numbers found. Furthermore, I've removed the `bool set_frame_char` parameter, because it was unclear, probably also buggy, and most importantly, never used. I've also added a unit test for the `BLI_path_frame_strip` function.
2019-03-17Merge branch 'blender2.7'Brecht Van Lommel
2019-03-17Fix bl_pyapi_idprop unit test.Howard Trickey
Scenes can now have a 'cycles' key when starting, so account for that.