test.mpi.cmake
Go to the documentation of this file.
1 
2 list(APPEND TESTS_WITH_BASELINES
3  # Test uses D3 which is available in MPI only builds.
4  D3SmallCells.xml
5  EDLWithSubsampling.xml
6  # Test uses D3 which is available in MPI only builds.
7  ExportSelectionToCSV.xml
8  # This test check spreadsheet values which include processID
9  ManyTypesXMLWriterReaderMPI.xml
10  # Test Use Data Partitions for volume rendering
11  #UseDataPartitions.xml
12  # This tests uses PIOReader which requires MPI
13  ReadPIOWithHTG.xml
14  )
15 
16 list(APPEND TESTS_WITH_INLINE_COMPARES
17  # needs parallel server for the columns to match those in the test.
18  SpreadSheetParallelData.xml)
19 
20 # test only checks for spreadsheet columns correctly in
21 # parallel client-server mode.
22 set (SpreadSheetParallelData_DISABLE_C TRUE)
23 
24 # DistributePoints is only tested in non-built-in mode.
25 paraview_add_client_server_tests(
26  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
27  TEST_SCRIPTS DistributePoints.xml
28  )
30  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
31  TEST_SCRIPTS DistributePoints.xml
32  )
33 
34 # Process IDs tests are only tested in non-built-in mode.
35 paraview_add_client_server_tests(
36  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
37  TEST_SCRIPTS GenerateProcessIds.xml ProcessIdsHTG.xml
38  )
40  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
41  TEST_SCRIPTS GenerateProcessIds.xml ProcessIdsHTG.xml
42  )
43 
44 # Global IDs tests are only tested in non-built-in mode.
45 paraview_add_client_server_tests(
46  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
47  TEST_SCRIPTS GlobalPointAndCellIdsHTG.xml
48  )
50  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
51  TEST_SCRIPTS GlobalPointAndCellIdsHTG.xml
52  )
53 
54 # Volume rendering seems to work better in serial
55 set (UseDataPartitions_FORCE_SERIAL TRUE)
56 # This test requires a parallel partition to make sense so we
57 # skip running it with the built-in server.
59  TEST_SCRIPTS UseDataPartitions.xml
60  )
61 
62 # Test a bug (#22337) that could only happen in non built-in mode
63 # This test has no baseline.
65  TEST_SCRIPTS POpenFoamUpdate.xml
66  )
67 
68 # Test AppendReduce which can only be tested with non-built-in mode
70  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
71  TEST_SCRIPTS AppendReduce.xml
72  )
73 # Test AppendReduce which can only be tested with non-built-in mode
75  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
76  TEST_SCRIPTS AppendReduce.xml
77  )
78 
79 # Test uses GhostCellsGenerator which is available in MPI only builds.
80 # As the test use pvtu writer/reader it does not work in built-in mode.
81 paraview_add_client_server_tests(
82  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
83  TEST_SCRIPTS GhostCellsGenerator.xml
84  )
86  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
87  TEST_SCRIPTS GhostCellsGenerator.xml
88  )
89 
90 # HTG Source has special features when used in an MPI setting
92  TEST_SCRIPTS HyperTreeGridSourceDistributed.xml
93  )
94 
95 # GhostCellGeneratorSynchronize is only tested in non-built-in mode.
97  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
98  TEST_SCRIPTS GhostCellsGeneratorSynchronize.xml
99  )
101  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
102  TEST_SCRIPTS GhostCellsGeneratorSynchronize.xml
103  )
104 
105 # GhostCellsGeneratorImageDistributed needs specifically two servers
107  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
108  TEST_SCRIPTS GhostCellsGeneratorImageDistributed.xml
109  NUMSERVERS 2
110  )
112  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
113  TEST_SCRIPTS GhostCellsGeneratorImageDistributed.xml
114  NUMSERVERS 2
115  )
117  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
118  TEST_SCRIPTS HyperTreeGridGhostCellsGeneratorComposite.xml
119  NUMSERVERS 2
120  )
122  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
123  TEST_SCRIPTS RedistributeHyperTreeGrid.xml
124  NUMSERVERS 4
125  )
127  TEST_SCRIPTS GhostCellsHTGMultiblock.xml
128  NUMSERVERS 2
129 )
130 
131 # AppendReduceFilter needs specifically four servers to generate duplicate points
133  TEST_SCRIPTS vtkAppendReduceFilter.xml
134  NUMSERVERS 4
135 )
136 
138  TEST_SCRIPTS GhostFeatureEdgesAndWireframe.xml
139  )
141  TEST_SCRIPTS GhostFeatureEdgesAndWireframe.xml
142  )
143 
145  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
146  TEST_SCRIPTS RemoveGhostInterfaces.xml
147  )
149  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
150  TEST_SCRIPTS RemoveGhostInterfaces.xml
151  )
152 
153 # Regression test for https://gitlab.kitware.com/paraview/paraview/-/issues/21396
154 # Opacity rendering specifically needs to be tested with >4 procs and remote rendering
156  TEST_SCRIPTS TestOpacityRendering.xml
157 )
159  TEST_SCRIPTS TestOpacityRendering.xml
160  NUMSERVERS 5
161 )
163  TEST_SCRIPTS TestOpacityRendering.xml
164  NUMSERVERS 5
165 )
166 
167 # Regression test for https://gitlab.kitware.com/paraview/paraview/-/issues/22681
168 # as it occurs when we have >=4 procs
170  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
171  TEST_SCRIPTS VolumeCrop.xml
172 )
174  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
175  TEST_SCRIPTS VolumeCrop.xml
176  NUMSERVERS 4
177 )
178 
179 if (PARAVIEW_ENABLE_COSMOTOOLS)
180  # Test the Generic IO file writer in VTKExtensions/CosmoTools
181  ExternalData_Expand_Arguments(ParaViewData _
182  "DATA{${paraview_test_data_directory_input}/Data/genericio/m000.499.allparticles}")
184  ARGS --mpi
185  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
186  TEST_SCRIPTS GenericIOReadWrite.xml
187  )
189  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
190  TEST_SCRIPTS GenericIOReadWrite.xml
191  )
193  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
194  TEST_SCRIPTS GenericIOReadWrite.xml
195  )
196 
197 endif()
198 list(APPEND TESTS_WITH_BASELINES
199  CGNSReader-5blocks_cgns.xml)
200 
201 # PointInterpolator only works in non-distributed modes.
202 set(PointInterpolator_DISABLE_CRS TRUE)
203 set(PointInterpolator_DISABLE_CS TRUE)
204 set(PointVolumeInterpolator_DISABLE_CS TRUE)
205 
206 # Test uses distributed sources
207 set(GhostCellsGeneratorImageSerial_DISABLE_CS TRUE)
208 set(GhostCellsGeneratorImageSerial_DISABLE_CRS TRUE)
209 
210 # The following tests are only run in client-server mode.
211 # They are needed to verify the remote saving/loading of different files, such as states and screenshots, work.
212 paraview_add_client_server_tests(
213  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
214  TEST_SCRIPTS SaveLoadRemoteState.xml
215  )
217  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
218  TEST_SCRIPTS SaveRemoteScreenshot.xml
219  )
221  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
222  TEST_SCRIPTS SaveRemoteAnimation.xml
223  )
224 
225 SET (SpreadSheet1_DISABLE_CS TRUE)
226 SET (SpreadSheet1_DISABLE_CRS TRUE)
227 
228 # Disabled since the 1 column in spreadsheet view ends up being "Process ID"
229 # which messes up the sorting in this test. Need to extend the testing framework
230 # or fix spreadsheet view for these to work properly.
231 SET (SpreadSheet3_DISABLE_CS TRUE)
232 SET (SpreadSheet3_DISABLE_CRS TRUE)
233 
234 # The hierchical fractal source is a temporary testing source and it does not
235 # create the dataset correctly in parallel. Since it's a testing source, I am
236 # just going to disable the test in parallel. We can fix the source when
237 # needed.
238 SET (RectilinearFractal_DISABLE_CS TRUE)
239 SET (RectilinearFractal_DISABLE_CRS TRUE)
240 
241 # Selections end up highlighting different set of ID based points in parallel.
242 # Hence disable them.
243 set (LineChartSelection_DISABLE_CS TRUE)
244 set (LineChartSelection_DISABLE_CRS TRUE)
245 
246 # For the same reasons
247 set (MultiBlockChartSelection_DISABLE_CS TRUE)
248 set (MultiBlockChartSelection_DISABLE_CRS TRUE)
249 
250 # Selection link may highlight incorrect ID in parallel,
251 # hence disable them.
252 set(SelectionLinkBasic_DISABLE_CS TRUE)
253 set(SelectionLinkInitial_DISABLE_CS TRUE)
254 set(SelectionLinkMultiple_DISABLE_CS TRUE)
255 set(SelectionLinkRemove_DISABLE_CS TRUE)
256 set(SelectionLinkReaction_DISABLE_CS TRUE)
257 set(SelectionLinkScripting_DISABLE_CS TRUE)
258 
259 # Many types has a MPI version and Sequential version
260 set(ManyTypesXMLWriterReader_DISABLE_CS TRUE)
261 set(ManyTypesXMLWriterReader_DISABLE_CRS TRUE)
262 set(ManyTypesXMLWriterReaderMPI_DISABLE_C TRUE)
function paraview_add_client_server_render_tests()
Reduction Filter that uses vtkAppendDataSets as PostGatherHelper.
function paraview_add_client_tests()
mode
function paraview_add_client_server_tests()