1 # Tests that require python 3 list(APPEND TESTS_WITHOUT_BASELINES
4 AllPropertiesSaveStatePython.xml
8 ProgrammableSourcePythonEditorLink.xml
9 PythonDefaultLoadState.xml
10 PythonDefaultSaveState.xml
12 PythonResetSessionMacro.xml
13 SpreadSheetNullArrayName.xml # needs programmable filter
14 # TestPopOutWidget.xml
16 TraceIntegrateVariables.xml
19 # This test rely on copy being Ctrl-C 21 list(APPEND TEST_WITHOUT_BASELINES_CLIENT_ONLY
23 TestHTGHoverOnCell.xml
27 # VTTKJS exporter requires the Web module 28 if (PARAVIEW_ENABLE_WEB)
29 list (APPEND TESTS_WITHOUT_BASELINES
31 ExportToVTKJSWithArraySelection.xml
33 set (ExportToVTKJS_FORCE_SERIAL TRUE) # since
this uses popup-menu
36 list(APPEND TESTS_WITH_BASELINES
38 ColorByComponentNames.xml # needs programmable filter
40 LiveProgrammableSource.xml
43 PythonShellRunScript.xml
45 SaveLoadStatePython.xml
46 SaveLoadStateSelectionPython.xml
48 TraceExportAndSaveData.xml
50 # TraceStatisticsFilter.xml (see paraview/paraview#20661. Also was disabled in CS/CRS mode)
51 TraceSupplementalProxiesFully.xml
53 TraceWithoutRenderingComponents.xml
55 # Surface selection unstable on CRS mode
56 set(SaveLoadStateSelectionPython_DISABLE_CRS TRUE)
58 set (AutoSaveState_FORCE_SERIAL TRUE) # since
this modifies settings
60 list(APPEND TESTS_WITH_INLINE_COMPARES
61 RestoreArrayDefaultTransferFunction.xml
62 RestoreDefaultTransferFunction.xml
64 SelectionLinkScripting.xml
69 set(SelectCellsTrace_DISABLE_CRS TRUE)
70 set(SelectPointsTrace_DISABLE_CRS TRUE)
72 # Check that matplotlib is available 73 include(ParaViewFindPythonModules)
76 list(APPEND TESTS_WITH_BASELINES TestPythonView.xml)
77 list(APPEND TESTS_WITH_INLINE_COMPARES TextSourceInteriorLines.xml)
78 list(APPEND TESTS_WITH_INLINE_COMPARES TextSourcesInChartViews.xml)
79 list(APPEND TESTS_WITH_INLINE_COMPARES MathTextColumn.xml)
84 list(APPEND TESTS_WITH_BASELINES
85 AnnotateNotSanitizedArray.xml
86 ContextViewSelectionTrace.xml
87 FindDataNameSanitization.xml
88 FindDataNonDistributedData.xml
89 FindDataPartialArrays.xml
90 FindDataSelectLocationMultiblock.xml
# find data needs python/numpy 91 FindDataSelectLocation.xml # find
data needs python/numpy
95 FreezeQueryMultiblock.xml
96 IndexedLookupInitialization.xml # needs Python Calculator/numpy
97 PythonCalculatorNamedInputs.xml
98 PlotOverLine_surface.xml # needs find
data 99 ProgrammableAnnotation.xml
100 SelectionSaveStatePVSM.xml # find
data needs python/numpy
101 SelectionSaveStatePython.xml # find
data needs python/numpy
102 SpreadSheetSelectionTrace.xml
103 StructuredGridCellBlanking.xml
104 VolumeNoMapScalars.xml # needs programmable filter + numpy
107 # Selection non-functional on CRS mode
108 set(SelectionSaveStatePVSM_DISABLE_CRS TRUE)
110 # Test without baselines and could only run in built-in mode. 111 list(APPEND TEST_WITHOUT_BASELINES_CLIENT_ONLY
112 HyperTreeGridGenerateFields.xml
113 HTGPlotSelectionOverTime.xml
114 MultipleNumberOfComponents.xml
115 ProgrammableFilterFieldData.xml
116 PythonCalculatorInput.xml
119 list(APPEND TESTS_WITHOUT_BASELINES
120 ExpressionChooser.xml
122 FieldDataDomainDefault.xml
123 PlotOverLine_htg.xml # needs find data
125 PythonCalculatorArrayAssociation.xml
126 PythonCalculatorAutocomplete.xml
127 PythonCalculatorCrossComposite.xml
128 PythonCalculatorFieldData.xml
129 PythonCalculatorMultiline.xml
130 SelectionAndAutoSaveState.xml
133 set(SpreadSheetSelectionTrace_DISABLE_CS TRUE)
134 set(SpreadSheetSelectionTrace_DISABLE_CRS TRUE)
136 list(APPEND TESTS_WITH_INLINE_COMPARES
140 TestTableFFT.xml # needs programmable filter + numpy
143 # PythonAlgorithm plugin tests. 145 "PythonAlgorithmPlugin.xml.in" 146 "${CMAKE_CURRENT_BINARY_DIR}/PythonAlgorithmPlugin.xml" @ONLY)
148 "PythonAlgorithmReadersAndWriters.xml.in" 149 "${CMAKE_CURRENT_BINARY_DIR}/PythonAlgorithmReadersAndWriters.xml" @ONLY)
151 set(pyalgo_plugin_tests
152 PythonAlgorithmPlugin
153 PythonAlgorithmReadersAndWriters)
154 foreach(tname IN LISTS pyalgo_plugin_tests)
155 list(APPEND TESTS_WITH_BASELINES
156 ${CMAKE_CURRENT_BINARY_DIR}/${tname}.xml)
158 # we need to extend testing infrastructure to better support
159 # loading plugins in client-server. At that point, we can test these as well.
160 set(${tname}_DISABLE_CS TRUE)
161 set(${tname}_DISABLE_CRS TRUE)
165 #---------------------------------------------------------------------- 166 # Tests that produce some output (other than rendered images) from ParaView 167 # that should be checked for correctness. These work by executing an XML 168 # test in the UI that produces some output, then pvpython runs a Python script 169 # that checks the file for correctness. Example use: checking a CSV 170 # file for expected content. 172 # Tests listed here are required to define the following files: 173 # - <test>.xml - XML test script to play in the uI 174 # - <test>Verify.py - Python code to verify output saved out in the XML 176 #---------------------------------------------------------------------- 177 set(paraview_python_verify_tests
178 ExportMultiblockFieldDataSpreadsheet
179 ExportSceneSpreadSheetView
182 if (PARAVIEW_ENABLE_WEB)
183 list(APPEND paraview_python_verify_tests
188 if (PARAVIEW_USE_PYTHON)
189 foreach(test_name ${paraview_python_verify_tests})
190 set(tname
"ParaView::Applications::${test_name}")
191 add_test(
NAME ${tname}
192 COMMAND ${CMAKE_COMMAND}
193 -DPARAVIEW_EXECUTABLE:FILEPATH=$<TARGET_FILE:ParaView::paraview>
194 -DPVPYTHON_EXECUTABLE:FILEPATH=$<TARGET_FILE:ParaView::pvpython>
195 -DDATA_DIR:PATH=${paraview_test_data_directory_output}
196 -DTEST_NAME:STRING=${test_name}
197 -DTEST_SCRIPT:FILEPATH=${CMAKE_CURRENT_SOURCE_DIR}/${test_name}.xml
198 -DTEST_VERIFIER:FILEPATH=${CMAKE_CURRENT_SOURCE_DIR}/${test_name}Verify.py
199 -DTEMPORARY_DIR:PATH=${CMAKE_BINARY_DIR}/Testing/Temporary
200 -P ${CMAKE_CURRENT_SOURCE_DIR}/PythonScriptTestDriver.cmake
202 set_tests_properties(${tname} PROPERTIES
LABELS "paraview")
function find_python_module(module_name, result)