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
diff options
context:
space:
mode:
authorHimanshi Kalra <calra>2021-09-29 18:42:55 +0300
committerHimanshi Kalra <himanshikalra98@gmail.com>2021-09-29 21:22:52 +0300
commit22c61e80605079141293c749de37cbe85bf2b33b (patch)
tree8e83e455fb5f9b960c427f156378f9bcec90e0a0 /tests
parent6f23e4484d03f75ba1618f76114b3f81d5db0ae7 (diff)
Tests: Disable tests for non-compiled libraries
This diff disables tests for Boolean, subdivision surface and volume when GMP, Opensubdiv and Openvdb are not compiled respectively. It also changes the existing file structure and adds sub-folders for boolean and subdivison tests. The volume folder only has one test and is as unchanged structure-wise. Reviewed By: JacquesLucke, LazyDodo Differential Revision: https://developer.blender.org/D12448
Diffstat (limited to 'tests')
-rw-r--r--tests/python/CMakeLists.txt20
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt
index 75f00c3c5cc..2b31b6362e9 100644
--- a/tests/python/CMakeLists.txt
+++ b/tests/python/CMakeLists.txt
@@ -749,10 +749,26 @@ set(geo_node_tests
points
utilities
vector
- volume
-
)
+if(WITH_GMP)
+ list(APPEND geo_node_tests mesh/boolean)
+else()
+ MESSAGE(STATUS "Disabling mesh/boolean tests because WITH_GMP is off.")
+endif()
+
+if(WITH_OPENVDB)
+ list(APPEND geo_node_tests volume)
+else()
+ MESSAGE(STATUS "Disabling volume tests because WITH_OPENVDB is off.")
+endif()
+
+if(WITH_OPENSUBDIV)
+ list(APPEND geo_node_tests mesh/subdivision_tests)
+else()
+ MESSAGE(STATUS "Disabling mesh/subdivision_tests because WITH_OPENSUBDIV is off.")
+endif()
+
foreach(geo_node_test ${geo_node_tests})
if(EXISTS "${TEST_SRC_DIR}/modeling/geometry_nodes/${geo_node_test}/")
file(GLOB files "${TEST_SRC_DIR}/modeling/geometry_nodes/${geo_node_test}/*.blend")