Commit c384699c authored by Goodwin Lawlor's avatar Goodwin Lawlor Committed by Marcus D. Hanwell
Browse files

Update CMakeLists.txt for Common/* tcl tests

Change-Id: I3e23ce741fd696a8e25bd69eb069acc8998db73b
parent e10b1b49
if (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
#
if(VTK_DATA_ROOT)
foreach( tfile
CSpline
KSpline
closedSplines
)
add_test(${tfile}-image ${VTK_EXECUTABLE}
${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl
${vtkCommonComputationalGeometry_SOURCE_DIR}/Testing/Tcl/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Filtering/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endforeach()
if(VTK_USE_TK)
add_test(squadViewer-image ${VTK_EXECUTABLE}
${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl
${VTK_SOURCE_DIR}/Filtering/Testing/Tcl/squadViewer.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Filtering/squadViewer.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endif()
#
# If we do not have the data, still run the tests that we can
#
else()
endif()
# Add tests, with the data
#
unset(tests)
if(VTK_DATA_ROOT)
list(APPEND tests
CSpline
KSpline
closedSplines
)
endif()
foreach( tfile ${tests})
set(_test_args
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Filtering/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
add_test(NAME ${vtk-module}Tcl-${tfile}
COMMAND ${VTK_TCL_EXE} ${_test_args})
endforeach()
add_test(TestSetObjectMacro-Common ${TCL_TCLSH}
add_test(NAME ${vtk-module}Tcl-TestSetObjectMacro
COMMAND ${TCL_TCLSH}
${vtkCommonCore_SOURCE_DIR}/Testing/Tcl/FindString.tcl
"${VTK_SOURCE_DIR}/Common/Core/vtk\\\\*.h"
"vtkSetObjectMacro"
${VTK_SOURCE_DIR}/Common/Core/vtkSetGet.h
)
add_test(PrintSelf-CommonCore ${TCL_TCLSH}
add_test(NAME ${vtk-module}Tcl-PrintSelf
COMMAND ${TCL_TCLSH}
${${vtk-module}_SOURCE_DIR}/Testing/Tcl/PrintSelfCheck.tcl
${VTK_SOURCE_DIR}/Common/Core)
${VTK_SOURCE_DIR}/Common/Core)
set(tests
TestArrays
......@@ -19,8 +21,8 @@ set(tests
)
foreach(test ${tests})
add_test(NAME ${vtk-module}-${test}TCL
COMMAND ${VTK_TCL_EXE}
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
add_test(NAME ${vtk-module}Tcl-${test}
COMMAND ${VTK_TCL_EXE}
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endforeach()
if (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
#
if(VTK_DATA_ROOT)
foreach( tfile
ImplicitSum
PerlinNoise
SelectionLoop
otherDataSetAttributes
)
add_test(${tfile}-image ${VTK_EXECUTABLE}
${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl
${vtkCommonDataModel_SOURCE_DIR}/Testing/Tcl/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Filtering/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endforeach()
if(VTK_USE_TK)
add_test(squadViewer-image ${VTK_EXECUTABLE}
${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl
${VTK_SOURCE_DIR}/Filtering/Testing/Tcl/squadViewer.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Filtering/squadViewer.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endif()
#
# If we do not have the data, still run the tests that we can
#
else()
endif()
# Tests without test images
#
add_test(NAME ${vtk-module}Tcl-otherDataSetAttributes
COMMAND ${VTK_TCL_EXE}
${CMAKE_CURRENT_SOURCE_DIR}/otherDataSetAttributes.tcl
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
# Tests with test images in Baseline/Filtering
#
unset(tests)
if(VTK_DATA_ROOT)
set(tests
ImplicitSum
PerlinNoise
SelectionLoop
)
endif()
foreach( tfile ${tests})
add_test(NAME ${vtk-module}Tcl-${tfile} COMMAND ${VTK_TCL_EXE}
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Filtering/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endforeach()
# Tests with test images in Baseline/Graphics
#
unset(tests)
if(VTK_DATA_ROOT)
set(tests
headBone
LineIntersectQuadraticCells
quadricCut
scalarColors
scalarConn
TestConvexPointSet
TestQuadricClustering
TestStructuredGrid
)
endif()
foreach( tfile ${tests})
add_test(NAME ${vtk-module}Tcl-${tfile} COMMAND ${VTK_TCL_EXE}
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Graphics/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endforeach()
# Tests with test images in Baseline/Hybrid
#
add_test(NAME ${vtk-module}Tcl-TestICPTransform COMMAND ${VTK_TCL_EXE}
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/TestICPTransform.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Hybrid/TestICPTransform.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
unset(tests)
set(tests
TestAmoebaMinimizer
)
foreach(test ${tests})
add_test(NAME ${vtk-module}-${test}TCL
add_test(NAME ${vtk-module}Tcl-${test}
COMMAND ${VTK_TCL_EXE}
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
......
# Tests with test images in Baseline/Graphics
#
unset(tests)
if(VTK_DATA_ROOT)
set(tests
cylindrical
MatrixToTransform
spherical
)
endif()
foreach( tfile ${tests})
add_test(NAME ${vtk-module}Tcl-${tfile} COMMAND ${VTK_TCL_EXE}
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Graphics/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endforeach()
# Tests with test images in Baseline/Hybrid
#
unset(tests)
if(VTK_DATA_ROOT)
set(tests
TestThinPlateWarp
TestThinPlateWarp3D
)
endif()
foreach( tfile ${tests})
add_test(NAME ${vtk-module}Tcl-${tfile} COMMAND ${VTK_TCL_EXE}
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Hybrid/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
endforeach()
\ No newline at end of file
Markdown is supported
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