Commit 5792dd9f authored by Aashish Chaudhary's avatar Aashish Chaudhary
Browse files

ENH: Added a test for vtkCollapseVerticesByArray filter

parent 4f10655c
......@@ -2,9 +2,10 @@
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
SET(KIT Infovis)
# add tests that do not require data
SET(MyTests
SET(MyTests
TestArcEdges
TestAssignCoordinates
TestCollapseVerticesByArray
TestContingencyStatistics
TestCorrelativeStatistics
TestCosmicTreeLayoutStrategy
......@@ -13,7 +14,7 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
TestExtractSelectedGraph
TestGraph
TestGraphAttributes
TestGraphAlgorithms
TestGraphAlgorithms
TestGraphHierarchicalBundle
TestGraphLayoutStrategy
TestGroupLeafVertices
......@@ -82,36 +83,36 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
TARGET_LINK_LIBRARIES(TestPBGLAlgorithms vtkInfovis ${Boost_LIBRARIES} ${MPI_LIBRARIES})
ADD_TEST(TestPBGLAlgorithms
${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} ${VTK_MPI_MAX_NUMPROCS}
${VTK_MPI_PREFLAGS}
${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} ${VTK_MPI_MAX_NUMPROCS}
${VTK_MPI_PREFLAGS}
${CXX_TEST_PATH}/TestPBGLAlgorithms
${VTK_MPI_POSTFLAGS})
ENDIF (VTK_USE_PARALLEL_BGL)
ENDIF (VTK_USE_PARALLEL_BGL)
ENDIF (VTK_USE_BOOST)
IF(VTK_USE_PARALLEL AND VTK_USE_MPI)
IF (MPI_LIBRARY)
SET(MPI_LIBRARIES ${MPI_LIBRARY})
ENDIF (MPI_LIBRARY)
IF (MPI_EXTRA_LIBRARY)
SET(MPI_LIBRARIES ${MPI_LIBRARIES} "${MPI_EXTRA_LIBRARY}")
ENDIF (MPI_EXTRA_LIBRARY)
IF (MPI_LIBRARY)
SET(MPI_LIBRARIES ${MPI_LIBRARY})
ENDIF (MPI_LIBRARY)
IF (MPI_EXTRA_LIBRARY)
SET(MPI_LIBRARIES ${MPI_LIBRARIES} "${MPI_EXTRA_LIBRARY}")
ENDIF (MPI_EXTRA_LIBRARY)
# Add parallel tests only if PARALLEL and MPI are turned ON
# These tests are kept separate, because they must be run with mpirun or mpiexec
# TestParallelRandomStatisticsMPI:
# MPI test of parallel descriptive, correlative, multicorrelative and PCA statistics
# TestParallelRandomStatisticsMPI:
# MPI test of parallel descriptive, correlative, multicorrelative and PCA statistics
ADD_EXECUTABLE(TestParallelRandomStatisticsMPI TestParallelRandomStatisticsMPI.cxx)
TARGET_LINK_LIBRARIES(TestParallelRandomStatisticsMPI vtkInfovis vtkParallel ${MPI_LIBRARIES})
# TestRandomPContingencyStatisticsMPI:
# MPI test of parallel contingency statistics
# TestRandomPContingencyStatisticsMPI:
# MPI test of parallel contingency statistics
ADD_EXECUTABLE(TestRandomPContingencyStatisticsMPI TestRandomPContingencyStatisticsMPI.cxx)
TARGET_LINK_LIBRARIES(TestRandomPContingencyStatisticsMPI vtkInfovis vtkParallel ${MPI_LIBRARIES})
# TestParallelKMeansStatisticsMPI:
# MPI test of parallel KMeans statistics
# TestParallelKMeansStatisticsMPI:
# MPI test of parallel KMeans statistics
ADD_EXECUTABLE(TestParallelKMeansStatisticsMPI TestParallelKMeansStatisticsMPI.cxx)
TARGET_LINK_LIBRARIES(TestParallelKMeansStatisticsMPI vtkInfovis vtkParallel ${MPI_LIBRARIES})
......@@ -159,7 +160,7 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
SET(MyTests ${MyTests}
TestSQLGraphReader
TestTimePoint
)
)
ENDIF(VTK_HAS_UINT64_ARRAY)
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx ${MyTests}
EXTRA_INCLUDE vtkTestDriver.h)
......@@ -169,7 +170,7 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
REMOVE (TestsToRun ${KIT}CxxTests.cxx)
#
# Add all the executables
# Add all the executables
FOREACH (test ${TestsToRun})
GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
IF (VTK_DATA_ROOT)
......@@ -178,9 +179,9 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/${KIT}/${TName}.png)
ELSE (VTK_DATA_ROOT)
ADD_TEST(Infovis-${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
ADD_TEST(Infovis-${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
ENDIF (VTK_DATA_ROOT)
ENDFOREACH (test)
ENDFOREACH (test)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
IF(VTK_USE_N_WAY_ARRAYS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment