vtk_add_test_cxx(vtkRemotingViewsCxxTests tests
  NO_DATA NO_VALID NO_OUTPUT
  TestComparativeAnimationCueProxy.cxx
  TestImageScaleFactors.cxx
  TestParaViewPipelineControllerWithRendering.cxx
  TestProxyManagerUtilities.cxx
  TestSystemCaps.cxx
  TestTilesHelper.cxx
  TestTransferFunctionManager.cxx
  TestTransferFunctionPresets.cxx)

vtk_add_test_cxx(vtkRemotingViewsCxxTests tests
  NO_VALID
  TestParaViewPipelineController.cxx)

vtk_test_cxx_executable(vtkRemotingViewsCxxTests tests)

# TODO: the following tests which are related to the vtkIceTCompositePass class need to be fixed
#set(vtkRemotingViewsCxxTests-MPI_NUMPROCS 2)
#vtk_add_test_mpi(vtkRemotingViewsCxxTests-MPI 2_proc_tests
#  TESTING_DATA
#  TestIceTCompositePass.cxx
#  TestIceTShadowMapPass.cxx
#  TestSimpleIceTCompositePass.cxx)

#NAME    TestIceTCompositePassDepthOnly
#COMMAND TestIceTCompositePassDepthOnly
#${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
#${_MPI_TEST_PATH}/TestIceTCompositePass
#--tdx 2
#--depth-only
#-D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
#-T ${PARAVIEW_TEST_OUTPUT_DIR}
#-V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTCompositePassDepthOnly.png}
#${VTK_MPI_POSTFLAGS})

#NAME    TestIceTCompositePassWithSobel
#COMMAND TestIceTCompositePassWithSobel
#${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
#${_MPI_TEST_PATH}/TestIceTCompositePass
#--sobel
#-D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
#-T ${PARAVIEW_TEST_OUTPUT_DIR}
#-V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTCompositePassWithSobel.png}
#${VTK_MPI_POSTFLAGS})

#NAME    TestIceTCompositePassWithBlurAndOrderedCompositing
#COMMAND TestIceTCompositePassWithBlurAndOrderedCompositing
#${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
#${_MPI_TEST_PATH}/TestIceTCompositePass
#--tdx 2
#--blur
#--use-ordered-compositing
#--use-depth-peeling
#-D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
#-T ${PARAVIEW_TEST_OUTPUT_DIR}
#-V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTCompositePassWithBlurAndOrderedCompositing.png}
#${VTK_MPI_POSTFLAGS})

#NAME    TestIceTShadowMapPass-image
#COMMAND TestIceTShadowMapPass-image
#${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
#${_MPI_TEST_PATH}/TestIceTShadowMapPass
#--tdx 2
#-D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
#-T ${PARAVIEW_TEST_OUTPUT_DIR}
#-V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTShadowMapPass.png}
#${VTK_MPI_POSTFLAGS})

#vtk_test_cxx_executable(vtkRemotingViewsCxxTests-MPI 2_proc_tests)
