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 
21 list(APPEND TESTS_WITHOUT_BASELINES
22  # needs parallel server for the columns to match those in the test.
23  CellGridSpreadSheetViewServer.xml
24  DescriptiveStatisticsByAssemblyParallel.xml
25 )
26 
27 # test only checks for spreadsheet columns correctly in
28 # parallel client-server mode.
29 set (SpreadSheetParallelData_DISABLE_C TRUE)
30 set (CellGridSpreadSheetViewServer_DISABLE_C TRUE)
31 set (DescriptiveStatisticsByAssemblyParallel_DISABLE_C TRUE)
32 
33 # DistributePoints is only tested in non-built-in mode.
34 paraview_add_client_server_tests(
35  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
36  TEST_SCRIPTS DistributePoints.xml
37  )
39  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
40  TEST_SCRIPTS DistributePoints.xml
41  )
42 
43 # Process IDs tests are only tested in non-built-in mode.
44 paraview_add_client_server_tests(
45  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
46  TEST_SCRIPTS GenerateProcessIds.xml ProcessIdsHTG.xml
47  )
49  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
50  TEST_SCRIPTS GenerateProcessIds.xml ProcessIdsHTG.xml
51  )
52 
53 # Global IDs tests are only tested in non-built-in mode.
54 paraview_add_client_server_tests(
55  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
56  TEST_SCRIPTS GlobalPointAndCellIdsHTG.xml
57  )
59  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
60  TEST_SCRIPTS GlobalPointAndCellIdsHTG.xml
61  )
62 
63 # Volume rendering seems to work better in serial
64 set (UseDataPartitions_FORCE_SERIAL TRUE)
65 # This test requires a parallel partition to make sense so we
66 # skip running it with the built-in server.
68  TEST_SCRIPTS UseDataPartitions.xml
69  )
70 
71 # Test a bug (#22337) that could only happen in non built-in mode
72 # This test has no baseline.
74  TEST_SCRIPTS POpenFoamUpdate.xml
75  )
76 
77 # Test AppendReduce which can only be tested with non-built-in mode
79  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
80  TEST_SCRIPTS AppendReduce.xml
81  )
82 # Test AppendReduce which can only be tested with non-built-in mode
84  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
85  TEST_SCRIPTS AppendReduce.xml
86  )
87 
88 # Test uses GhostCellsGenerator which is available in MPI only builds.
89 # As the test use pvtu writer/reader it does not work in built-in mode.
90 paraview_add_client_server_tests(
91  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
92  TEST_SCRIPTS GhostCellsGenerator.xml
93  )
95  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
96  TEST_SCRIPTS GhostCellsGenerator.xml
97  )
99  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
100  TEST_SCRIPTS HyperTreeGridGhostCellsGenerator.xml
101  )
103  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
104  TEST_SCRIPTS HyperTreeGridGhostCellsGenerator.xml
105  )
106 
107 # HTG Source has special features when used in an MPI setting
109  TEST_SCRIPTS HyperTreeGridSourceDistributed.xml
110  )
111 
112 # GhostCellGeneratorSynchronize is only tested in non-built-in mode.
114  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
115  TEST_SCRIPTS GhostCellsGeneratorSynchronize.xml
116  )
118  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
119  TEST_SCRIPTS GhostCellsGeneratorSynchronize.xml
120  )
121 
122 # GhostCellsGeneratorImageDistributed needs specifically two servers
124  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
125  TEST_SCRIPTS GhostCellsGeneratorImageDistributed.xml
126  NUMSERVERS 2
127  )
129  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
130  TEST_SCRIPTS GhostCellsGeneratorImageDistributed.xml
131  NUMSERVERS 2
132  )
134  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
135  TEST_SCRIPTS HyperTreeGridGhostCellsGeneratorComposite.xml
136  NUMSERVERS 2
137  )
139  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
140  TEST_SCRIPTS RedistributeHyperTreeGrid.xml
141  NUMSERVERS 4
142  )
144  TEST_SCRIPTS GhostCellsHTGComposite.xml
145  NUMSERVERS 2
146 )
147 
148 # AppendReduceFilter needs specifically four servers to generate duplicate points
150  TEST_SCRIPTS vtkAppendReduceFilter.xml
151  NUMSERVERS 4
152 )
153 
154 # Piece distribution makes sense only in parallel
155 # using 3 servers to showcase the different distribution modes
157  TEST_SCRIPTS VTKHDFReaderPieceDistribution.xml
158  NUMSERVERS 3
159 )
160 
162  TEST_SCRIPTS GhostFeatureEdgesAndWireframe.xml
163  )
165  TEST_SCRIPTS GhostFeatureEdgesAndWireframe.xml
166  )
167 
169  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
170  TEST_SCRIPTS RemoveGhostInterfaces.xml
171  )
173  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
174  TEST_SCRIPTS RemoveGhostInterfaces.xml
175  )
176 
177 # Regression test for https://gitlab.kitware.com/paraview/paraview/-/issues/21396
178 # Opacity rendering specifically needs to be tested with >4 procs and remote rendering
180  TEST_SCRIPTS TestOpacityRendering.xml
181 )
183  TEST_SCRIPTS TestOpacityRendering.xml
184  NUMSERVERS 5
185 )
187  TEST_SCRIPTS TestOpacityRendering.xml
188  NUMSERVERS 5
189 )
190 
191 # Regression test for https://gitlab.kitware.com/paraview/paraview/-/issues/22681
192 # as it occurs when we have >=4 procs
194  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
195  TEST_SCRIPTS VolumeCrop.xml
196 )
198  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
199  TEST_SCRIPTS VolumeCrop.xml
200  NUMSERVERS 4
201 )
202 
203 if (PARAVIEW_ENABLE_COSMOTOOLS)
204  # Test the Generic IO file writer in VTKExtensions/CosmoTools
205  ExternalData_Expand_Arguments(ParaViewData _
206  "DATA{${paraview_test_data_directory_input}/Data/genericio/m000.499.allparticles}")
208  ARGS --mpi
209  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
210  TEST_SCRIPTS GenericIOReadWrite.xml
211  )
213  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
214  TEST_SCRIPTS GenericIOReadWrite.xml
215  )
217  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
218  TEST_SCRIPTS GenericIOReadWrite.xml
219  )
220 
221 endif()
222 list(APPEND TESTS_WITH_BASELINES
223  CGNSReader-5blocks_cgns.xml)
224 
225 # PointInterpolator only works in non-distributed modes.
226 set(PointInterpolator_DISABLE_CRS TRUE)
227 set(PointInterpolator_DISABLE_CS TRUE)
228 set(PointVolumeInterpolator_DISABLE_CS TRUE)
229 
230 # Test uses distributed sources
231 set(GhostCellsGeneratorImageSerial_DISABLE_CS TRUE)
232 set(GhostCellsGeneratorImageSerial_DISABLE_CRS TRUE)
233 
234 # The following tests are only run in client-server mode.
235 # They are needed to verify the remote saving/loading of different files, such as states and screenshots, work.
236 paraview_add_client_server_tests(
237  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
238  TEST_SCRIPTS SaveLoadRemoteState.xml
239  )
241  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
242  TEST_SCRIPTS SaveRemoteScreenshot.xml
243  )
245  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
246  TEST_SCRIPTS SaveRemoteAnimation.xml
247  )
248 
249 SET (SpreadSheet1_DISABLE_CS TRUE)
250 SET (SpreadSheet1_DISABLE_CRS TRUE)
251 
252 # Disabled since the 1 column in spreadsheet view ends up being "Process ID"
253 # which messes up the sorting in this test. Need to extend the testing framework
254 # or fix spreadsheet view for these to work properly.
255 SET (SpreadSheet3_DISABLE_CS TRUE)
256 SET (SpreadSheet3_DISABLE_CRS TRUE)
257 
258 # The hierchical fractal source is a temporary testing source and it does not
259 # create the dataset correctly in parallel. Since it's a testing source, I am
260 # just going to disable the test in parallel. We can fix the source when
261 # needed.
262 SET (RectilinearFractal_DISABLE_CS TRUE)
263 SET (RectilinearFractal_DISABLE_CRS TRUE)
264 
265 # Selections end up highlighting different set of ID based points in parallel.
266 # Hence disable them.
267 set (LineChartSelection_DISABLE_CS TRUE)
268 set (LineChartSelection_DISABLE_CRS TRUE)
269 
270 # For the same reasons
271 set (MultiBlockChartSelection_DISABLE_CS TRUE)
272 set (MultiBlockChartSelection_DISABLE_CRS TRUE)
273 
274 # Selection link may highlight incorrect ID in parallel,
275 # hence disable them.
276 set(SelectionLinkBasic_DISABLE_CS TRUE)
277 set(SelectionLinkInitial_DISABLE_CS TRUE)
278 set(SelectionLinkMultiple_DISABLE_CS TRUE)
279 set(SelectionLinkRemove_DISABLE_CS TRUE)
280 set(SelectionLinkReaction_DISABLE_CS TRUE)
281 set(SelectionLinkScripting_DISABLE_CS TRUE)
282 
283 # Many types has a MPI version and Sequential version
284 set(ManyTypesXMLWriterReader_DISABLE_CS TRUE)
285 set(ManyTypesXMLWriterReader_DISABLE_CRS TRUE)
286 set(ManyTypesXMLWriterReaderMPI_DISABLE_C TRUE)
function paraview_add_client_tests()
function paraview_add_client_server_tests()
Reduction Filter that uses vtkAppendDataSets as PostGatherHelper.
function paraview_add_client_server_render_tests()
mode