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
This commit is contained in:
Himanshi Kalra 2021-09-29 21:12:55 +05:30 committed by Himanshi Kalra
parent 6f23e4484d
commit 22c61e8060

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