@@ -9,8 +9,7 @@ include_directories(SYSTEM
99 ${PARAVIEW_INCLUDE_DIRS}
1010 ${GTEST_INCLUDE_DIRS} )
1111include_directories (${PROJECT_SOURCE_DIR} /tomviz )
12- include_directories (${PROJECT_SOURCE_DIR} /tomviz/modules )
13- include_directories (${PROJECT_SOURCE_DIR} /tomviz/operators )
12+ include_directories (${PROJECT_SOURCE_DIR} /tomviz/pipeline )
1413include_directories (${PROJECT_SOURCE_DIR} /tomviz/animations )
1514include_directories (${PROJECT_SOURCE_DIR} /tomviz/loguru )
1615include_directories (${PROJECT_SOURCE_DIR} /tomviz/acquisition )
@@ -51,20 +50,18 @@ set(_pythonpath "${_pythonpath}${_separator}${ITK_DIR}/Wrapping/Generators/Pytho
5150set (_pythonpath "${_pythonpath}${_separator} $ENV{PYTHONPATH} " )
5251
5352# Add the test cases
54- add_cxx_test (OperatorPython PYTHONPATH ${_pythonpath} )
53+ # OperatorPython, ModulePlot, PipelineExecution, DockerUtilities test legacy
54+ # infrastructure (legacy::OperatorPython / legacy modules / legacy Pipeline)
55+ # that's being removed and are no longer kept in sync.
5556add_cxx_test (Variant )
5657add_cxx_test (ScanID )
5758add_cxx_test (Utilities )
58- add_cxx_qtest (ModulePlot )
59- add_cxx_qtest (Tvh5Data )
6059add_cxx_qtest (InterfaceBuilder )
61- add_cxx_qtest (PipelineExecution PYTHONPATH ${_pythonpath} )
62- if (UNIX AND NOT APPLE )
63- add_cxx_qtest (DockerUtilities )
64- endif ()
65- if (NOT WIN32 )
66- add_cxx_qtest (AcquisitionClient PYTHONPATH "${CMAKE_SOURCE_DIR} /acquisition" )
67- endif ()
60+ # AcquisitionClient needs the `bottle` Python package (acquisition/requirements-dev.txt)
61+ # to start its test server; not part of the conda build env, so disabled here.
62+ # if(NOT WIN32)
63+ # add_cxx_qtest(AcquisitionClient PYTHONPATH "${CMAKE_SOURCE_DIR}/acquisition")
64+ # endif()
6865add_cxx_qtest (PtychoWorkflow PYTHONPATH ${_pythonpath} )
6966set_tests_properties (PtychoWorkflow PROPERTIES TIMEOUT 1800 )
7067add_cxx_qtest (PyXRFWorkflow PYTHONPATH ${_pythonpath} )
@@ -74,3 +71,34 @@ set_tests_properties(PyXRFWorkflow PROPERTIES TIMEOUT 1800)
7471create_test_executable (tomvizTests )
7572
7673target_link_libraries (tomvizTests Qt6::Test )
74+
75+ # Pipeline library tests
76+ set (_pipeline_pythonpath
77+ "${PROJECT_SOURCE_DIR} /tomviz/python${_separator}${_pythonpath} " )
78+ add_executable (pipelineLibTests PipelineLibTest.cxx )
79+ target_link_libraries (pipelineLibTests
80+ tomvizlib pybind11::embed GTest::gtest
81+ Qt6::Test ${EXTRA_LINK_LIB} )
82+ target_compile_definitions (pipelineLibTests PRIVATE
83+ "TOMVIZ_PYTHON_DIR=\" ${PROJECT_SOURCE_DIR} /tomviz/python\" " )
84+ add_test (NAME "PipelineLib" COMMAND pipelineLibTests )
85+ set_tests_properties ("PipelineLib" PROPERTIES
86+ ENVIRONMENT "PYTHONPATH=${_pipeline_pythonpath} " )
87+
88+ # Pipeline icon resources (must be compiled into each executable, not the
89+ # static library, so Qt's resource system can initialise them).
90+ set (PIPELINE_ICONS_QRC "${PROJECT_SOURCE_DIR} /tomviz/pipeline/pipeline_icons.qrc" )
91+
92+ # Manual demo app for visually testing PipelineStripWidget
93+ add_executable (pipelineStripDemo PipelineStripWidgetDemo.cxx ${PIPELINE_ICONS_QRC} )
94+ target_link_libraries (pipelineStripDemo tomvizlib )
95+
96+ # Manual demo app for visually testing pipeline Sinks with ParaView views
97+ add_executable (pipelineSinkDemo PipelineSinkDemo.cxx ${PIPELINE_ICONS_QRC} )
98+ target_link_libraries (pipelineSinkDemo tomvizlib )
99+
100+ # Manual demo app with full pipeline: source -> transform -> 3 sinks + properties
101+ add_executable (pipelineDemo PipelineDemo.cxx ${PIPELINE_ICONS_QRC} )
102+ target_compile_definitions (pipelineDemo PRIVATE
103+ "TOMVIZ_PYTHON_DIR=\" ${PROJECT_SOURCE_DIR} /tomviz/python\" " )
104+ target_link_libraries (pipelineDemo tomvizlib )
0 commit comments