-
-
Notifications
You must be signed in to change notification settings - Fork 441
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
61 lines (54 loc) · 1.53 KB
/
Copy pathCMakeLists.txt
File metadata and controls
61 lines (54 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
list(APPEND pyf3dTests_list
test_animation.py
test_camera.py
test_interactor.py
test_image.py
test_log.py
test_options.py
test_utils.py
)
if(NOT F3D_MACOS_BUNDLE)
list(APPEND pyf3dTests_list
test_engine.py
)
endif()
list(APPEND pyf3dTests_list
test_image_compare.py
test_scene.py
test_interactor_start.py
)
if(VTK_VERSION VERSION_GREATER_EQUAL 9.4.20250501)
list(APPEND pyf3dTests_list
test_scene_buffer.py
)
endif()
if(F3D_MODULE_UI)
if(VTK_VERSION VERSION_GREATER_EQUAL 9.5.20251110)
list(APPEND pyf3dTests_list
test_scene_zero_copy.py
)
endif()
endif()
list(APPEND pyf3dTestsNoRender_list
test_options.py
test_engine.py
test_utils.py
)
if(VTK_VERSION VERSION_GREATER_EQUAL 9.6.20260128)
list(APPEND pyf3dTests_list
test_image_stream.py
)
endif()
# Add all the ADD_TEST for each test
foreach(test ${pyf3dTests_list})
get_filename_component (TName ${test} NAME_WE)
add_test(NAME libf3d_bindings_py::${TName} COMMAND ${Python_EXECUTABLE} -m pytest ${CMAKE_CURRENT_LIST_DIR}/${test})
set_tests_properties(libf3d_bindings_py::${TName} PROPERTIES
LABELS "libf3d;bindings;python"
ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}$<${F3D_MULTI_CONFIG_GENERATOR}:/$<CONFIG>>"
FAIL_REGULAR_EXPRESSION "[^X]FAILURES"
)
if (NOT F3D_TESTING_ENABLE_RENDERING_TESTS AND NOT ${test} IN_LIST pyf3dTestsNoRender_list)
set_tests_properties(libf3d_bindings_py::${TName} PROPERTIES DISABLED ON)
endif ()
endforeach()