Commit: fd25c2c59a09e1cf0a01a4fcf645b8c7bc2e8aa3
Author: Himanshi Kalra
Date:   Fri Jun 11 16:22:19 2021 +0530
Branches: soc-2021-geometry-nodes-regression-test
https://developer.blender.org/rBfd25c2c59a09e1cf0a01a4fcf645b8c7bc2e8aa3

Added a loop to add each category geo_node tests

Each geometry node test is an individual test. It can be run
separately by ctest command. For example ctest -R geo_node_mesh
This will run all mesh tests.

The extra overhead is each test adds to the total tests.

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

M       tests/python/CMakeLists.txt

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

diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt
index e7ce78a1d59..aa797297b26 100644
--- a/tests/python/CMakeLists.txt
+++ b/tests/python/CMakeLists.txt
@@ -748,11 +748,15 @@ set(geo_node_tests
 
 foreach(geo_node_test ${geo_node_tests})
 
-  add_blender_test(
-    geo_node_${geo_node_test}_test
-    ${TEST_SRC_DIR}/geometry_nodes/${geo_node_test}
-    --python ${TEST_PYTHON_DIR}/geo_node_test.py
-  )
+  file(GLOB files "${TEST_SRC_DIR}/geometry_nodes/${geo_node_test}/*.blend")
+  foreach(file ${files})
+    get_filename_component(filename ${file} NAME_WE)  
+    add_blender_test(
+      geo_node_${geo_node_test}_test_${filename}
+      ${file}
+      --python ${TEST_PYTHON_DIR}/geo_node_test.py
+    )
+    endforeach()
 endforeach()
 
 if(WITH_OPENGL_DRAW_TESTS)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to