1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
|
INCLUDE(${VTK_SOURCE_DIR}/Utilities/vtkTclTest2Py/vtkConvertTclTestToPy.cmake)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
IF (VTK_PYTHON_EXE)
SET(tests)
IF (VTK_DATA_ROOT)
# Tests written in Python
FOREACH ( tfile
cameraWarpedCone
glyphComb
streamComb
tubeComb
streamSurface
streamSurface2
)
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/rtImageTest.py
${VTK_SOURCE_DIR}/Graphics/Testing/Python/${tfile}.py
-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 )
# Add tests converted from Tcl
SET( tests ${tests}
AutomaticPlaneGeneration
Canny
CellDataToPointData
Delaunay2D
Delaunay2DAlpha
Delaunay2DTransform
Delaunay3D
Disk
EnSight6Elements
EnSight6OfficeBin
EnSightBlow1ASCII
EnSightBlow1Bin
EnSightBlow2ASCII
EnSightBlow2Bin
EnSightBlow3Bin
EnSightBlow4Bin
EnSightBlow5ASCII
EnSightCompound
EnSightGoldElements
EnSightIronProtASCII
EnSightIronProtBin
EnSightMandelbrot
EnSightNfacedASCII
EnSightNfacedBin
EnSightOfficeASCII
EnSightOfficeBin
EnSightRectGridASCII
EnSightRectGridBin
EnSightSelectArrays
ExtractEdgesQuadraticCells
ExtractTensors
Hyper
HyperScalarBar
KlineBottle
LineIntersectQuadraticCells
MatrixToTransform
MultidimensionalSolution
NoLightGeneration
OBBCylinder
OSCone
PolyDataMapperAllPolygons
PolyDataMapperAllWireframe
QuadricDecimation
StreamPolyData
TenEllip
TestBandedContourFilter
TestBoxFunction
TestButtonSource
TestCameraInterpolator
TestCellDerivs
TestClipClosedSurface
TestClipOutline
TestCurvatures
TestDiscreteMarchingCubes
TestGraphLayoutFilter
TestGridSynchronizedTemplates3D
TestImageMarchingCubes
TestMarchingSquares
TestMultiBlockStreamer
TestParametricFunctions
#TestPlatonicSolids -- uses eval to expand list
TestQuadricClustering
TestRectilinearGridToTetrahedra
TestRectilinearSynchronizedTemplates
TestRegularPolygonSource
TestRibbonAndTube
TestRotate
TestRuledSurface
TestRuledSurface2
TestSpherePuzzle
TestSpherePuzzleArrows
TestSplineFilter
TestStructuredGrid
TestSynchronizedTemplates2D
TestSynchronizedTemplates3D
TestTransformInterpolator
TestTriangleFilter
TransformConcatenation
TransformCoverage
TransformPolyData
blankGrid
capCow
capSphere
clipArt
clipComb
clipImage
clipQuadraticCells
clipVolume
clipVolume2
clipVolume3
combStreamers
combStreamers2
coneResolution
constrainedDelaunay
#contour2DAll -- complex use of string eval.
#contour3DAll -- complex use of string eval.
contourCells
contourQuadraticCells
contoursToSurface
cowHair
cowHair2
createBFont
cursor3D
cutLoop
cylindrical
cylMap
dataSetSurfaceFilter
#deciPlane -- complex use of string eval
dicer
dispPlot
edgePoints
eleState
extractPolyData
extractRectGrid
extractUGrid
extractVectors
extrudeCopyCD
fieldToPolyData
fieldToRGrid
fieldToSGrid
fieldToUGrid
financialField
genHead
geomFilter
glyph2D
headBone
hull
iceCream
#imageMCAll -- substitution in method call.
mcubes
mergeFilter
motor
multipleComponentContour
multipleIso
nacaBinary
officeStreamPoints
polyConn
probeComb
progGlyphs
progGlyphsBySource
#quadricCut -- switch case
rectGrid
recursiveDC
reverseNormals
scalarColors
scalarConn
schwarz
shepards
#skinOrder -- sources a script.
smoothCyl
smoothCyl2
smoothMeshOnMesh
socbal
#spatialRepAll -- complex string substitutions
spherical
splitVectors
stereoDresdenMace
streamTracer
stripF
subdividePointData
subDivideTetra
subPixelPositionMin
#sync3dAll -- substitution in method call.
teapotHulls
testDataSetTriangleFilter
testDataSetTriangleFilter2
testHexaPenta
testReflect
textureThreshold
triangularTCoords
triangularTexture
warplens
)
# Newer tests using vtk.test.Testing.
FOREACH ( tfile
TestTensorGlyph
TestTextureGlyph
)
ADD_TEST(${tfile}Python-image ${VTK_PYTHON_EXE}
${VTK_SOURCE_DIR}/Graphics/Testing/Python/${tfile}.py
-D ${VTK_DATA_ROOT}
-B ${VTK_DATA_ROOT}/Baseline/Graphics)
ENDFOREACH( tfile )
ELSE (VTK_DATA_ROOT)
# All Graphics tests require VTKData - no tests should be in this block...
ENDIF (VTK_DATA_ROOT)
CONVERT_TCL_TEST_TO_PY(
tests
Graphics)
ENDIF (VTK_PYTHON_EXE)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
|