Commit f095f7ee authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

Added in some Tcl rendering tests

These tests render, and all but two pass locally. It was necessary to
add a new require package vtk call in rtImageTest.tcl in order to get
vtkObject etc.

Change-Id: I9df7b2cfa4c8ddbcc1604a19cea515926308ddab
parent 995b5b03
unset(tests)
if(VTK_DATA_ROOT)
list(APPEND tests
assembly
CamBlur
cells
ImageActor
ImageActorStressed
PickerWithLocator
ScalarBar
SurfacePickerWithTexture
TestLeaderActor2D
TestOnePoint
TestOpacity2
TestTriangleStripCellColor
TestWindowToImageTransparency
TexturedSphere
pickCells
propAssembly
rendererSource
rotations
)
endif()
foreach(test ${tests})
set(_test_args
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
if(VTK_DATA_ROOT)
list(APPEND _test_args
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Rendering/${test}.png)
endif()
add_test(NAME ${vtk-module}Tcl-${test}
COMMAND ${VTK_TCL_EXE} ${_test_args})
endforeach()
if(VTK_DATA_ROOT)
set(tests
cowHair2
cowHair
NoLightGeneration
PolyDataMapperAllPolygons
PolyDataMapperAllWireframe
TestCameraInterpolator
TestRotate
TestTransformCoordinateSystems
TestTransformInterpolator
TransformConcatenation
TransformCoverage
TransformImageData
TransformPolyData
stereoDresdenMace
)
endif()
foreach(test ${tests})
set(_test_args
${vtkTestingRendering_SOURCE_DIR}/rtImageTest.tcl
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
if(VTK_DATA_ROOT)
list(APPEND _test_args
-D ${VTK_DATA_ROOT}
-T ${VTK_TEST_OUTPUT_DIR}
-V Baseline/Graphics/${test}.png)
endif()
add_test(NAME ${vtk-module}Tcl-${test}
COMMAND ${VTK_TCL_EXE} ${_test_args})
endforeach()
package require vtk
# setup some common things for testing
vtkObject rtTempObject
......
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