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  )
98 
99 # Different result for RandomHTG in serial & parallel
101  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
102  TEST_SCRIPTS VTKHDFWriterHTGDistributed.xml
103  )
104 
105 # HTG Source has special features when used in an MPI setting
107  TEST_SCRIPTS HyperTreeGridSourceDistributed.xml
108  )
109 
110 # GhostCellGeneratorSynchronize is only tested in non-built-in mode.
112  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
113  TEST_SCRIPTS GhostCellsGeneratorSynchronize.xml
114  )
116  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
117  TEST_SCRIPTS GhostCellsGeneratorSynchronize.xml
118  )
119 
120 # GhostCellsGeneratorImageDistributed needs specifically two servers
122  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
123  TEST_SCRIPTS GhostCellsGeneratorImageDistributed.xml
124  NUMSERVERS 2
125  )
127  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
128  TEST_SCRIPTS GhostCellsGeneratorImageDistributed.xml
129  NUMSERVERS 2
130  )
132  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
133  TEST_SCRIPTS HyperTreeGridGhostCellsGeneratorComposite.xml
134  NUMSERVERS 2
135  )
137  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
138  TEST_SCRIPTS RedistributeHyperTreeGrid.xml
139  NUMSERVERS 4
140  )
142  TEST_SCRIPTS GhostCellsHTGComposite.xml
143  NUMSERVERS 2
144 )
145 
146 # AppendReduceFilter needs specifically four servers to generate duplicate points
148  TEST_SCRIPTS vtkAppendReduceFilter.xml
149  NUMSERVERS 4
150 )
151 
152 # Piece distribution makes sense only in parallel
153 # using 3 servers to showcase the different distribution modes
155  TEST_SCRIPTS VTKHDFReaderPieceDistribution.xml
156  NUMSERVERS 3
157 )
158 
160  TEST_SCRIPTS GhostFeatureEdgesAndWireframe.xml
161  )
163  TEST_SCRIPTS GhostFeatureEdgesAndWireframe.xml
164  )
165 
167  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
168  TEST_SCRIPTS RemoveGhostInterfaces.xml
169  )
171  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
172  TEST_SCRIPTS RemoveGhostInterfaces.xml
173  )
174 
175 # Regression test for https://gitlab.kitware.com/paraview/paraview/-/issues/21396
176 # Opacity rendering specifically needs to be tested with >4 procs and remote rendering
178  TEST_SCRIPTS TestOpacityRendering.xml
179 )
181  TEST_SCRIPTS TestOpacityRendering.xml
182  NUMSERVERS 5
183 )
185  TEST_SCRIPTS TestOpacityRendering.xml
186  NUMSERVERS 5
187 )
188 
189 # Regression test for https://gitlab.kitware.com/paraview/paraview/-/issues/22681
190 # as it occurs when we have >=4 procs
192  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
193  TEST_SCRIPTS VolumeCrop.xml
194 )
196  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
197  TEST_SCRIPTS VolumeCrop.xml
198  NUMSERVERS 4
199 )
200 
201 if (PARAVIEW_ENABLE_COSMOTOOLS)
202  # Test the Generic IO file writer in VTKExtensions/CosmoTools
203  ExternalData_Expand_Arguments(ParaViewData _
204  "DATA{${paraview_test_data_directory_input}/Data/genericio/m000.499.allparticles}")
206  ARGS --mpi
207  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
208  TEST_SCRIPTS GenericIOReadWrite.xml
209  )
211  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
212  TEST_SCRIPTS GenericIOReadWrite.xml
213  )
215  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
216  TEST_SCRIPTS GenericIOReadWrite.xml
217  )
218 
219 endif()
220 list(APPEND TESTS_WITH_BASELINES
221  CGNSReader-5blocks_cgns.xml)
222 
223 # PointInterpolator only works in non-distributed modes.
224 set(PointInterpolator_DISABLE_CRS TRUE)
225 set(PointInterpolator_DISABLE_CS TRUE)
226 set(PointVolumeInterpolator_DISABLE_CS TRUE)
227 
228 # Test uses distributed sources
229 set(GhostCellsGeneratorImageSerial_DISABLE_CS TRUE)
230 set(GhostCellsGeneratorImageSerial_DISABLE_CRS TRUE)
231 
232 # The following tests are only run in client-server mode.
233 # They are needed to verify the remote saving/loading of different files, such as states and screenshots, work.
234 paraview_add_client_server_tests(
235  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
236  TEST_SCRIPTS SaveLoadRemoteState.xml
237  )
239  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
240  TEST_SCRIPTS SaveRemoteScreenshot.xml
241  )
243  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
244  TEST_SCRIPTS SaveRemoteAnimation.xml
245  )
246 
247 SET (SpreadSheet1_DISABLE_CS TRUE)
248 SET (SpreadSheet1_DISABLE_CRS TRUE)
249 
250 # Disabled since the 1 column in spreadsheet view ends up being "Process ID"
251 # which messes up the sorting in this test. Need to extend the testing framework
252 # or fix spreadsheet view for these to work properly.
253 SET (SpreadSheet3_DISABLE_CS TRUE)
254 SET (SpreadSheet3_DISABLE_CRS TRUE)
255 
256 # The hierchical fractal source is a temporary testing source and it does not
257 # create the dataset correctly in parallel. Since it's a testing source, I am
258 # just going to disable the test in parallel. We can fix the source when
259 # needed.
260 SET (RectilinearFractal_DISABLE_CS TRUE)
261 SET (RectilinearFractal_DISABLE_CRS TRUE)
262 
263 # Selections end up highlighting different set of ID based points in parallel.
264 # Hence disable them.
265 set (LineChartSelection_DISABLE_CS TRUE)
266 set (LineChartSelection_DISABLE_CRS TRUE)
267 
268 # For the same reasons
269 set (MultiBlockChartSelection_DISABLE_CS TRUE)
270 set (MultiBlockChartSelection_DISABLE_CRS TRUE)
271 
272 # Selection link may highlight incorrect ID in parallel,
273 # hence disable them.
274 set(SelectionLinkBasic_DISABLE_CS TRUE)
275 set(SelectionLinkInitial_DISABLE_CS TRUE)
276 set(SelectionLinkMultiple_DISABLE_CS TRUE)
277 set(SelectionLinkRemove_DISABLE_CS TRUE)
278 set(SelectionLinkReaction_DISABLE_CS TRUE)
279 set(SelectionLinkScripting_DISABLE_CS TRUE)
280 
281 # Many types has a MPI version and Sequential version
282 set(ManyTypesXMLWriterReader_DISABLE_CS TRUE)
283 set(ManyTypesXMLWriterReader_DISABLE_CRS TRUE)
284 set(ManyTypesXMLWriterReaderMPI_DISABLE_C TRUE)
Reduction Filter that uses vtkAppendDataSets as PostGatherHelper.
function paraview_add_client_server_tests()
mode
function paraview_add_client_server_render_tests()
function paraview_add_client_tests()