Commit 3a21bb3c authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: fixes the issues with using vtkpython for converting tests. Instead a the...

BUG: fixes the issues with using vtkpython for converting tests. Instead a the file configured with the list of classes in each Kit is used to determine the vtk class names while converting tests.
parent 1d163252
INCLUDE(${VTK_SOURCE_DIR}/Utilities/vtkTclTest2Py/vtkConvertTclTestToPy.cmake)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
#
IF (VTK_DATA_ROOT)
IF (VTK_PYTHON_EXE)
# Add test converted from Tcl
SET (CONVERTED_TESTS)
SET (CONVERTER_SCRIPT "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/vtkTclToPyConvertor.py")
SET (TESTS_TO_CONVERT)
SET (CONVERSIONLIST)
IF(WIN32)
# VS-6.0 does not use current environment PATH when running custom commands,
# hence it might fail to locate the python dlls if we run vtkpython.
# Hence we use python executable. Python executable cannot be used to import
# vtk modules on Sun/SGI hence, for non-windows machines we use vtkpython.
SET(CMD ${PYTHON_EXECUTABLE})
ELSE(WIN32)
SET(CFG_INIT "/${CMAKE_CFG_INTDIR}")
IF(MAKE_SYSTEM OR UNIX)
SET(CFG_INIT "")
ENDIF(MAKE_SYSTEM OR UNIX)
SET(CMD ${EXECUTABLE_OUTPUT_PATH}${CFG_INIT}/vtkpython${EXE_EXT})
ENDIF(WIN32)
FOREACH( tfile
closedSplines
CSpline
KSpline
SelectionLoop
ImplicitSum
PerlinNoise
)
SET (input "${VTK_SOURCE_DIR}/Filtering/Testing/Tcl/${tfile}.tcl")
SET (output "${VTK_BINARY_DIR}/Filtering/Testing/Python/${tfile}.py")
SET (CONVERTED_TESTS ${CONVERTED_TESTS} "${output}")
SET (CONVERSIONLIST ${CONVERSIONLIST} "${input};${output}")
SET (TESTS_TO_CONVERT ${TESTS_TO_CONVERT} "${input}")
#Add the py test.
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/rtImageTest.py
${output}
-D ${VTK_DATA_ROOT}
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/Filtering/${tfile}.png
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_LIBRARY_DIR}"
)
ENDFOREACH( tfile )
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/conversionlist.in
${CMAKE_CURRENT_BINARY_DIR}/conversionlist
@ONLY IMMEDIATE)
ADD_CUSTOM_COMMAND(
OUTPUT "${VTK_BINARY_DIR}/Filtering/Testing/Python/conversion_complete"
COMMAND ${CMD}
ARGS ${CONVERTER_SCRIPT}
-l "${VTK_BINARY_DIR}/Filtering/Testing/Python/conversionlist"
-t "${VTK_BINARY_DIR}/Filtering/Testing/Python/conversion_complete"
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_BINARY_DIR}/Wrapping/Python"
-A "${VTK_LIBRARY_DIR}"
DEPENDS ${TESTS_TO_CONVERT}
${VTK_BINARY_DIR}/Filtering/Testing/Python/conversionlist
${CONVERTER_SCRIPT}
COMMENT "Converting Tcl test"
SET(tests
closedSplines
CSpline
KSpline
SelectionLoop
ImplicitSum
PerlinNoise
)
ADD_CUSTOM_TARGET(FilteringPythonTests ALL DEPENDS
"${VTK_BINARY_DIR}/Filtering/Testing/Python/conversion_complete")
ADD_DEPENDENCIES(FilteringPythonTests vtktcltest2py_pyc)
CONVERT_TCL_TEST_TO_PY (
tests
Filtering)
ENDIF (VTK_PYTHON_EXE)
ENDIF (VTK_DATA_ROOT)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
INCLUDE(${VTK_SOURCE_DIR}/Utilities/vtkTclTest2Py/vtkConvertTclTestToPy.cmake)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
#
IF (VTK_PYTHON_EXE)
IF(WIN32)
# VS-6.0 does not use current environment PATH when running custom commands,
# hence it might fail to locate the python dlls if we run vtkpython.
# Hence we use python executable. Python executable cannot be used to import
# vtk modules on Sun/SGI hence, for non-windows machines we use vtkpython.
SET(CMD ${PYTHON_EXECUTABLE})
ELSE(WIN32)
SET(CFG_INIT "/${CMAKE_CFG_INTDIR}")
IF(MAKE_SYSTEM OR UNIX)
SET(CFG_INIT "")
ENDIF(MAKE_SYSTEM OR UNIX)
SET(CMD ${EXECUTABLE_OUTPUT_PATH}${CFG_INIT}/vtkpython${EXE_EXT})
ENDIF(WIN32)
SET (CONVERTED_TESTS)
SET (TESTS_TO_CONVERT)
SET (CONVERSIONLIST)
SET (CONVERTER_SCRIPT "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/vtkTclToPyConvertor.py")
SET(tests)
IF (VTK_DATA_ROOT)
# Older tests
FOREACH ( tfile
......@@ -40,7 +26,7 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
ENDFOREACH( tfile )
# Add test converted from Tcl
FOREACH( tfile
SET( tests ${tests}
AutomaticPlaneGeneration
Canny
CellDataToPointData
......@@ -210,24 +196,6 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
triangularTexture
warplens
)
#Convert the tcl file.
SET (input "${VTK_SOURCE_DIR}/Graphics/Testing/Tcl/${tfile}.tcl")
SET (output "${VTK_BINARY_DIR}/Graphics/Testing/Python/${tfile}.py")
SET (CONVERTED_TESTS ${CONVERTED_TESTS} "${output}")
SET (CONVERSIONLIST ${CONVERSIONLIST} "${input};${output}")
SET (TESTS_TO_CONVERT ${TESTS_TO_CONVERT} "${input}")
#Add the py test.
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/rtImageTest.py
${output}
-D ${VTK_DATA_ROOT}
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/Graphics/${tfile}.png
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_LIBRARY_DIR}"
)
ENDFOREACH( tfile )
# Newer tests using vtk.test.Testing.
FOREACH ( tfile
......@@ -240,8 +208,8 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
-B ${VTK_DATA_ROOT}/Baseline/Graphics)
ENDFOREACH( tfile )
ELSE (VTK_DATA_ROOT)
# Add test converted from Tcl
FOREACH(tfile
# Add test converted from Tcl
SET(tests ${tests}
capSphere
CellDataToPointData
clipVolume
......@@ -283,49 +251,11 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
TransformCoverage
TransformPolyData
)
#Convert the tcl file.
SET (input "${VTK_SOURCE_DIR}/Graphics/Testing/Tcl/${tfile}.tcl")
SET (output "${VTK_BINARY_DIR}/Graphics/Testing/Python/${tfile}.py")
SET (CONVERTED_TESTS ${CONVERTED_TESTS} "${output}")
SET (CONVERSIONLIST ${CONVERSIONLIST} "${input};${output}")
SET (TESTS_TO_CONVERT ${TESTS_TO_CONVERT} "${input}")
#Add the py test.
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/rtImageTest.py
${output}
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/Graphics/${tfile}.png
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_LIBRARY_DIR}"
)
ENDFOREACH( tfile )
ENDIF (VTK_DATA_ROOT)
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/conversionlist.in
${CMAKE_CURRENT_BINARY_DIR}/conversionlist
@ONLY IMMEDIATE)
ADD_CUSTOM_COMMAND(
OUTPUT "${VTK_BINARY_DIR}/Graphics/Testing/Python/conversion_complete"
COMMAND ${CMD}
ARGS ${CONVERTER_SCRIPT}
-l "${VTK_BINARY_DIR}/Graphics/Testing/Python/conversionlist"
-t "${VTK_BINARY_DIR}/Graphics/Testing/Python/conversion_complete"
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_BINARY_DIR}/Wrapping/Python"
-A "${VTK_LIBRARY_DIR}"
DEPENDS ${TESTS_TO_CONVERT}
${VTK_BINARY_DIR}/Graphics/Testing/Python/conversionlist
${CONVERTER_SCRIPT}
COMMENT "Converting Tcl test"
)
ADD_CUSTOM_TARGET(GraphicsPythonTests ALL echo "..."
DEPENDS "${VTK_BINARY_DIR}/Graphics/Testing/Python/conversion_complete")
ADD_DEPENDENCIES(GraphicsPythonTests vtktcltest2py_pyc)
CONVERT_TCL_TEST_TO_PY (
tests
Graphics)
ENDIF (VTK_PYTHON_EXE)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
INCLUDE(${VTK_SOURCE_DIR}/Utilities/vtkTclTest2Py/vtkConvertTclTestToPy.cmake)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
......@@ -5,106 +6,53 @@ IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
IF (VTK_DATA_ROOT)
IF (VTK_PYTHON_EXE)
# Add test converted from Tcl
SET (CONVERTED_TESTS)
SET (TESTS_TO_CONVERT)
SET (CONVERSIONLIST)
SET (CONVERTER_SCRIPT "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/vtkTclToPyConvertor.py")
IF(WIN32)
# VS-6.0 does not use current environment PATH when running custom commands,
# hence it might fail to locate the python dlls if we run vtkpython.
# Hence we use python executable. Python executable cannot be used to import
# vtk modules on Sun/SGI hence, for non-windows machines we use vtkpython.
SET(CMD ${PYTHON_EXECUTABLE})
ELSE(WIN32)
SET(CFG_INIT "/${CMAKE_CFG_INTDIR}")
IF(MAKE_SYSTEM OR UNIX)
SET(CFG_INIT "")
ENDIF(MAKE_SYSTEM OR UNIX)
SET(CMD ${EXECUTABLE_OUTPUT_PATH}${CFG_INIT}/vtkpython${EXE_EXT})
ENDIF(WIN32)
FOREACH( tfile
3DMorph
appendImplicitModel
appendImplicitModelNoBounds
banana
bore
camera
clipHex
clipPyramid
clipTet
clipWedge
cubeAxes
depthSort
earth
imageToPolyData
#financialField2 -- arrays
#financialField3 -- arrays
largeImageOffset
largeImageParallel
#MassProperties -- complicated global/local mess up
OverlayTextOnImage
TestCaptionActor
TestFacetReader
TestGreedyTerrainDecimation
TestGridWarp3D
TestGridWarpCubic
TestGridWarpLinear
TestGridWarpNearest
#TestICPTransform --complex arrays
TestImageStencilWithPolydata
TestPCA
TestProcrustes
TestProjectedTerrainPath
TestThinPlateWarp
TestThinPlateWarp3D
text
VRMLImporter
WarpPolyData
xyPlot
xyPlot2
xyPlot3
xyPlot4
)
SET (input "${VTK_SOURCE_DIR}/Hybrid/Testing/Tcl/${tfile}.tcl")
SET (output "${VTK_BINARY_DIR}/Hybrid/Testing/Python/${tfile}.py")
SET (CONVERTED_TESTS ${CONVERTED_TESTS} "${output}")
SET (CONVERSIONLIST ${CONVERSIONLIST} "${input};${output}")
SET (TESTS_TO_CONVERT ${TESTS_TO_CONVERT} "${input}")
#Add the py test.
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/rtImageTest.py
${output}
-D ${VTK_DATA_ROOT}
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/Hybrid/${tfile}.png
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_LIBRARY_DIR}"
)
ENDFOREACH( tfile )
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/conversionlist.in
${CMAKE_CURRENT_BINARY_DIR}/conversionlist
@ONLY IMMEDIATE)
ADD_CUSTOM_COMMAND(
OUTPUT "${VTK_BINARY_DIR}/Hybrid/Testing/Python/conversion_complete"
COMMAND ${CMD}
ARGS ${CONVERTER_SCRIPT}
-l "${VTK_BINARY_DIR}/Hybrid/Testing/Python/conversionlist"
-t "${VTK_BINARY_DIR}/Hybrid/Testing/Python/conversion_complete"
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_BINARY_DIR}/Wrapping/Python"
-A "${VTK_LIBRARY_DIR}"
DEPENDS ${TESTS_TO_CONVERT}
${VTK_BINARY_DIR}/Hybrid/Testing/Python/conversionlist
${CONVERTER_SCRIPT}
COMMENT "Converting Tcl test"
SET( tests
3DMorph
appendImplicitModel
appendImplicitModelNoBounds
banana
bore
camera
clipHex
clipPyramid
clipTet
clipWedge
cubeAxes
depthSort
earth
imageToPolyData
#financialField2 -- arrays
#financialField3 -- arrays
largeImageOffset
largeImageParallel
#MassProperties -- complicated global/local mess up
OverlayTextOnImage
TestCaptionActor
TestFacetReader
TestGreedyTerrainDecimation
TestGridWarp3D
TestGridWarpCubic
TestGridWarpLinear
TestGridWarpNearest
#TestICPTransform --complex arrays
TestImageStencilWithPolydata
TestPCA
TestProcrustes
TestProjectedTerrainPath
TestThinPlateWarp
TestThinPlateWarp3D
text
VRMLImporter
WarpPolyData
xyPlot
xyPlot2
xyPlot3
xyPlot4
)
ADD_CUSTOM_TARGET(HybridPythonTests ALL
DEPENDS "${VTK_BINARY_DIR}/Hybrid/Testing/Python/conversion_complete")
ADD_DEPENDENCIES(HybridPythonTests vtktcltest2py_pyc)
CONVERT_TCL_TEST_TO_PY (
tests
Hybrid)
ENDIF (VTK_PYTHON_EXE)
ENDIF (VTK_DATA_ROOT)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
INCLUDE(${VTK_SOURCE_DIR}/Utilities/vtkTclTest2Py/vtkConvertTclTestToPy.cmake)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
#
IF (VTK_DATA_ROOT)
IF (VTK_PYTHON_EXE)
# Add test converted from Tcl
SET (CONVERTED_TESTS)
SET (CONVERTER_SCRIPT "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/vtkTclToPyConvertor.py")
SET (TESTS_TO_CONVERT)
SET (CONVERSIONLIST)
IF(WIN32)
# VS-6.0 does not use current environment PATH when running custom commands,
# hence it might fail to locate the python dlls if we run vtkpython.
# Hence we use python executable. Python executable cannot be used to import
# vtk modules on Sun/SGI hence, for non-windows machines we use vtkpython.
SET(CMD ${PYTHON_EXECUTABLE})
ELSE(WIN32)
SET(CFG_INIT "/${CMAKE_CFG_INTDIR}")
IF(MAKE_SYSTEM OR UNIX)
SET(CFG_INIT "")
ENDIF(MAKE_SYSTEM OR UNIX)
SET(CMD ${EXECUTABLE_OUTPUT_PATH}${CFG_INIT}/vtkpython${EXE_EXT})
ENDIF(WIN32)
FOREACH( tfile
dem
TestAVSucdReader
TestGAMBITReader
TestImageWriters
TestPLYReadWrite
TestPolygonWriters
TestJPEGReader
TestTIFFReader
TestBMPReader
Plot3DScalars
Plot3DVectors
ParticleReader
caffeine
TestXYZMol
TestMHD
)
SET (input "${VTK_SOURCE_DIR}/IO/Testing/Tcl/${tfile}.tcl")
SET (output "${VTK_BINARY_DIR}/IO/Testing/Python/${tfile}.py")
SET (CONVERTED_TESTS ${CONVERTED_TESTS} "${output}")
SET (CONVERSIONLIST ${CONVERSIONLIST} "${input};${output}")
SET (TESTS_TO_CONVERT ${TESTS_TO_CONVERT} "${input}")
SET(tests
dem
TestAVSucdReader
TestGAMBITReader
TestImageWriters
TestPLYReadWrite
TestPolygonWriters
TestJPEGReader
TestTIFFReader
TestBMPReader
Plot3DScalars
Plot3DVectors
ParticleReader
caffeine
TestXYZMol
TestMHD
)
CONVERT_TCL_TEST_TO_PY (
tests
IO)
#Add the py test.
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/rtImageTest.py
${output}
-D ${VTK_DATA_ROOT}
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/IO/${tfile}.png
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_LIBRARY_DIR}"
)
ENDFOREACH( tfile )
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/conversionlist.in
${CMAKE_CURRENT_BINARY_DIR}/conversionlist
@ONLY IMMEDIATE)
ADD_CUSTOM_COMMAND(
OUTPUT "${VTK_BINARY_DIR}/IO/Testing/Python/conversion_complete"
COMMAND ${CMD}
ARGS ${CONVERTER_SCRIPT}
-l "${VTK_BINARY_DIR}/IO/Testing/Python/conversionlist"
-t "${VTK_BINARY_DIR}/IO/Testing/Python/conversion_complete"
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_BINARY_DIR}/Wrapping/Python"
-A "${VTK_LIBRARY_DIR}"
DEPENDS ${TESTS_TO_CONVERT}
${VTK_BINARY_DIR}/IO/Testing/Python/conversionlist
${CONVERTER_SCRIPT}
COMMENT "Converting Tcl test"
)
ADD_CUSTOM_TARGET(IOPythonTests ALL DEPENDS
"${VTK_BINARY_DIR}/IO/Testing/Python/conversion_complete")
ADD_DEPENDENCIES(IOPythonTests vtktcltest2py_pyc)
ENDIF (VTK_PYTHON_EXE)
ENDIF (VTK_DATA_ROOT)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
INCLUDE(${VTK_SOURCE_DIR}/Utilities/vtkTclTest2Py/vtkConvertTclTestToPy.cmake)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
#
IF (VTK_DATA_ROOT)
IF (VTK_PYTHON_EXE)
# Add test converted from Tcl
SET (CONVERTED_TESTS)
SET (CONVERTER_SCRIPT "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/vtkTclToPyConvertor.py")
SET (TESTS_TO_CONVERT)
SET (CONVERSIONLIST)
IF(WIN32)
# VS-6.0 does not use current environment PATH when running custom commands,
# hence it might fail to locate the python dlls if we run vtkpython.
# Hence we use python executable. Python executable cannot be used to import
# vtk modules on Sun/SGI hence, for non-windows machines we use vtkpython.
SET(CMD ${PYTHON_EXECUTABLE})
ELSE(WIN32)
SET(CFG_INIT "/${CMAKE_CFG_INTDIR}")
IF(MAKE_SYSTEM OR UNIX)
SET(CFG_INIT "")
ENDIF(MAKE_SYSTEM OR UNIX)
SET(CMD ${EXECUTABLE_OUTPUT_PATH}${CFG_INIT}/vtkpython${EXE_EXT})
ENDIF(WIN32)
FOREACH( tfile
ContinuousClose2D
IdealHighPass
LaplacianEdgeEnhance
#reconstructSurface -- scanf
resampledTexture
ResliceColorWrap
ResliceInterpolationModes
ResliceInterpolationOblique
ResliceMirrorOblique
ResliceMirrorPad
ResliceOptimizationOff
ReslicePermutations
ReslicePermuteResample
ResliceWrapOblique
ResliceWrapPad
Spectrum
TestAnisotropicDiffusion2D
TestAnisotropicDiffusion3D
TestAccumulate
#TestAllBlends -- complicated string substitutions
#TestAllBlendsFloat -- complicated string substitutions
TestAllFlips
#TestAllLogic -- method call has string substitution
#TestAllMaskBits -- method call has string substitution
#TestAllMathematics -- method call has string substitution
#TestAllShrinks -- method call has string substitution
TestButterworthLowPass
TestButterworthHighPass
TestCache
TestChangeInformation
TestCheckerboard
TestCityBlockDistance
TestConvolve
TestCorrelation
TestDivergence
TestDotProduct
TestEuclideanDistance
TestEuclideanDistanceCached
TestEuclideanToPolar
TestFFTCorrelation
TestGradientMagnitude
TestGradientMagnitude2
TestHSIToRGB
TestHSVToRGB
TestHybridMedian2D
TestIdealLowPass
TestImageCanvas
TestInPlaceFilter
TestIslandRemoval2D
TestMapToRGBABlockStreaming
TestMapToWindowLevelColors
TestMapToWindowLevelColors2
TestMask2
TestMedian3D
TestNormalize
TestOpenClose3D
TestPermute
TestQuantizeTo16Colors
TestRange3D
TestResample
TestSeparableFilter
TestShiftScale
TestShiftScale2
TestSimpleImageExample
TestSkeleton2D
TestSobel2D
TestSobel3D
TestStencilWithFunction
TestStencilWithImage
#TestThreshold -- uses lists in lists etc...
TestVariance3D
#TestWipe -- method call has string substitution
TestWrapPad
voxelModel
)
SET (input "${VTK_SOURCE_DIR}/Imaging/Testing/Tcl/${tfile}.tcl")
SET (output "${VTK_BINARY_DIR}/Imaging/Testing/Python/${tfile}.py")
SET (CONVERTED_TESTS ${CONVERTED_TESTS} "${output}")
SET (CONVERSIONLIST ${CONVERSIONLIST} "${input};${output}")
SET (TESTS_TO_CONVERT ${TESTS_TO_CONVERT} "${input}")
#Add the py test.
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/rtImageTest.py
${output}
-D ${VTK_DATA_ROOT}
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/Imaging/${tfile}.png
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_LIBRARY_DIR}"
)
ENDFOREACH( tfile )
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/conversionlist.in
${CMAKE_CURRENT_BINARY_DIR}/conversionlist
@ONLY IMMEDIATE)
ADD_CUSTOM_COMMAND(
OUTPUT "${VTK_BINARY_DIR}/Imaging/Testing/Python/conversion_complete"
COMMAND ${CMD}
ARGS ${CONVERTER_SCRIPT}
-l "${VTK_BINARY_DIR}/Imaging/Testing/Python/conversionlist"
-t "${VTK_BINARY_DIR}/Imaging/Testing/Python/conversion_complete"
-A "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py"
-A "${VTK_BINARY_DIR}/Wrapping/Python"
-A "${VTK_LIBRARY_DIR}"
DEPENDS ${TESTS_TO_CONVERT}
${VTK_BINARY_DIR}/Imaging/Testing/Python/conversionlist
${CONVERTER_SCRIPT}
COMMENT "Converting Tcl test"
SET(tests
ContinuousClose2D
IdealHighPass
LaplacianEdgeEnhance
#reconstructSurface -- scanf
resampledTexture
ResliceColorWrap
ResliceInterpolationModes