[vtk-developers] Tcl to Python tests

Nikhil Shetty nikhil.shetty at kitware.com
Thu Aug 30 15:13:16 EDT 2012


Hi All,

Previously I had listed tcl tests which were not converted into python
prior to vtk-modular. I managed to run the converter on a couple of those
tests to get more python tests (see
http://review.source.kitware.com/#/t/1167/). Below is the reduced list of
tests which were explicitly commented out due to auto conversion issues and
my have to be re written manually in python.

? Common ======>./Common/Math/Testing/Tcl/TestAmoebaMinimizer.tcl // KIT
NOT CONVERTED
# Filters =====>./Filters/Sources/Testing/Tcl/squadViewer.tcl
? Graphics ====>./Common/DataModel/Testing/Tcl/quadricCut.tcl // switch case
? Graphics ====>./Imaging/Core/Testing/Tcl/imageMCAll.tcl // substitution
in method call.
? Graphics ====>./Filters/Modeling/Testing/Tcl/contour2DAll.tcl // complex
use of string eval
? Graphics ====>./Filters/Modeling/Testing/Tcl/contour3DAll.tcl // complex
use of string eval
? Graphics ====>./Filters/General/Testing/Tcl/spatialRepAll.tcl // complex
string substitutions
? Graphics ====>./Filters/Sources/Testing/Tcl/TestPlatonicSolids.tcl //
uses eval to expand list
? Graphics ====>./Filters/Core/Testing/Tcl/deciPlane.tcl // complex use of
string eval
? Graphics ====>./Filters/Core/Testing/Tcl/skinOrder.tcl // sources a
script.
? Graphics ====> ? sync3dAll //substitution in method call.
? Hybrid ======>./Common/DataModel/Testing/Tcl/TestICPTransform.tcl //
complex arrays
? Hybrid ======>./Filters/Core/Testing/Tcl/financialField3.tcl // arrays
? Hybrid ======>./Filters/Core/Testing/Tcl/MassProperties.tcl //
complicated global/local mess up
? Hybrid ======>./Filters/Core/Testing/Tcl/financialField2.tcl // arrays
# IO ==========>./IO/Core/Testing/Tcl/TestGlobFileNames.tcl
# IO ==========>./IO/Core/Testing/Tcl/TestSortFileNames.tcl
? Imaging =====>./Imaging/Core/Testing/Tcl/TestAllMathematics.tcl // method
call has string substitutions
? Imaging =====>./Imaging/Core/Testing/Tcl/TestAllBlends.tcl // complicated
string substitutions
? Imaging =====>./Imaging/Core/Testing/Tcl/TestAllBlendsFloat.tcl //
complicated string substitutions
? Imaging =====>./Imaging/Core/Testing/Tcl/reconstructSurface.tcl // scanf
? Imaging =====>./Imaging/Core/Testing/Tcl/TestWipe.tcl // method call has
string substitutions
? Imaging =====>./Imaging/Core/Testing/Tcl/TestThreshold.tcl // uses lists
in lists etc...
? Imaging =====>./Imaging/Core/Testing/Tcl/TestAllMaskBits.tcl // method
call has string substitutions
? Imaging =====>./Imaging/Core/Testing/Tcl/TestAllShrinks.tcl // method
call has string substitutions
? Imaging
=====>./Imaging/Core/Testing/Tcl/TestImageThresholdConnectivity.tcl // uses
lists in lists etc..
? Imaging =====>./Imaging/Core/Testing/Tcl/TestAllLogic.tcl // method call
has string substitutions
? Rendering ===>./Interaction/Style/Testing/Tcl/TestStyleTerrain.tcl //
file source
? Rendering ===> ? testTiling // NO REASON PROVIDED
? Rendering ===>./Interaction/Style/Testing/Tcl/TestStyleJoystickCamera.tcl
// NO REASON PROVIDED
? Rendering
===>./Interaction/Style/Testing/Tcl/TestStyleTrackballCamera.tcl // file
source
? Rendering ===>./Interaction/Style/Testing/Tcl/TestStyleJoystickActor.tcl
// file source
? Rendering ===>./Interaction/Style/Testing/Tcl/TestStyleTrackballActor.tcl
// file source
? Rendering ===>./Rendering/Core/Testing/Tcl/cells.tcl // too complex file
IO
# Rendering ===>./Rendering/FreeType/Testing/Tcl/TestTextActor3D.tcl
# Rendering ===>./Rendering/OpenGL/Testing/Tcl/TestFreetypeTextMapper.tcl
? VolumeRendering
=>./Rendering/Volume/Testing/Tcl/TestFixedPointRayCasterLinearCropped.tcl
// source file
? VolumeRendering
=>./Rendering/Volume/Testing/Tcl/TestFixedPointRayCasterLinear.tcl //
source file
? VolumeRendering
=>./Rendering/Volume/Testing/Tcl/TestFixedPointRayCasterNearestCropped.tcl
// source file
? VolumeRendering =>./Rendering/Volume/Testing/Tcl/VolumePicker.tcl // NO
REASON GIVEN
? Widget ======>./Interaction/Widgets/Testing/Tcl/TestSphereWidget.tcl //
KIT NOT CONVERTED
? Widget ======>./Interaction/Widgets/Testing/Tcl/TestBoxWidget.tcl // KIT
NOT CONVERTED
? Widget
======>./Interaction/Widgets/Testing/Tcl/TestInteractorEventRecorder.tcl //
KIT NOT CONVERTED
? Widget ======>./Interaction/Widgets/Testing/Tcl/TestTextWidget.tcl // KIT
NOT CONVERTED

Notation Guide:
(?|#) n*ame-of-kit-pre-modular-vtk* =======> f*ile-location-in-vtk-modular*//
*Reason it was not converted*
?  : The Tcl test was not converted to Python to begin with.
#  : The Tcl test was not converted to Python to begin with + Running
auto-convert script failed.

-Nikhil

On Tue, Aug 28, 2012 at 10:21 AM, Berk Geveci <berk.geveci at kitware.com>wrote:

> Nikhil,
>
> Many of these tests are standard tests that you should be able to convert
> with the Python conversion tool, maybe with some manual help. The
> exceptions are probably the top ones:
>
> ./Common/Core/Testing/Tcl/TestIgnoreBTX.tcl
> ./Common/Core/Testing/Tcl/TestSetGet.tcl
> ./Common/Core/Testing/Tcl/TestArrays.tcl
> ./Common/Core/Testing/Tcl/otherInterp.tcl
> ./Common/Core/Testing/Tcl/FindString.tcl
> ./Common/Core/Testing/Tcl/TestEmptyInput.tcl
> ./Common/Core/Testing/Tcl/PrintSelfCheck.tcl
> ./Common/Core/Testing/Tcl/TestString.tcl
> ./Common/Core/Testing/Tcl/otherPrint.tcl
>
> and maybe some parallel ones such as:
>
> ./Parallel/MPI/Testing/Tcl/TestPProbe.tcl
>
> Among those, some don't use VTK. They could stay around since they work
> without requiring VTK being wrapped in Tcl. The dashboard just need a
> working Tcl installation. Others should be converted to Python also,
> probably manually.
>
> On Mon, Aug 27, 2012 at 11:59 AM, Nikhil Shetty <nikhil.shetty at kitware.com
> > wrote:
>
>> Hi All,
>>
>> Prior to VTK-modular all Tcl tests were auto-converted to Python tests.
>> However with VTK-modular we got rid of the 'autoConvert' script. Instead we
>> have copied over the converted python tests directly into VTK's repo.
>> However not all Tcl tests had a Python counterpart. I am listing all such
>> tests below.  Some of these perform some sanity checks on VTK source files
>> (in Common/Core/Testing/Tcl). If you find some files that you believe had a
>> python counterpart and is still listed here please let me know.
>>
>> -Nikhil
>>
>> -----------------------------------------
>>
>> ./Common/Core/Testing/Tcl/TestIgnoreBTX.tcl
>> ./Common/Core/Testing/Tcl/TestSetGet.tcl
>>  ./Common/Core/Testing/Tcl/TestArrays.tcl
>> ./Common/Core/Testing/Tcl/otherInterp.tcl
>> ./Common/Core/Testing/Tcl/FindString.tcl
>> ./Common/Core/Testing/Tcl/TestEmptyInput.tcl
>> ./Common/Core/Testing/Tcl/PrintSelfCheck.tcl
>> ./Common/Core/Testing/Tcl/TestString.tcl
>> ./Common/Core/Testing/Tcl/otherPrint.tcl
>> ./Common/Math/Testing/Tcl/TestAmoebaMinimizer.tcl
>> ./Common/Transforms/Testing/Tcl/SliceOrder.tcl
>> ./Common/DataModel/Testing/Tcl/otherDataSetAttributes.tcl
>> ./Common/DataModel/Testing/Tcl/quadricCut.tcl
>> ./Common/DataModel/Testing/Tcl/TestConvexPointSet.tcl
>> ./Common/DataModel/Testing/Tcl/TestICPTransform.tcl
>> ./Interaction/Widgets/Testing/Tcl/TestSphereWidget.tcl
>> ./Interaction/Widgets/Testing/Tcl/TestBoxWidget.tcl
>> ./Interaction/Widgets/Testing/Tcl/TestInteractorEventRecorder.tcl
>> ./Interaction/Widgets/Testing/Tcl/TestTextWidget.tcl
>> ./Interaction/Style/Testing/Tcl/TestStyleTerrain.tcl
>> ./Interaction/Style/Testing/Tcl/TestStyleJoystickCamera.tcl
>> ./Interaction/Style/Testing/Tcl/TestStyleTrackballCamera.tcl
>> ./Interaction/Style/Testing/Tcl/TestStyleBase.tcl
>> ./Interaction/Style/Testing/Tcl/TestStyleBaseSpike.tcl
>> ./Interaction/Style/Testing/Tcl/TestStyleJoystickActor.tcl
>> ./Interaction/Style/Testing/Tcl/TestInteractorStyleTerrain.tcl
>> ./Interaction/Style/Testing/Tcl/TestStyleTrackballActor.tcl
>> ./Imaging/Core/Testing/Tcl/TestAllMathematics.tcl
>> ./Imaging/Core/Testing/Tcl/TestAllBlends.tcl
>> ./Imaging/Core/Testing/Tcl/TestImageWeightedSum.tcl
>> ./Imaging/Core/Testing/Tcl/TestAllBlendsFloat.tcl
>> ./Imaging/Core/Testing/Tcl/imageMCAll.tcl
>> ./Imaging/Core/Testing/Tcl/reconstructSurface.tcl
>> ./Imaging/Core/Testing/Tcl/TestWipe.tcl
>> ./Imaging/Core/Testing/Tcl/WindowLevelInterface.tcl
>> ./Imaging/Core/Testing/Tcl/TestThreshold.tcl
>> ./Imaging/Core/Testing/Tcl/TestAllMaskBits.tcl
>> ./Imaging/Core/Testing/Tcl/TestBlendStencil.tcl
>> ./Imaging/Core/Testing/Tcl/TestExtractVOI.tcl
>> ./Imaging/Core/Testing/Tcl/TestAllShrinks.tcl
>> ./Imaging/Core/Testing/Tcl/TestImageThresholdConnectivity.tcl
>> ./Imaging/Core/Testing/Tcl/TestAllLogic.tcl
>> ./Filters/Modeling/Testing/Tcl/contour2DAll.tcl
>> ./Filters/Modeling/Testing/Tcl/contour3DAll.tcl
>> ./Filters/Modeling/Testing/Tcl/TestFillHolesFilter.tcl
>> ./Filters/Hybrid/Testing/Tcl/TestProcrustesRigidCentroid.tcl
>> ./Filters/General/Testing/Tcl/WarpScalarImage.tcl
>> ./Filters/General/Testing/Tcl/spatialRepAll.tcl
>> ./Filters/General/Testing/Tcl/TestRandomAttributeGenerator.tcl
>> ./Filters/General/Testing/Tcl/WarpVectorImage.tcl
>> ./Filters/General/Testing/Tcl/cursor2D.tcl
>> ./Filters/Sources/Testing/Tcl/squadViewer.tcl
>> ./Filters/Sources/Testing/Tcl/TestPlatonicSolids.tcl
>> ./Filters/Core/Testing/Tcl/deciPlane.tcl
>> ./Filters/Core/Testing/Tcl/MassProperties.tcl
>> ./Filters/Core/Testing/Tcl/skinOrder.tcl
>> ./Filters/Core/Testing/Tcl/financialField3.tcl
>> ./Filters/Core/Testing/Tcl/probeComb.tcl
>> ./Filters/Core/Testing/Tcl/SliceOrder.tcl
>> ./Filters/Core/Testing/Tcl/deciFranFace.tcl
>> ./Filters/Core/Testing/Tcl/financialField2.tcl
>> ./Filters/Parallel/Testing/Tcl/TestCutMaterial.tcl
>> ./Filters/Parallel/Testing/Tcl/TestImageStreamer.tcl
>> ./Filters/Parallel/Testing/Tcl/TestExtractCTHPart.tcl
>> ./Filters/Parallel/Testing/Tcl/TestExtrudePiece.tcl
>> ./Filters/Parallel/Testing/Tcl/RectOutline.tcl
>> ./Rendering/FreeType/Testing/Tcl/TestTextActor3D.tcl
>> ./Rendering/Annotation/Testing/Tcl/cubeAxes2.tcl
>> ./Rendering/Annotation/Testing/Tcl/cubeAxes3.tcl
>> ./Rendering/OpenGL/Testing/Tcl/TestFreetypeTextMapperBigger.tcl
>> ./Rendering/OpenGL/Testing/Tcl/TestFreetypeTextOverlay.tcl
>> ./Rendering/OpenGL/Testing/Tcl/TestFreetypeTextMapper.tcl
>> ./Rendering/Core/Testing/Tcl/cells.tcl
>> ./Rendering/Core/Testing/Tcl/TestGenericVertexAttributesCg.tcl
>> ./Rendering/Core/Testing/Tcl/SurfacePickerWithTexture.tcl
>> ./Rendering/Core/Testing/Tcl/TexturedSphere.tcl
>> ./Rendering/Core/Testing/Tcl/TestWindowToImageTransparency.tcl
>> ./Rendering/Core/Testing/Tcl/TestGLSLShader.tcl
>> ./Rendering/Core/Testing/Tcl/TestOpacity2.tcl
>> ./Rendering/Core/Testing/Tcl/TestLeaderActor2D.tcl
>> ./Rendering/Core/Testing/Tcl/TestTransformCoordinateSystems.tcl
>> ./Rendering/Core/Testing/Tcl/TestCgShader.tcl
>> ./Rendering/Core/Testing/Tcl/TestGenericVertexAttributesGLSL.tcl
>> ./Rendering/Core/Testing/Tcl/PickerWithLocator.tcl
>> ./Rendering/Volume/Testing/Tcl/volTM3DCompressedCropRegions.tcl
>> ./Rendering/Volume/Testing/Tcl/TestFixedPointRayCasterLinearCropped.tcl
>> ./Rendering/Volume/Testing/Tcl/TestFixedPointRayCasterLinear.tcl
>> ./Rendering/Volume/Testing/Tcl/cursor3D.tcl
>> ./Rendering/Volume/Testing/Tcl/TestFixedPointRayCasterNearestCropped.tcl
>> ./Rendering/Volume/Testing/Tcl/VolumePickerCrop.tcl
>> ./Rendering/Volume/Testing/Tcl/VolumeOutlineSourceClipped.tcl
>> ./Rendering/Volume/Testing/Tcl/VolumeOutlineSource.tcl
>> ./Rendering/Volume/Testing/Tcl/volTM3DCropRegions.tcl
>> ./Rendering/Volume/Testing/Tcl/volTM3DRotateClip.tcl
>> ./Rendering/Volume/Testing/Tcl/VolumePicker.tcl
>> ./Rendering/LOD/Testing/Tcl/TestQuadricLODActor.tcl
>> ./IO/Image/Testing/Tcl/TestMetaImage2D.tcl
>> ./IO/Image/Testing/Tcl/TestSetFileNames.tcl
>> ./IO/MINC/Testing/Tcl/TestMINCImageWriter.tcl
>> ./IO/MINC/Testing/Tcl/TestMINCImageReader.tcl
>> ./IO/XML/Testing/Tcl/TestEmptyXML.tcl
>> ./IO/XML/Testing/Tcl/TestXMLRectilinearGridIO.tcl
>> ./IO/XML/Testing/Tcl/TestXMLPolyDataIO.tcl
>> ./IO/XML/Testing/Tcl/TestXMLImageDataIO.tcl
>> ./IO/XML/Testing/Tcl/TestXMLUnstructuredGridIO.tcl
>> ./IO/XML/Testing/Tcl/TestXMLStructuredGridIO.tcl
>> ./IO/Core/Testing/Tcl/TestGlobFileNames.tcl
>> ./IO/Core/Testing/Tcl/TestSortFileNames.tcl
>> ./IO/Geometry/Testing/Tcl/TestSimplePointsReader.tcl
>> ./IO/Geometry/Testing/Tcl/TestChacoReader.tcl
>> ./IO/Parallel/Testing/Tcl/TestPImageWriter.tcl
>> ./IO/Parallel/Testing/Tcl/TestPDataSetReaderGrid.tcl
>> ./Parallel/Core/Testing/Tcl/TestUnstructuredPieces.tcl
>> ./Parallel/Core/Testing/Tcl/TestPolyDataPieces.tcl
>> ./Parallel/MPI/Testing/Tcl/TestPProbe.tcl
>>
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120830/383ccdc5/attachment.html>


More information about the vtk-developers mailing list