[Bf-blender-cvs] [22c61e80605] master: Tests: Disable tests for non-compiled libraries

Himanshi Kalra noreply at git.blender.org
Wed Sep 29 20:23:42 CEST 2021


Commit: 22c61e80605079141293c749de37cbe85bf2b33b
Author: Himanshi Kalra
Date:   Wed Sep 29 21:12:55 2021 +0530
Branches: master
https://developer.blender.org/rB22c61e80605079141293c749de37cbe85bf2b33b

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

===================================================================

M	tests/python/CMakeLists.txt

===================================================================

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")



More information about the Bf-blender-cvs mailing list