CMakeLists.txt 40.6 KB
Newer Older
1 2 3 4
# TODO: Split these up and put them in the conditional which actually requires
# the data.
paraview_test_load_data_dirs(""
  "Iron Xdmf"
5
  amr
6 7
  ANALYZE
  dualSphereAnimation
8
  ensemble-wavelet
9 10
  EnSight
  ExRestarts
11 12
  FieldDataBlocks
  FieldDataBlocks/FieldDataBlocks
13 14 15 16 17 18
  FileSeries
  GMV
  GMV/invalid
  GMV/partial-pyramid
  GMV/quadratic_cells
  RodPlate
19
  singleSphereAnimation
20 21 22 23 24 25
  SLAC/pic-example
  SPCTH
  SPCTH/Dave_Karelitz_Small
  SPCTH/DerivedDensity
  VisItBridge
  )
26

27 28 29 30 31 32 33 34
paraview_test_load_data(""
  ,REGEX:tensors_.*\\.vti
  artifact.dta
  "blow data.myvtk"
  bluntfin.vts
  can.ex2
  comb.q
  combxyz.bin
35
  CubeStringArray.vtk
36 37
  cylinder_run1.e
  cylinder_run2.e
38
  disk_out_ref.ex2
39
  dualSphereAnimation4.pvd
40 41 42 43 44 45
  dualSphereAnimation.clone.pvd
  dualSphereAnimation.pvd
  "iron protein.vtk"
  LoadStateMultiView.pvsm
  LoadState.pvsm
  minimal.nii
46 47 48
  MultiBlockWithPieces_0_0.vtp
  MultiBlockWithPieces_1_0.vtp
  MultiBlockWithPieces.vtm
49 50 51 52
  multicomb_0.vts
  multicomb_1.vts
  multicomb_2.vts
  NE2_ps_bath.png
53
  non_convex_polygon.vtu
54
  office.binary.vtk
55
  porphyrin.cml
56 57 58 59 60 61 62
  PropertyLink.pvsm
  quadraticTetra01.vtu
  RectGrid2.vtk
  sample.h5part
  Scenario1_p1.h5
  Scenario1_p1.xmf
  servers-wiki.pvsc
63
  sineWaves.csv
64 65 66 67
  singleSphereAnimation.pvd
  tensors.pvti
  Test1.h5
  Test1.xmf
68
  TestMultipleNumberOfComponentsPlugin.xml
69 70
  tube.exo
  vehicle_data.csv
David E. DeMarle's avatar
David E. DeMarle committed
71
  viscoplastic-ring.h5
72 73
  )

74 75
SET (TESTS_WITHOUT_BASELINES
  ${CMAKE_CURRENT_SOURCE_DIR}/AboutDialog.xml
76
  ${CMAKE_CURRENT_SOURCE_DIR}/ArrayBoundsScaleDomain.xml
Mathieu Westphal's avatar
Mathieu Westphal committed
77
  ${CMAKE_CURRENT_SOURCE_DIR}/DelimitedTextReader.xml
78
  ${CMAKE_CURRENT_SOURCE_DIR}/ExportFilteredColumnsSpreadsheet.xml
79
  ${CMAKE_CURRENT_SOURCE_DIR}/FindWidget.xml
80
  ${CMAKE_CURRENT_SOURCE_DIR}/OpenHelp.xml
81
  ${CMAKE_CURRENT_SOURCE_DIR}/ServerConnectDialog.xml
82
  ${CMAKE_CURRENT_SOURCE_DIR}/SearchBox.xml
83
  ${CMAKE_CURRENT_SOURCE_DIR}/TableHistogram.xml
84 85
)

86
if (PARAVIEW_ENABLE_PYTHON)
87
  list(APPEND TESTS_WITHOUT_BASELINES
88
    ${CMAKE_CURRENT_SOURCE_DIR}/DetachedFromLayoutIndirect.xml
89
    ${CMAKE_CURRENT_SOURCE_DIR}/TestPythonConsole.xml
90
    ${CMAKE_CURRENT_SOURCE_DIR}/TestPopOutWidget.xml # needs programmable filter
91 92 93
    ${CMAKE_CURRENT_SOURCE_DIR}/MultipleNumberOfComponents.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/SpreadSheetNullArrayName.xml # needs programmable filter
  )
94 95
endif()

96
SET (TESTS_WITH_INLINE_COMPARES
97
  ${CMAKE_CURRENT_SOURCE_DIR}/AxesGrid.xml
98
  ${CMAKE_CURRENT_SOURCE_DIR}/CalculatorQuotedVariable.xml
99
  ${CMAKE_CURRENT_SOURCE_DIR}/CameraLink.xml
100
  ${CMAKE_CURRENT_SOURCE_DIR}/ChartLoadNoVariables.xml
101
  ${CMAKE_CURRENT_SOURCE_DIR}/ClampAndUpdateColorMap.xml
102
  ${CMAKE_CURRENT_SOURCE_DIR}/Contour.xml
103
  ${CMAKE_CURRENT_SOURCE_DIR}/DisconnectAndSaveAnimation.xml
104
  ${CMAKE_CURRENT_SOURCE_DIR}/Ensemble.xml
105
  ${CMAKE_CURRENT_SOURCE_DIR}/FileSeries.xml
106
  ${CMAKE_CURRENT_SOURCE_DIR}/LineChartSelection.xml
107
  ${CMAKE_CURRENT_SOURCE_DIR}/LoadStateMultiView.xml
108
  ${CMAKE_CURRENT_SOURCE_DIR}/LogColorMap.xml
109
  ${CMAKE_CURRENT_SOURCE_DIR}/MemoryInspectorPanel.xml
110
  ${CMAKE_CURRENT_SOURCE_DIR}/Molecule.xml
111
  ${CMAKE_CURRENT_SOURCE_DIR}/NonlinearSubdivisionDisplay.xml
112
  ${CMAKE_CURRENT_SOURCE_DIR}/QuartilePlot.xml
113
  ${CMAKE_CURRENT_SOURCE_DIR}/RectilinearFractal.xml
114
  ${CMAKE_CURRENT_SOURCE_DIR}/ReloadExodusFile.xml
115
  ${CMAKE_CURRENT_SOURCE_DIR}/RemoteRendering.xml
116
  ${CMAKE_CURRENT_SOURCE_DIR}/RenderNan.xml
117
  ${CMAKE_CURRENT_SOURCE_DIR}/ResetToVisibleRange.xml
Cory Quammen's avatar
Cory Quammen committed
118
  ${CMAKE_CURRENT_SOURCE_DIR}/Ruler.xml
119
  ${CMAKE_CURRENT_SOURCE_DIR}/SaveLargeScreenshot.xml
120
  ${CMAKE_CURRENT_SOURCE_DIR}/TestIsoVolume.xml
121
  ${CMAKE_CURRENT_SOURCE_DIR}/TransferFunctionResetOnVisibilityChange.xml
122
  ${CMAKE_CURRENT_SOURCE_DIR}/UpdateTransferFunctionRanges.xml
123 124
  ${CMAKE_CURRENT_SOURCE_DIR}/XYChart.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/XYHistogram.xml
125 126
)

127
SET(TESTS_WITH_BASELINES
128
  ${CMAKE_CURRENT_SOURCE_DIR}/MoleculeScalarBar.xml
129 130
  ${CMAKE_CURRENT_SOURCE_DIR}/TestHiddenLineRemoval.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/TestOpacityRendering.xml
131 132
)

133
if(PARAVIEW_USE_VISITBRIDGE)
134
  list(APPEND TESTS_WITH_BASELINES
135 136
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgeChombo.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgeEnzo.xml
137
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgeLAMMPSDump.xml
138
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgeLAMMPSDump2.xml
139
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgeNas.xml
140
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgeNek.xml
141
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgePdb.xml
Robert Maynard's avatar
Robert Maynard committed
142
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgePFLOTRAN.xml
143
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgePixie.xml
144 145 146 147 148 149 150 151 152 153 154
    ${CMAKE_CURRENT_SOURCE_DIR}/VisItBridgeSamrai.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/TruchasReaderWithVisItBridge.xml)
else()
  # The TruchasReader test behavior changes depending on whether the
  # VisItBridge is enabled. A number of VisIt readers support
  # reading of .h5 files, so when the VisItBridge is enabled,
  # the test must take extra steps to select the correct reader.
  # When the VisItBridge is not enabled, there is no need to select
  # a reader.
  list(APPEND TESTS_WITH_BASELINES
    ${CMAKE_CURRENT_SOURCE_DIR}/TruchasReader.xml)
155
endif()
156

157 158 159 160 161
if(PARAVIEW_USE_OSPRAY)
  list(APPEND TESTS_WITH_BASELINES
    ${CMAKE_CURRENT_SOURCE_DIR}/OSPRay.xml)
endif()

162 163 164 165 166 167
# hits OSX bug with FileDialog so exclude test on APPLE
if (NOT APPLE)
  list (APPEND TESTS_WITH_INLINE_COMPARES
    ${CMAKE_CURRENT_SOURCE_DIR}/HistogramSelection.xml)
endif()

Dan Lipsa's avatar
Dan Lipsa committed
168 169
# Catalyst-Live tests
# ----------------------------------------------------------------------
170
if(PARAVIEW_ENABLE_CATALYST AND PARAVIEW_ENABLE_PYTHON)
Dan Lipsa's avatar
Dan Lipsa committed
171
  set (catalyst_live_tests
172 173
    CatalystLiveSetBreakpoint
    CatalystLivePause)
174
  set (CATALYST_SIMULATION CatalystWaveletDriver.py)
175 176 177 178
  set (INSITU_SCRIPT CatalystWaveletCoprocessing)
  # Test-specific parameters
  set (CatalystLiveSetBreakpoint_DURATION 222)
  set (CatalystLivePause_DURATION 80)
Dan Lipsa's avatar
Dan Lipsa committed
179 180

  foreach (tname ${catalyst_live_tests})
181 182
    # These tests are too complex to run in parallel.
    set ("${tname}_FORCE_SERIAL" TRUE)
Dan Lipsa's avatar
Dan Lipsa committed
183 184
    add_pv_test("pv" "_DISABLE_C"
      COMMAND
185
      --script-ignore-output-errors --script $<TARGET_FILE:pvbatch> -sym
186
      ${CMAKE_CURRENT_SOURCE_DIR}/${CATALYST_SIMULATION}
187
      ${INSITU_SCRIPT} "${${tname}_DURATION}"
Dan Lipsa's avatar
Dan Lipsa committed
188 189 190 191 192 193

      --client ${CLIENT_EXECUTABLE}
      --enable-bt
      -dr
      --test-directory=${PARAVIEW_TEST_DIR}
      BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
194
      TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/${tname}.xml
195
      EXTRA_LABELS "CATALYST")
Dan Lipsa's avatar
Dan Lipsa committed
196 197 198

    add_pv_test(pvcs "_DISABLE_CS"
      COMMAND
199
      --script-np 5 --script-ignore-output-errors
Dan Lipsa's avatar
Dan Lipsa committed
200
      --script $<TARGET_FILE:pvbatch> -sym
201
      ${CMAKE_CURRENT_SOURCE_DIR}/${CATALYST_SIMULATION}
202
      ${INSITU_SCRIPT} "${${tname}_DURATION}"
Dan Lipsa's avatar
Dan Lipsa committed
203 204 205 206 207 208 209 210 211

      --server $<TARGET_FILE:pvserver>
      --enable-bt

      --client ${CLIENT_EXECUTABLE}
      --enable-bt
      -dr
      --test-directory=${PARAVIEW_TEST_DIR}
      BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
212
      TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/${tname}.xml
213
      EXTRA_LABELS "CATALYST")
Dan Lipsa's avatar
Dan Lipsa committed
214 215 216
  endforeach()
endif()

217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
if (NOT PARAVIEW_ENABLE_XDMF3)
  # Presently, all these tests only work with Xdmf2 and when Xdmf3 is enabled,
  # the SelectReader dialog confuses these tests. So, we'll disable them for now.
  # We need a better mechanism to handle such cases in the testing framework.
  list(APPEND TESTS_WITH_BASELINES
    ${CMAKE_CURRENT_SOURCE_DIR}/ExtractBlock.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfRead.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfReadImageData.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfReadImageDataCollection.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfReadRectilinearGrid.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfReadRectilinearGridCollection.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfReadStructuredGrid.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfReadStructuredGridCollection.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/XdmfGridAttributes.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/ZLibXDMF.xml
    )
endif()
234

235
list(APPEND TESTS_WITH_BASELINES
236
  ${CMAKE_CURRENT_SOURCE_DIR}/Annotations.xml
237
  ${CMAKE_CURRENT_SOURCE_DIR}/CopyPasteProperties.xml
George Zagaris's avatar
George Zagaris committed
238
  ${CMAKE_CURRENT_SOURCE_DIR}/CTHAMRBaseline.xml
239
  ${CMAKE_CURRENT_SOURCE_DIR}/CTHAMRClip.xml
George Zagaris's avatar
George Zagaris committed
240 241 242
  ${CMAKE_CURRENT_SOURCE_DIR}/CTHAMRContour.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/CTHAMRDualClip.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/CTHAMRMaterialInterfaceFilter.xml
243
  ${CMAKE_CURRENT_SOURCE_DIR}/CTHDerivedDensity2DClyinder.xml
244
  ${CMAKE_CURRENT_SOURCE_DIR}/AddActiveValuesFromVisibleObjects.xml
245
  ${CMAKE_CURRENT_SOURCE_DIR}/AnimatePipelineTime.xml
246
  ${CMAKE_CURRENT_SOURCE_DIR}/AngularPeriodicFilter.xml
Joachim Pouderoux's avatar
Joachim Pouderoux committed
247
  ${CMAKE_CURRENT_SOURCE_DIR}/BagPlots.xml
248
  ${CMAKE_CURRENT_SOURCE_DIR}/3DWidgetInCustomFilter.xml
249 250
  ${CMAKE_CURRENT_SOURCE_DIR}/CalcParens.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/Calculator.xml
251
  ${CMAKE_CURRENT_SOURCE_DIR}/ChangingTimestepsInStateFiles.xml
252
  ${CMAKE_CURRENT_SOURCE_DIR}/ChartAxisRangeAndLabels.xml
253
  ${CMAKE_CURRENT_SOURCE_DIR}/CheckableHeader.xml
254
  ${CMAKE_CURRENT_SOURCE_DIR}/Clip.xml
255 256
  ${CMAKE_CURRENT_SOURCE_DIR}/ColorEditorControls.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/ColorEditorVolumeControls.xml
257
  ${CMAKE_CURRENT_SOURCE_DIR}/ColorLegendMinMaxLabels.xml
258
  ${CMAKE_CURRENT_SOURCE_DIR}/ColorOpacityTableEditing.xml
259
  ${CMAKE_CURRENT_SOURCE_DIR}/CategoricalColors.xml
260
  ${CMAKE_CURRENT_SOURCE_DIR}/ColorByCellDataStringArray.xml
261
  ${CMAKE_CURRENT_SOURCE_DIR}/ComparativeVisPanel.xml
262 263
  # disabling overlay test for now. It has issues with Time 0.
  #  ${CMAKE_CURRENT_SOURCE_DIR}/ComparativeOverlay.xml
264
  ${CMAKE_CURRENT_SOURCE_DIR}/CompositeSurfaceSelection.xml
265
  ${CMAKE_CURRENT_SOURCE_DIR}/CreateDelete.xml
266 267
  ${CMAKE_CURRENT_SOURCE_DIR}/CustomFilter.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/CustomSourceProbe.xml
268
  ${CMAKE_CURRENT_SOURCE_DIR}/DataOutlines.xml
269
  ${CMAKE_CURRENT_SOURCE_DIR}/DualSphereAnimation.xml
270
  ${CMAKE_CURRENT_SOURCE_DIR}/EnSight.xml
271 272
  ${CMAKE_CURRENT_SOURCE_DIR}/EnSightTensorInversion.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/EnSightTensorInversionBin.xml
273
  ${CMAKE_CURRENT_SOURCE_DIR}/ExodusXML.xml
274
  ${CMAKE_CURRENT_SOURCE_DIR}/ExportLinePlotToCSV.xml
275
  ${CMAKE_CURRENT_SOURCE_DIR}/ExportX3dPOVVRML.xml
276 277
  ${CMAKE_CURRENT_SOURCE_DIR}/ExTimeseries.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/ExTimeseries2.xml
278
  ${CMAKE_CURRENT_SOURCE_DIR}/ExtractComponentFilter.xml
279
  ${CMAKE_CURRENT_SOURCE_DIR}/ExtractLevel.xml
Sujin Philip's avatar
Sujin Philip committed
280
  ${CMAKE_CURRENT_SOURCE_DIR}/ExtractTimeSteps.xml
281
  ${CMAKE_CURRENT_SOURCE_DIR}/FFTOverTime.xml
282
  ${CMAKE_CURRENT_SOURCE_DIR}/FieldDataBlocks.xml
283 284
  ${CMAKE_CURRENT_SOURCE_DIR}/Flow.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/Flow2.xml
285
  ${CMAKE_CURRENT_SOURCE_DIR}/ForceTime.xml
286
  ${CMAKE_CURRENT_SOURCE_DIR}/Fractal2D.xml
287
  ${CMAKE_CURRENT_SOURCE_DIR}/FunctionalBagPlots.xml
288
  ${CMAKE_CURRENT_SOURCE_DIR}/Glyph3DRepresentation.xml
289
  ${CMAKE_CURRENT_SOURCE_DIR}/GlyphUseCellCenters.xml
Mathieu Westphal's avatar
Mathieu Westphal committed
290
  ${CMAKE_CURRENT_SOURCE_DIR}/HideAll.xml
291
  ${CMAKE_CURRENT_SOURCE_DIR}/ImageVolumeRendering.xml
292
  ${CMAKE_CURRENT_SOURCE_DIR}/InteractiveSelection.xml
293 294 295
  ${CMAKE_CURRENT_SOURCE_DIR}/InteractiveViewLinkOffscreen.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/InteractiveViewLinkOnscreen.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/InteractiveViewLinkState.xml
296
  ${CMAKE_CURRENT_SOURCE_DIR}/LoadPartiallyUpdatedStateFiles.xml
297 298
  ${CMAKE_CURRENT_SOURCE_DIR}/LoadSaveStateAnimation.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/LoadState.xml
299
  ${CMAKE_CURRENT_SOURCE_DIR}/LoadSaveStateVolume.xml
300
  ${CMAKE_CURRENT_SOURCE_DIR}/MultiBlockAttributes1.xml
301
  ${CMAKE_CURRENT_SOURCE_DIR}/MultiBlockSingleBlock.xml
302 303
  ${CMAKE_CURRENT_SOURCE_DIR}/MultiSliceMultiBlock.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/MultiSliceWavelet.xml
304
  ${CMAKE_CURRENT_SOURCE_DIR}/NormalGlyphs.xml
305
  ${CMAKE_CURRENT_SOURCE_DIR}/NumberOfComponentsDomain.xml
306
  ${CMAKE_CURRENT_SOURCE_DIR}/NiftiReaderWriterPlugin.xml
307
  ${CMAKE_CURRENT_SOURCE_DIR}/NonConvexPolygon.xml
308
  ${CMAKE_CURRENT_SOURCE_DIR}/OpenSaveData.xml
309
  ${CMAKE_CURRENT_SOURCE_DIR}/OrthographicView.xml
310
  ${CMAKE_CURRENT_SOURCE_DIR}/OutOfRangeColors.xml
311 312
  ${CMAKE_CURRENT_SOURCE_DIR}/Plot3DReader.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/PlotEdges2.xml
313
  ${CMAKE_CURRENT_SOURCE_DIR}/PlotEdges.xml
314
  ${CMAKE_CURRENT_SOURCE_DIR}/PlotGlobalVariablesOverTime.xml
315
  ${CMAKE_CURRENT_SOURCE_DIR}/PlotOverTimeAutoApply.xml
316 317
  ${CMAKE_CURRENT_SOURCE_DIR}/PolygonCellSelection.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/PolygonPointSelection.xml
318
  ${CMAKE_CURRENT_SOURCE_DIR}/PointInterpolator.xml
319
  ${CMAKE_CURRENT_SOURCE_DIR}/PolarAxes.xml
320 321
  ${CMAKE_CURRENT_SOURCE_DIR}/PropertyConversion.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/PropertyConversion1.xml
322
  ${CMAKE_CURRENT_SOURCE_DIR}/PropertyConversion2.xml
323
  ${CMAKE_CURRENT_SOURCE_DIR}/PropertyConversion3.xml
324 325 326
  ${CMAKE_CURRENT_SOURCE_DIR}/PropertyLink.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/ReadXMLPolyDataFileSeries.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/RepresentationSelector.xml
327
  ${CMAKE_CURRENT_SOURCE_DIR}/ResampleWithDataset.xml
328
  ${CMAKE_CURRENT_SOURCE_DIR}/RescaleToTemporal.xml
329
  ${CMAKE_CURRENT_SOURCE_DIR}/RotateCamera90.xml
330
#  ${CMAKE_CURRENT_SOURCE_DIR}/SaveAnimationGeometry.xml
331 332
  ${CMAKE_CURRENT_SOURCE_DIR}/SaveColorMap.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SaveCSV.xml
333
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectedProxyPanelVisibility.xml
334 335 336
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionModifiersCells.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionModifiersPoints.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionModifiersBlocks.xml
337 338 339
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectReader.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SimpleInteraction.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/Slice.xml
340
  ${CMAKE_CURRENT_SOURCE_DIR}/SliceAlongPolyline.xml
341
  ${CMAKE_CURRENT_SOURCE_DIR}/SliceAlongSpline.xml
342
  ${CMAKE_CURRENT_SOURCE_DIR}/SolidColorSource.xml
343
  ${CMAKE_CURRENT_SOURCE_DIR}/SphereSlice.xml
Mathieu Westphal's avatar
Mathieu Westphal committed
344
  ${CMAKE_CURRENT_SOURCE_DIR}/SpherePointSource.xml
345 346
  ${CMAKE_CURRENT_SOURCE_DIR}/SpreadSheet1.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SpreadSheet2.xml
347
  ${CMAKE_CURRENT_SOURCE_DIR}/SpreadSheet3.xml
348
  ${CMAKE_CURRENT_SOURCE_DIR}/SPTimeseries.xml
349
  ${CMAKE_CURRENT_SOURCE_DIR}/SpyPlotHistoryReader.xml
350 351 352 353 354
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionLinkBasic.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionLinkInitial.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionLinkMultiple.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionLinkRemove.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SelectionLinkReaction.xml
355
  ${CMAKE_CURRENT_SOURCE_DIR}/SortLineChartData.xml
356
  ${CMAKE_CURRENT_SOURCE_DIR}/StreamTracerSurface.xml
357
  ${CMAKE_CURRENT_SOURCE_DIR}/StockColors.xml
358
  ${CMAKE_CURRENT_SOURCE_DIR}/StreamTracerUpdates.xml
359
  ${CMAKE_CURRENT_SOURCE_DIR}/TabbedViews.xml
360
  ${CMAKE_CURRENT_SOURCE_DIR}/TensorGlyph.xml
361 362
  ${CMAKE_CURRENT_SOURCE_DIR}/TemporalInterpolator.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/TemporalShiftScale.xml
363
  ${CMAKE_CURRENT_SOURCE_DIR}/TestGroupDataFromTimeSeries.xml
364
  ${CMAKE_CURRENT_SOURCE_DIR}/TestSelectionOnMultipiece.xml
365
  ${CMAKE_CURRENT_SOURCE_DIR}/TimeInspector.xml
366
  ${CMAKE_CURRENT_SOURCE_DIR}/TimeStepProgressBar.xml
367 368 369 370 371 372 373 374 375
  ${CMAKE_CURRENT_SOURCE_DIR}/Tessellate.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/Threshold.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo1.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo2.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo3.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo5.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo6.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo7.xml
Sebastien Jourdain's avatar
Sebastien Jourdain committed
376
  ${CMAKE_CURRENT_SOURCE_DIR}/UndoRedo8.xml
377
  ${CMAKE_CURRENT_SOURCE_DIR}/UnstructuredOutline.xml
378
  ${CMAKE_CURRENT_SOURCE_DIR}/VolumeRenderingWithContour.xml
379
  ${CMAKE_CURRENT_SOURCE_DIR}/VariableSelector.xml
380
  ${CMAKE_CURRENT_SOURCE_DIR}/VariableSelector1.xml
381
  ${CMAKE_CURRENT_SOURCE_DIR}/ViewSettingsDialog.xml
382
  #  ${CMAKE_CURRENT_SOURCE_DIR}/XYBarChart.xml
383
  ${CMAKE_CURRENT_SOURCE_DIR}/RandomAttributes.xml
384 385
)

386 387 388 389 390 391
if(VTK_USE_LARGE_DATA)
  paraview_test_load_data_dirs(""
    bake
  )
  list(APPEND TESTS_WITH_BASELINES
    ${CMAKE_CURRENT_SOURCE_DIR}/CheckSelectedBlocks.xml
392
    ${CMAKE_CURRENT_SOURCE_DIR}/RestoreBlockColorDefaultTransferFunction.xml
393 394 395
    )
endif()

396 397
# The color dialog is different on MacOS X which makes this test fail.
if(NOT APPLE)
398
  list(APPEND TESTS_WITH_BASELINES
399 400 401
    ${CMAKE_CURRENT_SOURCE_DIR}/BackgroundLights.xml
    )
endif()
402 403 404

if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2")
  list(APPEND TESTS_WITH_BASELINES
405
    # This test makes use of "Point Gaussian" representation, only available with OpenGL2
406
    ${CMAKE_CURRENT_SOURCE_DIR}/BackgroundColorCheck.xml
407 408 409

    # PlotMatrixView is bugging in OpenGL1
    ${CMAKE_CURRENT_SOURCE_DIR}/PlotMatrixViewArraySelection.xml
410 411
    )
endif()
412

413 414 415 416 417 418 419
if (PARAVIEW_USE_MPI)
  list(APPEND TESTS_WITH_BASELINES
    # Test uses D3 which is available in MPI only builds.
    ${CMAKE_CURRENT_SOURCE_DIR}/D3SmallCells.xml

    # Test uses D3 which is available in MPI only builds.
    ${CMAKE_CURRENT_SOURCE_DIR}/GridConnectivity.xml
420 421 422

    # Test uses D3 which is available in MPI only builds.
    ${CMAKE_CURRENT_SOURCE_DIR}/ExportSelectionToCSV.xml
423 424 425 426 427 428 429 430 431 432

    # Test Use Data Partitions for volume rendering
    #${CMAKE_CURRENT_SOURCE_DIR}/UseDataPartitions.xml

  )

  # This test requires a parallel partition to make sense so we
  # skip running it with the built-in server.
  add_client_server_tests("pvcs"
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/UseDataPartitions.xml
433
  )
434 435 436 437 438 439 440 441 442 443 444 445

  # Test uses GhostCellsGenerator which is available in MPI only builds.
  # As the test use pvtu writer/reader it does not work in built-in mode.
  add_client_server_tests("pvcs"
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/GhostCellsGenerator.xml
    )
  add_client_render_server_tests("pvcrs"
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/GhostCellsGenerator.xml
    )

446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462
  if (PARAVIEW_ENABLE_COSMOTOOLS)
    # Test the Generic IO file writer in VTKExtensions/CosmoTools
    add_client_tests("pv"
      --mpi
      BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
      TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/GenericIOReadWrite.xml
      )
    add_client_server_tests("pvcs"
      BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
      TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/GenericIOReadWrite.xml
      )
    add_client_render_server_tests("pvcrs"
      BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
      TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/GenericIOReadWrite.xml
      )

  endif()
463 464 465 466 467 468
  if (PARAVIEW_ENABLE_CGNS)
    list(APPEND TESTS_WITH_BASELINES
      ${CMAKE_CURRENT_SOURCE_DIR}/CGNSReader-5blocks_cgns.xml
    )
    set(CGNSReader-5blocks_cgns_DISABLE_CRS TRUE)
  endif()
469 470 471 472

  # PointInterpolator only works in non-distributed modes.
  set(PointInterpolator_DISABLE_CRS TRUE)
  set(PointInterpolator_DISABLE_CS TRUE)
473
endif()
474
if(PARAVIEW_ENABLE_PYTHON)
475
  list(APPEND TESTS_WITH_BASELINES
476
    ${CMAKE_CURRENT_SOURCE_DIR}/ColorByComponentNames.xml # needs programmable filter
477
    ${CMAKE_CURRENT_SOURCE_DIR}/SelectionLabels.xml
478
    ${CMAKE_CURRENT_SOURCE_DIR}/TraceExodus.xml
479
    ${CMAKE_CURRENT_SOURCE_DIR}/TraceExportAndSaveData.xml
480
    ${CMAKE_CURRENT_SOURCE_DIR}/TraceSaveGeometry.xml
481
    ${CMAKE_CURRENT_SOURCE_DIR}/TraceSupplementalProxiesFully.xml
482
    ${CMAKE_CURRENT_SOURCE_DIR}/SaveLoadStatePython.xml
483
  )
484
  list(APPEND TESTS_WITH_INLINE_COMPARES
485
    ${CMAKE_CURRENT_SOURCE_DIR}/RestoreArrayDefaultTransferFunction.xml
486 487 488
    ${CMAKE_CURRENT_SOURCE_DIR}/RestoreDefaultTransferFunction.xml
    ${CMAKE_CURRENT_SOURCE_DIR}/TraceMultiViews.xml
  )
489
  list(APPEND TESTS_WITHOUT_BASELINES
490
    ${CMAKE_CURRENT_SOURCE_DIR}/PythonCalculator.xml
491 492
    ${CMAKE_CURRENT_SOURCE_DIR}/TraceIntegrateVariables.xml
  )
493

494 495 496 497
  # Check that matplotlib is available
  include(FindPythonModules)
  find_python_module(matplotlib matplotlib_found)
  if (PARAVIEW_ENABLE_MATPLOTLIB AND matplotlib_found)
498 499
    list(APPEND TESTS_WITH_BASELINES ${CMAKE_CURRENT_SOURCE_DIR}/TestPythonView.xml)
  endif()
500 501 502 503

  find_python_module(numpy numpy_found)
  if (numpy_found)
    list(APPEND TESTS_WITH_BASELINES
504
      ${CMAKE_CURRENT_SOURCE_DIR}/ExodusModeShapes.xml
505
      ${CMAKE_CURRENT_SOURCE_DIR}/ForceTimeDiamond.xml
506
      ${CMAKE_CURRENT_SOURCE_DIR}/StructuredGridCellBlanking.xml
507 508 509 510
      ${CMAKE_CURRENT_SOURCE_DIR}/TestFindDataMax.xml)
    list(APPEND TESTS_WITH_INLINE_COMPARES
      ${CMAKE_CURRENT_SOURCE_DIR}/FindDataDialog.xml)
  endif()
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527

  if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2" AND numpy_found)
    # Cinema importing capabilities are only available in Python + OpenGL2
    # add the cinema database files.
    paraview_test_load_data("" "cinema-composite.cdb/image/info.json")
    foreach(poseidx RANGE 0 17)
      foreach(visidx RANGE 0 1)
        paraview_test_load_data_dirs("" "cinema-composite.cdb/image/pose=${poseidx}/vis=${visidx}")
      endforeach()
    endforeach()
    list(APPEND TESTS_WITH_BASELINES
      ${CMAKE_CURRENT_SOURCE_DIR}/ImportCinema.xml)

    # presently, we don't support client-server configurations.
    set(ImportCinema_DISABLE_CS TRUE)
    set(ImportCinema_DISABLE_CRS TRUE)
  endif()
528 529
endif()

530 531 532 533 534 535 536 537
#------------------------------------------------------------------------------
# Add streaming tests.
# We need to locate smooth.flash since it's not included in the default testing
# datasets.
find_file(smooth_flash NAMES smooth.flash
          DOC "Path to smooth.flash data file."
          NO_DEFAULT_PATH)
mark_as_advanced(smooth_flash)
538
if (EXISTS "${smooth_flash}")
539 540 541
  # we configure the file since we need to point to smooth_flash.
  configure_file("${CMAKE_CURRENT_SOURCE_DIR}/AMRStreaming.xml.in"
                 "${CMAKE_CURRENT_BINARY_DIR}/AMRStreaming.xml" @ONLY)
542 543 544
  configure_file("${CMAKE_CURRENT_SOURCE_DIR}/AMRVolumeRendering.xml.in"
                 "${CMAKE_CURRENT_BINARY_DIR}/AMRVolumeRendering.xml" @ONLY)

545
  set (streaming_tests
546 547 548 549
    ${CMAKE_CURRENT_BINARY_DIR}/AMRStreaming.xml)

  # AMRVolumeRendering is a non-streaming test.
  list(APPEND TESTS_WITH_BASELINES
550 551
    ${CMAKE_CURRENT_BINARY_DIR}/AMRVolumeRendering.xml)
  set(AMRVolumeRendering_BREAK TRUE)
552 553 554 555

  foreach (tname ${streaming_tests})
    add_pv_test("pv" "_DISABLE_C"
      COMMAND --client ${CLIENT_EXECUTABLE}
556
              --enable-bt
557 558 559
              -dr
              --enable-streaming
              --test-directory=${PARAVIEW_TEST_DIR}
560 561

      BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
562 563
      TEST_SCRIPTS ${tname})

564 565 566
    add_pv_test(pvcs "_DISABLE_CS"
      COMMAND
         --server $<TARGET_FILE:pvserver>
567
         --enable-bt
568
         --enable-streaming
569
         --client ${CLIENT_EXECUTABLE}
570
         --enable-bt
571 572 573
         -dr
         --enable-streaming
         --test-directory=${PARAVIEW_TEST_DIR}
574
      BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
575
      TEST_SCRIPTS ${tname})
576 577 578 579 580
  endforeach()
endif()

#------------------------------------------------------------------------------

581 582
# Probe picking does not work in render server mode

583
#------------------------------------------------------------------------------
584
set (TestPythonConsole_BREAK TRUE)
585

586 587 588
# Selection is not available in CRS mode
set(MultiSliceWavelet_DISABLE_CRS TRUE)
set(MultiSliceMultiBlock_DISABLE_CRS TRUE)
589 590
set(PolygonCellSelection_DISABLE_CRS TRUE)
set(PolygonPointSelection_DISABLE_CRS TRUE)
591
set(NonlinearSubdivisionDisplay_DISABLE_CRS TRUE)
592
set(InteractiveSelection_DISABLE_CRS TRUE)
593
set(NonConvexPolygon_DISABLE_CRS TRUE)
594
set(QuartilePlot_DISABLE_CRS TRUE)
595
set(TestSelectionOnMultipiece_DISABLE_CRS TRUE)
596
set(CheckSelectedBlocks_DISABLE_CRS TRUE)
597 598 599
set(SelectionModifiersCells_DISABLE_CRS TRUE)
set(SelectionModifiersBlocks_DISABLE_CRS TRUE)
set(SelectionModifiersPoints_DISABLE_CRS TRUE)
Mathieu Westphal's avatar
Mathieu Westphal committed
600 601 602 603 604
set(SelectionLinkBasic_DISABLE_CRS TRUE)
set(SelectionLinkInitial_DISABLE_CRS TRUE)
set(SelectionLinkMultiple_DISABLE_CRS TRUE)
set(SelectionLinkRemove_DISABLE_CRS TRUE)
set(SelectionLinkReaction_DISABLE_CRS TRUE)
605
set(ExportSelectionToCSV_DISABLE_CRS TRUE)
606

Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
607 608 609
# These tests cannot be run using ctest -j since they are affected by focus
# changed events.
set (AnimatePipelineTime_FORCE_SERIAL TRUE)
610 611
set (PolygonCellSelection_FORCE_SERIAL TRUE)
set (PolygonPointSelection_FORCE_SERIAL TRUE)
612 613 614
set (Contour_FORCE_SERIAL TRUE) # since this uses popup-menu
set (Calculator_FORCE_SERIAL TRUE) # since this uses popup-menu
set (LogColorMap_FORCE_SERIAL TRUE) # since this uses popup-menu
615
set (ColorOpacityTableEditing_FORCE_SERIAL TRUE) # since this uses popup-menu
616
set (SimpleInteraction_FORCE_SERIAL TRUE) # since this uses popup-menu
617 618 619 620 621 622 623
set (FindWidget_FORCE_SERIAL TRUE) # Uses inline edit popups
set (PropertyLink_FORCE_SERIAL TRUE)
set (TestPythonView_FORCE_SERIAL TRUE) # Seems to work better in serial.
set (Contour_FORCE_SERIAL TRUE) # Uses inline edit popups
set (SaveColorMap_FORCE_SERIAL TRUE) # Uses inline edit popups
set (CategoricalColors_FORCE_SERIAL TRUE) # Uses inline edit popups
set (ChartAxisRangeAndLabels_FORCE_SERIAL TRUE) # Uses inline edit popups
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
624

625 626 627 628
set (LoadSaveStateVolume_FORCE_SERIAL TRUE)
# We don't support volume rendering of image data in data server & render server mode
set(LoadSaveStateVolume_DISABLE_CRS TRUE)

George Zagaris's avatar
George Zagaris committed
629 630 631 632 633 634 635 636 637 638
# Set properties for CTH tests
set(CTHAMRContour_DISABLE_CS TRUE)
set(CTHAMRContour_DISABLE_CRS TRUE)
set(CTHAMRDualClip_DISABLE_CS TRUE)
set(CTHAMRDualClip_DISABLE_CRS TRUE)
set(CTHAMRClip_DISABLE_CS TRUE)
set(CTHAMRClip_DISABLE_CRS TRUE)
set(CTHAMRMaterialInterfaceFilter_DISABLE_CS TRUE)
set(CTHAMRMaterialInterfaceFilter_DISABLE_CRS TRUE)

639 640 641
# Since this test needs selection, disable in CRS mode.
set (SelectionLabels_DISABLE_CRS TRUE)

642 643
# Mark tests that change change state considerably requires a restart of the
# test suite when grouping tests together for faster playback.
644 645
SET (UndoRedo1_BREAK TRUE)
SET (UndoRedo2_BREAK TRUE)
Sebastien Jourdain's avatar
Sebastien Jourdain committed
646
SET (UndoRedo7_BREAK TRUE)
647 648
  # <-- since these are just long tests, they result in timeouts.

649 650 651 652 653 654
# Add image threshold overrides for tests.
# Generally all tests with wireframes need higher thresholds.
SET (Flow2_THRESHOLD 15)
SET (UndoRedo1_THRESHOLD 15)
SET (UndoRedo4_THRESHOLD 15)

655 656 657
# Differnces between systems on whether the lines are anti-aliased or not
SET (SortLineChartData_THRESHOLD 50)

658 659
# Since often there are issues with fonts etc.
SET (XYChart_THRESHOLD 150)
660
SET (CheckableHeader_THRESHOLD 150)
661 662
# Since the test uses surface-selection, it cannot work in render-server mode.
set(XYChart_DISABLE_CRS TRUE)
663

664
SET (XYHistogram_THRESHOLD 150)
665
set (ChartAxisRangeAndLabels_THRESHOLD 60)
666

667
# The color and opacity are often different on different machines.
668 669
SET (ColorEditorControls_THRESHOLD 60)
SET (ColorEditorVolumeControls_THRESHOLD 300)
670

671 672
# Plot image leeway.
set (SpreadSheet2_THRESHOLD 50)
673
set (PlotOverTimeAutoApply_THRESHOLD 50)
674
set (ExportLinePlotToCSV_THRESHOLD 30)
675
set (PlotOverTimeAutoApply_DISABLE_CRS TRUE) # since this uses surface selection.
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
676
set (QuartilePlot_THRESHOLD 20)
677

678

679 680 681 682 683
# DisconnectAndSaveAnimation is only support in Client-Server mode.
set (DisconnectAndSaveAnimation_DISABLE_C TRUE)
set (DisconnectAndSaveAnimation_DISABLE_CRS TRUE)
set (DisconnectAndSaveAnimation_BREAK TRUE)

684 685 686 687
# Cannot support CRS since we do volume rendering of image data
# in this test.
set (RemoteRendering_DISABLE_CRS TRUE)
set (RemoteRendering_THRESHOLD 50)
688 689
set (VolumeRenderingWithContour_DISABLE_CRS 50)
set (VolumeRenderingWithContour_THRESHOLD 50)
690

691 692 693
# Histogram filter produces different results when running in parallel, so
# disable it.
IF (PARAVIEW_USE_MPI)
694 695
  SET (SpreadSheet1_DISABLE_CS TRUE)
  SET (SpreadSheet1_DISABLE_CRS TRUE)
696

697 698 699 700 701 702
  # Disabled since the 1 column in spreadsheet view ends up being "Process ID"
  # which messes up the sorting in this test. Need to extend the testing framework
  # or fix spreadsheet view for these to work properly.
  SET (SpreadSheet3_DISABLE_CS TRUE)
  SET (SpreadSheet3_DISABLE_CRS TRUE)

703 704 705 706 707 708
  # The hierchical fractal source is a temporary testing source and it does not
  # create the dataset correctly in parallel. Since it's a testing source, I am
  # just going to disable the test in parallel. We can fix the source when
  # needed.
  SET (RectilinearFractal_DISABLE_CS TRUE)
  SET (RectilinearFractal_DISABLE_CRS TRUE)
709 710 711 712 713

  # Selections end up highlighting different set of ID based points in parallel.
  # Hence disable them.
  set (LineChartSelection_DISABLE_CS TRUE)
  set (LineChartSelection_DISABLE_CRS TRUE)
714 715 716

  # Selections end up highlighting different set of ID based points in parallel.
  # Hence disable them.
Joachim Pouderoux's avatar
Joachim Pouderoux committed
717 718
  set (BagPlots_DISABLE_CS TRUE)
  set (BagPlots_DISABLE_CRS TRUE)
719 720
  set (FunctionalBagPlots_DISABLE_CS TRUE)
  set (FunctionalBagPlots_DISABLE_CRS TRUE)
Mathieu Westphal's avatar
Mathieu Westphal committed
721 722 723 724 725 726 727 728

  # Selection link may highlight incorrect ID in parallel,
  # hence disable them.
  set(SelectionLinkBasic_DISABLE_CS TRUE)
  set(SelectionLinkInitial_DISABLE_CS TRUE)
  set(SelectionLinkMultiple_DISABLE_CS TRUE)
  set(SelectionLinkRemove_DISABLE_CS TRUE)
  set(SelectionLinkReaction_DISABLE_CS TRUE)
729
ENDIF ()
730

731 732 733 734
# Composite Surface Selection is currently broken in everything but bultin
SET (CompositeSurfaceSelection_DISABLE_CS TRUE)
SET (CompositeSurfaceSelection_DISABLE_CRS TRUE)

735 736 737 738
# Clip test has object picking which is not supported in client-render-server
# mode.
SET (Clip_DISABLE_CRS TRUE)

739 740
# Image volume rendering not supported in CRS mode.
set (ImageVolumeRendering_DISABLE_CRS TRUE)
741

742 743 744 745 746 747 748 749 750 751 752 753 754
# These Xdmf tests have wireframes, hence the increased thresholds.
SET (XdmfReadImageData_THRESHOLD 20)
SET (XdmfReadRectilinearGrid_THRESHOLD 20)
SET (XdmfReadRectilinearGridCollection_THRESHOLD 20)
SET (XdmfReadStructuredGrid_THRESHOLD 20)
SET (XdmfReadStructuredGridCollection_THRESHOLD 20)
SET (XdmfReadImageDataCollection_THRESHOLD 20)

# This test renders points and they are offsetted a bit differently on
# different platforms so just increase the threshold
SET (SaveCSV_THRESHOLD 40)

# Disable some testing configurations for these tests.
755

756 757 758
## Disable ClientRenderServer tests for FFTOverTime. This is done since
## selection is not supported in render server mode esp. when number of render
## server processess is not same as the data server processes
759 760 761 762
set (FFTOverTime_DISABLE_CRS TRUE)
set (FFTOverTime_THRESHOLD 70) # since there's a plot, account for minor
                               # rendering differences.

763
# ColorEditorVolumeControls does volume rendering of structrued data which required remote
764
# rendering in client-serve mode.
765 766
SET (ColorEditorVolumeControls_DISABLE_CS TRUE)
SET (ColorEditorVolumeControls_DISABLE_CRS TRUE)
767

768 769 770 771 772
# ViewSettingsDialog uses texture background which is currently supported only
# in local render mode.
SET (ViewSettingsDialog_DISABLE_CS TRUE)
SET (ViewSettingsDialog_DISABLE_CRS TRUE)

773 774 775
# MultiBlockAttributes1 requires selection which doesn't work on pvcrs
SET (MultiBlockAttributes1_DISABLE_CRS TRUE)

776 777
# Plugins are only built as shared libraries.
IF (NOT BUILD_SHARED_LIBS)
778
  SET (NiftiReaderWriterPlugin_DISABLE_C TRUE)
779
ENDIF ()
780
# There should be a client server specific version of this test.
781
SET (NiftiReaderWriterPlugin_DISABLE_CS TRUE)
782
SET (NiftiReaderWriterPlugin_DISABLE_CRS TRUE)
783

784 785 786
# Set image threshold overrides for the tests.
SET(SaveLargeScreenshot_THRESHOLD 10000)

787 788 789
# Make these tests use reverse connection.
SET (CutMulti_REVERSE_CONNECT TRUE)

790 791
# Since this involves charts.
SET(HistogramSelection_THRESHOLD 40)
792 793
SET(LineChartSelection_THRESHOLD 40)
SET(FunctionalBagPlots_THRESHOLD 40)
794

795 796 797 798
# Increate threshold for this one since the chart axes
# tends to render slightly differently.
set (LoadStateMultiView_THRESHOLD 20)

799 800
# Selection not supported in CRS and is needed for this test.
set (ResetToVisibleRange_DISABLE_CRS TRUE)
801 802 803 804

# Molecules are not supported in client-serve modes, currently.
set (Molecule_DISABLE_CS TRUE)
set (Molecule_DISABLE_CRS TRUE)
805

806 807 808 809
##########################################################
# List of known incompatible tests for Collaboration
#
#   Contains Undo/Redo actions:
810
#     - Clip, UndoRedo, UndoRedo[1-8]
811 812
#
#   Contains Plugin Loading actions:
813
#     - LoadPlugins, NiftiReaderWriterPlugin, H5PartReaderPlugin
814 815
#
#   Does not work in CS or CRS mode
816
#     - ViewSettingsDialog, RectilinearFractal, NewColorEditor
817 818 819
#
#   Does not work because a disconnection is involved
#     - ExportX3dPOVVRML
820
#
821 822
#   Don't want to support for now
#     - ComparativeVisPanel
823
#     - LoadSaveStateAnimation: The time get reset by collab
824
#
825 826 827
#   Timing issues (Works on speedy computer)
#     - 3DWidgetInCustomFilter, CustomFilter
#
828 829
##########################################################

830 831
OPTION(PARAVIEW_COLLABORATION_TESTING
    "Add Collaboration testing"
832
    ON)
833 834
MARK_AS_ADVANCED(PARAVIEW_COLLABORATION_TESTING)

835 836 837 838 839
# The create/delete test was only meant for collaboration
SET (CreateDelete_DISABLE_C TRUE)
SET (CreateDelete_DISABLE_CS TRUE)
SET (CreateDelete_DISABLE_CRS TRUE)

840
# List of test Enable for collaboration
841
#set (AnimatePipelineTime_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
842 843 844 845
#set (CalcParens_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (Calculator_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (CameraLink_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (CompositeSurfaceSelection_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
846
set (Contour_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
847
#set (ContourRange_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
848
set (CreateDelete_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870
#set (CustomSourceProbe_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (D3SmallCells_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (DualSphereAnimation_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (EnSight_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (ExodusModeShapes_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (ExodusXML_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (ExTimeseries_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (ExTimeseries2_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (ExtractBlock_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (ExtractLevel_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (FindDataDialog_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (FFTOverTime_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (Flow_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (Flow2_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (Fractal2D_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (GridConnectivity_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (NormalGlyphs_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (OpenSaveData_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (Plot3DReader_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (PlotEdges_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (PlotEdges2_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (PropertyConversion_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
871 872
set (PropertyConversion1_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
set (PropertyConversion2_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
873 874 875 876 877 878 879 880 881 882
## disabling since the state file doesn't have view layout and such old state
## files are not currently supported in collaborative mode.
##set (PropertyLink_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (ReadXMLPolyDataFileSeries_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (RepresentationSelector_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (SaveColorMap_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (SaveCSV_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (SelectReader_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (SimpleInteraction_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (Slice_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
883
set (SpreadSheet1_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
884 885 886 887
#set (SpreadSheet2_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (SPTimeseries_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (SpyPlotHistoryReader_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (StreamTracerUpdates_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
888 889
#set (TemporalInterpolator_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (TemporalShiftScale_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
890 891 892
#set (Tessellate_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (Threshold_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (UnstructuredOutline_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
893 894 895
set (VariableSelector_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
set (VariableSelector1_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
set (XdmfRead_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
896 897 898 899 900 901 902
#set (XdmfReadImageData_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (XdmfReadImageDataCollection_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (XdmfReadRectilinearGrid_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (XdmfReadRectilinearGridCollection_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (XdmfReadStructuredGrid_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (XdmfReadStructuredGridCollection_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
#set (XdmfGridAttributes_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
903
set (ZLibXDMF_ENABLE_COLLAB ${PARAVIEW_COLLABORATION_TESTING})
904

905 906 907 908 909

set(TESTS_WITH_MULTI_SERVERS_3
  ${CMAKE_CURRENT_SOURCE_DIR}/TestMultiServer3.xml
)

910
list(APPEND TESTS_WITHOUT_BASELINES
911
  ${TESTS_WITH_INLINE_COMPARES})
912

913
add_client_tests("pv"
914
  TEST_SCRIPTS ${TESTS_WITHOUT_BASELINES}
915
  )
916

917 918 919 920 921 922 923 924 925
add_client_tests("pv"
  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
  TEST_SCRIPTS ${TESTS_WITH_BASELINES}
)

add_client_server_tests("pvcs"
  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
  TEST_SCRIPTS ${TESTS_WITH_BASELINES}
)
926

927 928 929 930 931 932
add_client_server_tests("pvcs"
  TEST_SCRIPTS ${TESTS_WITH_INLINE_COMPARES}
)

IF (PARAVIEW_CLIENT_RENDER_SERVER_TESTS)
  add_client_render_server_tests("pvcrs"
933
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
934 935 936
    TEST_SCRIPTS ${TESTS_WITH_BASELINES}
  )

937
  add_client_render_server_tests("pvcrs"
938 939
    TEST_SCRIPTS ${TESTS_WITH_INLINE_COMPARES}
  )
940
ENDIF ()
941 942 943

# TODO: remote rendering tests and reverse connect tests.

944 945 946 947 948 949 950 951
add_multi_client_tests("pvcs-collab"
  BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
  TEST_SCRIPTS ${TESTS_WITH_BASELINES})

add_multi_server_tests("pvcs-multi-servers" 3
   BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
   TEST_SCRIPTS ${TESTS_WITH_MULTI_SERVERS_3})

952 953 954 955 956 957 958 959 960 961 962 963
# Removing these test since these have been failing for a while the the testing
# infrastrructure not catching it properly until now. We need to redo the tile display
# testing :(.
#set (TileDisplayScatterPlot-2x1_THRESHOLD 40)
#add_tile_display_tests("pvcs-tile-display" 2 1
#   BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
#   TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/TileDisplayScatterPlot-2x1.xml)
#
#set (TileDisplayScatterPlot-2x2_THRESHOLD 40)
#add_tile_display_tests("pvcs-tile-display" 2 2
#   BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
#   TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/TileDisplayScatterPlot-2x2.xml)
964

965 966 967 968 969 970
# This test has been behaving badly across many platforms and needs to be fixed
# before it can be useful. Disabling for now, see bug #15424.
#set (TileDisplay3DTesting-1x2_THRESHOLD 270)
#add_tile_display_tests("pvcs-tile-display" 1 2
#   BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
#   TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/TileDisplay3DTesting-1x2.xml)
971

972
set (TileDisplay3DTesting-2x1_THRESHOLD 270)
973 974 975 976
add_tile_display_tests("pvcs-tile-display" 2 1
   BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
   TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/TileDisplay3DTesting-2x1.xml)

977
set (TileDisplay3DTesting-2x2_THRESHOLD 270)
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997
add_tile_display_tests("pvcs-tile-display" 2 2
   BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
   TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/TileDisplay3DTesting-2x2.xml)


#------------------------------------------------------------------
# Add tests that test command line arguments (among other things).
#------------------------------------------------------------------
if (TARGET paraview)
  # The state file need to point to the correct data file. We do that by
  # configuring the state file.
  configure_file (
    "${CMAKE_CURRENT_SOURCE_DIR}/exodusStateFile.3.14.1.pvsm.in"
    "${CMAKE_CURRENT_BINARY_DIR}/exodusStateFile.3.14.1.pvsm" @ONLY)
  add_pv_test("pv" "_DISABLE_C"
    COMMAND --client $<TARGET_FILE:paraview>
            --enable-bt
            -dr
            --test-directory=${PARAVIEW_TEST_DIR}
            --state=${CMAKE_CURRENT_BINARY_DIR}/exodusStateFile.3.14.1.pvsm
998
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
999
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/LoadExodusStateFile.xml)
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032

  #----------------------------------------------------------------------
  # Add test to test stereo rendering modes.
  add_client_tests("pv"
    --stereo
    --stereo-type=Interlaced
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/StereoInterlaced.xml)
  add_client_server_tests("pvcs"
    --stereo
    --stereo-type=Interlaced
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/StereoInterlaced.xml)
  add_client_render_server_tests("pvcrs"
    --stereo
    --stereo-type=Interlaced
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/StereoInterlaced.xml)
  add_client_tests("pv"
    --stereo
    --stereo-type=SplitViewportHorizontal
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/StereoSplitViewportHorizontal.xml)
  add_client_server_tests("pvcs"
    --stereo
    --stereo-type=SplitViewportHorizontal
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/StereoSplitViewportHorizontal.xml)
  add_client_render_server_tests("pvcrs"
    --stereo
    --stereo-type=SplitViewportHorizontal
    BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
    TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/StereoSplitViewportHorizontal.xml)
1033
endif()