Skip to content
Snippets Groups Projects
Commit 3c87d75f authored by Ben Boeckel's avatar Ben Boeckel
Browse files

Update the Python test call sites

Change-Id: I5f19b101063e1a25d4f5db5c4356ce5efffbd90d
parent bcc9c5a3
No related branches found
No related tags found
No related merge requests found
Showing
with 335 additions and 310 deletions
if (VTK_PYTHON_EXE)
#
# Test base functionality.
#
set(TestConversion_OPTS NO_VALID)
foreach ( tfile
TestConversion
TestContour
TestRendering
TestThreshold
TestSlice
TestSort
)
set(${tfile}_ARGS --normalize)
vtk_add_test_python(${tfile}.py NO_RT ${${tfile}_OPTS})
endforeach ( )
#
# Exercise origin and spacing aspect of vtkImageData
#
set(vtk_test_prefix Placed)
vtk_add_test_python(
NO_OUTPUT NO_RT
TestContour.py
TestThreshold.py
TestSlice.py
TestSort.py
)
unset(vtk_test_prefix)
#
# Exercise origin and spacing aspect of vtkImageData
#
foreach ( tfile
Contour
Threshold
Slice
Sort
)
ExternalData_add_test(VTKData
NAME ${vtk-module}Python-TestPlaced${tfile}
COMMAND ${VTK_PYTHON_EXE}
${CMAKE_CURRENT_SOURCE_DIR}/Test${tfile}.py
-B "DATA{../Data/Baseline/,REGEX:Test${tfile}(_[0-9]+)?.png}"
-D ${VTK_TEST_DATA_DIR}/Data)
endforeach ( )
#
# Exercise thrust to gl direct on GPU rendering.
#
set(vtk_test_prefix Direct)
set(Rendering_ARGS --gpu_render)
vtk_add_test_python(
NO_RT NO_OUTPUT
TestRendering.py
)
unset(vtk_test_prefix)
#
# Exercise thrust to gl direct on GPU rendering.
#
ExternalData_add_test(VTKData
NAME ${vtk-module}Python-TestDirectRendering
COMMAND ${VTK_PYTHON_EXE}
${CMAKE_CURRENT_SOURCE_DIR}/TestRendering.py
-B "DATA{../Data/Baseline/,REGEX:TestRendering(_[0-9]+)?.png}"
-D ${VTK_TEST_DATA_DIR}/Data
--gpu_render)
endif ()
#
# Test base functionality.
#
set(python_tests
TestConversion
TestContour
TestRendering
TestThreshold
TestSlice
TestSort
)
set(test_files)
foreach(test IN LISTS python_tests)
set(${test}_ARGS --normalize)
list(APPEND test_files ${test}.py)
endforeach()
vtk_add_test_python(
NO_RT NO_VALID
${test_files}
)
if(VTK_PYTHON_EXE)
# These tests should use vtk.test.Testing.
set(tests
TestBarGraph
TestLinePlot
TestStackedPlot
TestLinePlotColors
TestParallelCoordinatesColors
TestScatterPlotColors
)
foreach(tfile ${tests})
vtk_add_test_python(${tfile}.py NO_RT NO_OUTPUT)
endforeach()
else()
message(FATAL_ERROR "No Python tests added!")
endif()
# These tests should use vtk.test.Testing.
vtk_add_test_python(
NO_RT NO_OUTPUT
TestBarGraph.py
TestLinePlot.py
TestStackedPlot.py
TestLinePlotColors.py
TestParallelCoordinatesColors.py
TestScatterPlotColors.py
)
vtk_add_test_python(CSpline.py)
vtk_add_test_python(KSpline.py)
vtk_add_test_python(TestParametricFunctions.py NO_RT)
vtk_add_test_python(closedSplines.py)
vtk_add_test_python(
CSpline.py
KSpline.py
TestParametricFunctions.py,NO_RT
closedSplines.py
)
if(VTK_PYTHON_EXE)
foreach(tfile
PythonSmoke
TestArrayArguments
TestExecuteMethodFinalizeCrash
TestGhost
TestIgnoreBTX
TestMutable
TestNumpySupport
TestOperators
TestPointers
TestStrings
TestSubClass
TestTerminationCrash
TestVariant
TestWeakref
TestCommand
)
vtk_add_test_python(${tfile}.py NO_DATA NO_VALID NO_OUTPUT)
endforeach()
endif()
vtk_add_test_python(
NO_DATA NO_VALID NO_OUTPUT
PythonSmoke.py
TestArrayArguments.py
TestExecuteMethodFinalizeCrash.py
TestGhost.py
TestIgnoreBTX.py
TestMutable.py
TestNumpySupport.py
TestOperators.py
TestPointers.py
TestStrings.py
TestSubClass.py
TestTerminationCrash.py
TestVariant.py
TestWeakref.py
TestCommand.py
)
vtk_add_test_python(ImplicitSum.py)
vtk_add_test_python(LineIntersectQuadraticCells.py)
vtk_add_test_python(PerlinNoise.py)
vtk_add_test_python(SelectionLoop.py)
vtk_add_test_python(TestNumericArrayImageData.py NO_DATA NO_VALID)
vtk_add_test_python(TestQuadricClustering.py)
vtk_add_test_python(TestStructuredGrid.py)
vtk_add_test_python(TestTemplates.py NO_DATA NO_VALID)
vtk_add_test_python(headBone.py)
vtk_add_test_python(scalarColors.py)
vtk_add_test_python(scalarConn.py)
vtk_add_test_python(TestConvexPointSet.py)
vtk_add_test_python(otherDataSetAttributes.py NO_DATA NO_VALID NO_RT)
vtk_add_test_python(quadricCut.py NO_RT)
vtk_add_test_python(TestICPTransform.py NO_RT)
vtk_add_test_python(
ImplicitSum.py
LineIntersectQuadraticCells.py
PerlinNoise.py
SelectionLoop.py
TestNumericArrayImageData.py,NO_DATA,NO_VALID
TestQuadricClustering.py
TestStructuredGrid.py
TestTemplates.py,NO_DATA,NO_VALID
headBone.py
scalarColors.py
scalarConn.py
TestConvexPointSet.py
otherDataSetAttributes.py,NO_DATA,NO_VALID,NO_RT
quadricCut.py,NO_RT
TestICPTransform.py,NO_RT
)
if(VTK_PYTHON_EXE)
vtk_add_test_python(TestReleaseData.py NO_DATA NO_VALID NO_OUTPUT)
endif()
\ No newline at end of file
vtk_add_test_python(
NO_DATA NO_VALID NO_OUTPUT
TestReleaseData.py
)
vtk_add_test_python(MatrixToTransform.py)
vtk_add_test_python(TestThinPlateWarp.py)
vtk_add_test_python(TestThinPlateWarp3D.py)
vtk_add_test_python(cylindrical.py)
vtk_add_test_python(spherical.py)
vtk_add_test_python(
MatrixToTransform.py
TestThinPlateWarp.py
TestThinPlateWarp3D.py
cylindrical.py
spherical.py
)
if(VTK_PYTHON_EXE)
foreach(tfile
TestAMRResampleFilter
TestAMRExtractLevel
TestAMRSliceFilter
)
vtk_add_test_python(${tfile}.py NO_VALID NO_OUTPUT)
set_tests_properties(${vtk-module}Python-${tfile} PROPERTIES FAIL_REGULAR_EXPRESSION "Error")
set(python_tests
TestAMRResampleFilter
TestAMRExtractLevel
TestAMRSliceFilter
)
set(test_files)
foreach(test IN LISTS python_tests)
list(APPEND test_files
${test}.py)
endforeach()
endif()
\ No newline at end of file
vtk_add_test_python(
NO_VALID NO_OUTPUT
${test_files}
)
foreach(test IN LISTS python_tests)
set_tests_properties(${vtk-module}Python-${test}
PROPERTIES
FAIL_REGULAR_EXPRESSION "Error"
)
endforeach()
endif()
vtk_add_test_python(CellDataToPointData.py)
vtk_add_test_python(Delaunay2D.py)
vtk_add_test_python(Delaunay2DAlpha.py)
vtk_add_test_python(Delaunay2DTransform.py)
vtk_add_test_python(Delaunay3D.py)
vtk_add_test_python(Delaunay3DAlphaTest.py)
vtk_add_test_python(QuadricDecimation.py)
vtk_add_test_python(StreamPolyData.py)
vtk_add_test_python(TestGridSynchronizedTemplates3D.py)
vtk_add_test_python(TestMarchingSquares.py)
vtk_add_test_python(TestRectilinearSynchronizedTemplates.py)
vtk_add_test_python(TestSynchronizedTemplates2D.py)
vtk_add_test_python(TestSynchronizedTemplates3D.py)
vtk_add_test_python(TestContourGrid.py NO_VALID)
vtk_add_test_python(TestTensorGlyph.py NO_RT)
vtk_add_test_python(TestTextureGlyph.py)
vtk_add_test_python(TestTriangleFilter.py)
vtk_add_test_python(capCow.py)
vtk_add_test_python(capSphere.py)
vtk_add_test_python(clipArt.py)
vtk_add_test_python(combStreamers.py)
vtk_add_test_python(combStreamers2.py)
vtk_add_test_python(constrainedDelaunay.py)
vtk_add_test_python(contourCells.py)
vtk_add_test_python(contourQuadraticCells.py)
vtk_add_test_python(createBFont.py)
vtk_add_test_python(cutLoop.py)
vtk_add_test_python(dispPlot.py)
vtk_add_test_python(fieldToPolyData.py)
vtk_add_test_python(fieldToRGrid.py)
vtk_add_test_python(fieldToSGrid.py)
vtk_add_test_python(fieldToUGrid.py)
vtk_add_test_python(glyphComb.py)
vtk_add_test_python(hull.py)
vtk_add_test_python(mergeFilter.py)
vtk_add_test_python(multipleComponentContour.py)
vtk_add_test_python(multipleIso.py)
vtk_add_test_python(polyConn.py)
vtk_add_test_python(probeComb.py)
vtk_add_test_python(reverseNormals.py)
vtk_add_test_python(smoothMeshOnMesh.py)
vtk_add_test_python(streamComb.py)
vtk_add_test_python(streamSurface.py)
vtk_add_test_python(streamSurface2.py)
vtk_add_test_python(stripF.py)
vtk_add_test_python(teapotHulls.py)
vtk_add_test_python(tubeComb.py)
vtk_add_test_python(deciFranFace.py NO_RT)
vtk_add_test_python(deciPlane NO_RT)
vtk_add_test_python(financialField NO_RT)
vtk_add_test_python(skinOrder NO_RT)
vtk_add_test_python(MassProperties NO_RT)
vtk_add_test_python(financialField2 NO_RT)
vtk_add_test_python(financialField3 NO_RT)
vtk_add_test_python(TestContourCases.py NO_DATA NO_VALID)
vtk_add_test_python(pointsPrecisions.py NO_OUTPUT NO_DATA NO_VALID NO_RT)
vtk_add_test_python(TestCompositeCutter.py NO_VALID)
# Data files:
# deciPlane,NO_RT
# financialField,NO_RT
# skinOrder,NO_RT
# MassProperties,NO_RT
# financialField2,NO_RT
# financialField3,NO_RT
vtk_add_test_python(
CellDataToPointData.py
Delaunay2D.py
Delaunay2DAlpha.py
Delaunay2DTransform.py
Delaunay3D.py
Delaunay3DAlphaTest.py
QuadricDecimation.py
StreamPolyData.py
TestGridSynchronizedTemplates3D.py
TestMarchingSquares.py
TestRectilinearSynchronizedTemplates.py
TestSynchronizedTemplates2D.py
TestSynchronizedTemplates3D.py
TestContourGrid.py,NO_VALID
TestTensorGlyph.py,NO_RT
TestTextureGlyph.py
TestTriangleFilter.py
capCow.py
capSphere.py
clipArt.py
combStreamers.py
combStreamers2.py
constrainedDelaunay.py
contourCells.py
contourQuadraticCells.py
createBFont.py
cutLoop.py
dispPlot.py
fieldToPolyData.py
fieldToRGrid.py
fieldToSGrid.py
fieldToUGrid.py
glyphComb.py
hull.py
mergeFilter.py
multipleComponentContour.py
multipleIso.py
polyConn.py
probeComb.py
reverseNormals.py
smoothMeshOnMesh.py
streamComb.py
streamSurface.py
streamSurface2.py
stripF.py
teapotHulls.py
tubeComb.py
deciFranFace.py,NO_RT
TestContourCases.py,NO_DATA,NO_VALID
pointsPrecisions.py,NO_OUTPUT,NO_DATA,NO_VALID,NO_RT
TestCompositeCutter.py,NO_VALID
)
vtk_add_test_python(ExtractEdgesQuadraticCells.py)
vtk_add_test_python(ExtractTensors.py)
vtk_add_test_python(extractPolyData.py)
vtk_add_test_python(extractRectGrid.py)
vtk_add_test_python(extractUGrid.py)
vtk_add_test_python(extractVectors.py)
vtk_add_test_python(
ExtractEdgesQuadraticCells.py
ExtractTensors.py
extractPolyData.py
extractRectGrid.py
extractUGrid.py
extractVectors.py
)
vtk_add_test_python(Canny.py)
vtk_add_test_python(OBBCylinder.py)
vtk_add_test_python(TestCellDerivs.py)
vtk_add_test_python(TestClipClosedSurface.py)
vtk_add_test_python(TestClipOutline.py)
vtk_add_test_python(TestCurvatures.py)
vtk_add_test_python(TestDeformPointSet.py)
vtk_add_test_python(TestDiscreteMarchingCubes.py)
vtk_add_test_python(TestGraphLayoutFilter.py)
vtk_add_test_python(TestMultiBlockStreamer.py)
vtk_add_test_python(TestRectilinearGridToTetrahedra.py)
vtk_add_test_python(TestSplineFilter.py)
vtk_add_test_python(WarpToImage.py)
vtk_add_test_python(blankGrid.py)
vtk_add_test_python(clipComb.py)
vtk_add_test_python(clipHex.py)
vtk_add_test_python(clipImage.py)
vtk_add_test_python(clipPyramid.py)
vtk_add_test_python(clipQuadraticCells.py)
vtk_add_test_python(clipTet.py)
vtk_add_test_python(clipVolume.py)
vtk_add_test_python(clipVolume2.py)
vtk_add_test_python(clipVolume3.py)
vtk_add_test_python(clipWedge.py)
vtk_add_test_python(contoursToSurface.py)
vtk_add_test_python(cursor3D.py)
vtk_add_test_python(dicer.py)
vtk_add_test_python(edgePoints.py)
vtk_add_test_python(mcubes.py)
vtk_add_test_python(recursiveDC.py)
vtk_add_test_python(splitVectors.py)
vtk_add_test_python(streamTracer.py)
vtk_add_test_python(subPixelPositionMin.py)
vtk_add_test_python(testDataSetTriangleFilter.py)
vtk_add_test_python(testDataSetTriangleFilter2.py)
vtk_add_test_python(testReflect.py)
vtk_add_test_python(warplens.py)
vtk_add_test_python(TestRandomAttributeGenerator.py)
vtk_add_test_python(TestRandomAttributeGeneratorScalar.py)
vtk_add_test_python(WarpScalarImage.py)
vtk_add_test_python(WarpVectorImage.py)
vtk_add_test_python(cursor2D.py)
vtk_add_test_python(spatialRepAll.py NO_RT)
vtk_add_test_python(pointsPrecisions.py NO_OUTPUT NO_DATA NO_VALID NO_RT)
vtk_add_test_python(tableBasedClip.py NO_RT)
vtk_add_test_python(
Canny.py
OBBCylinder.py
TestCellDerivs.py
TestClipClosedSurface.py
TestClipOutline.py
TestCurvatures.py
TestDeformPointSet.py
TestDiscreteMarchingCubes.py
TestGraphLayoutFilter.py
TestMultiBlockStreamer.py
TestRectilinearGridToTetrahedra.py
TestSplineFilter.py
WarpToImage.py
blankGrid.py
clipComb.py
clipHex.py
clipImage.py
clipPyramid.py
clipQuadraticCells.py
clipTet.py
clipVolume.py
clipVolume2.py
clipVolume3.py
clipWedge.py
contoursToSurface.py
cursor3D.py
dicer.py
edgePoints.py
mcubes.py
recursiveDC.py
splitVectors.py
streamTracer.py
subPixelPositionMin.py
testDataSetTriangleFilter.py
testDataSetTriangleFilter2.py
testReflect.py
warplens.py
TestRandomAttributeGenerator.py
TestRandomAttributeGeneratorScalar.py
WarpScalarImage.py
WarpVectorImage.py
cursor2D.py
spatialRepAll.py,NO_RT
pointsPrecisions.py,NO_OUTPUT,NO_DATA,NO_VALID,NO_RT
tableBasedClip.py,NO_RT
)
vtk_add_test_python(dataSetSurfaceFilter.py)
vtk_add_test_python(geomFilter.py)
vtk_add_test_python(officeStreamPoints.py)
vtk_add_test_python(rectGrid.py)
vtk_add_test_python(structuredGridBlanking.py)
vtk_add_test_python(TestGhostPoints.py NO_DATA NO_VALID NO_OUTPUT)
vtk_add_test_python(
dataSetSurfaceFilter.py
geomFilter.py
officeStreamPoints.py
rectGrid.py
structuredGridBlanking.py
TestGhostPoints.py,NO_DATA,NO_VALID,NO_OUTPUT
)
vtk_add_test_python(3DMorph.py)
vtk_add_test_python(TestFacetReader.py)
vtk_add_test_python(TestGreedyTerrainDecimation.py)
vtk_add_test_python(TestGridWarp3D.py)
vtk_add_test_python(TestGridWarpCubic.py)
vtk_add_test_python(TestGridWarpLinear.py)
vtk_add_test_python(TestGridWarpNearest.py)
vtk_add_test_python(TestImageStencilWithPolydata.py)
vtk_add_test_python(TestPCA.py)
vtk_add_test_python(TestProcrustes.py)
vtk_add_test_python(TestProjectedTerrainPath.py)
vtk_add_test_python(TestTemporalSnapToTimeStep.py NO_DATA NO_VALID)
vtk_add_test_python(WarpPolyData.py)
vtk_add_test_python(appendImplicitModel.py)
vtk_add_test_python(appendImplicitModelNoBounds.py)
vtk_add_test_python(banana.py)
vtk_add_test_python(depthSort.py)
vtk_add_test_python(earth.py)
vtk_add_test_python(imageToPolyData.py)
vtk_add_test_python(largeImageOffset.py)
vtk_add_test_python(largeImageParallel.py)
vtk_add_test_python(TestProcrustesRigidCentroid.py)
vtk_add_test_python(
3DMorph.py
TestFacetReader.py
TestGreedyTerrainDecimation.py
TestGridWarp3D.py
TestGridWarpCubic.py
TestGridWarpLinear.py
TestGridWarpNearest.py
TestImageStencilWithPolydata.py
TestPCA.py
TestProcrustes.py
TestProjectedTerrainPath.py
TestTemporalSnapToTimeStep.py,NO_DATA,NO_VALID
WarpPolyData.py
appendImplicitModel.py
appendImplicitModelNoBounds.py
banana.py
depthSort.py
earth.py
imageToPolyData.py
largeImageOffset.py
largeImageParallel.py
TestProcrustesRigidCentroid.py
)
vtk_add_test_python(Hyper.py)
vtk_add_test_python(HyperScalarBar.py)
vtk_add_test_python(KlineBottle.py)
vtk_add_test_python(TenEllip.py)
vtk_add_test_python(TestBandedContourFilter.py)
vtk_add_test_python(TestBoxFunction.py)
vtk_add_test_python(TestImageMarchingCubes.py)
vtk_add_test_python(TestRibbonAndTube.py)
vtk_add_test_python(TestRuledSurface.py)
vtk_add_test_python(TestRuledSurface2.py)
vtk_add_test_python(TestSpherePuzzle.py)
vtk_add_test_python(TestSpherePuzzleArrows.py)
vtk_add_test_python(camera.py)
vtk_add_test_python(eleState.py)
vtk_add_test_python(extrudeCopyCD.py)
vtk_add_test_python(schwarz.py)
vtk_add_test_python(smoothCyl.py)
vtk_add_test_python(smoothCyl2.py)
vtk_add_test_python(subDivideTetra.py)
vtk_add_test_python(subdividePointData.py)
vtk_add_test_python(TestFillHolesFilter.py)
vtk_add_test_python(TestNamedColorsIntegration.py NO_RT)
vtk_add_test_python(contour2DAll.py NO_RT)
vtk_add_test_python(contour3DAll.py NO_RT)
vtk_add_test_python(sync3dAll.py NO_RT)
vtk_add_test_python(
Hyper.py
HyperScalarBar.py
KlineBottle.py
TenEllip.py
TestBandedContourFilter.py
TestBoxFunction.py
TestImageMarchingCubes.py
TestRibbonAndTube.py
TestRuledSurface.py
TestRuledSurface2.py
TestSpherePuzzle.py
TestSpherePuzzleArrows.py
camera.py
eleState.py
extrudeCopyCD.py
schwarz.py
smoothCyl.py
smoothCyl2.py
subDivideTetra.py
subdividePointData.py
TestFillHolesFilter.py
TestNamedColorsIntegration.py,NO_RT
contour2DAll.py,NO_RT
contour3DAll.py,NO_RT
sync3dAll.py,NO_RT
)
vtk_add_test_python(RectOutline.py)
vtk_add_test_python(TestCutMaterial.py)
vtk_add_test_python(TestExtractCTHPart.py)
vtk_add_test_python(TestExtrudePiece.py)
vtk_add_test_python(TestImageStreamer.py)
vtk_add_test_python(
RectOutline.py
TestCutMaterial.py
TestExtractCTHPart.py
TestExtrudePiece.py
TestImageStreamer.py
)
vtk_add_test_python(MultidimensionalSolution.py)
vtk_add_test_python(progGlyphs.py)
vtk_add_test_python(progGlyphsBySource.py)
vtk_add_test_python(
MultidimensionalSolution.py
progGlyphs.py
progGlyphsBySource.py
)
vtk_add_test_python(Disk.py)
vtk_add_test_python(OSCone.py)
vtk_add_test_python(TestButtonSource.py)
vtk_add_test_python(TestRegularPolygonSource.py)
vtk_add_test_python(coneResolution.py)
vtk_add_test_python(glyph2D.py)
vtk_add_test_python(TestPlatonicSolids.py NO_RT)
vtk_add_test_python(
Disk.py
OSCone.py
TestButtonSource.py
TestRegularPolygonSource.py
coneResolution.py
glyph2D.py
TestPlatonicSolids.py,NO_RT
)
if(VTK_PYTHON_EXE)
vtk_add_test_python(kMeansDistanceCalculator.py NO_DATA NO_VALID NO_OUTPUT)
endif()
vtk_add_test_python(
NO_DATA NO_VALID NO_OUTPUT
kMeansDistanceCalculator.py
)
if(VTK_PYTHON_EXE)
set(tests
TestRCalculatorFilter
)
foreach(tfile ${tests})
vtk_add_test_python(${tfile}.py NO_VALID NO_RT NO_OUTPUT NO_DATA)
endforeach()
else()
message(FATAL_ERROR "No Python tests added!")
endif()
vtk_add_test_python(
NO_VALID NO_RT NO_OUTPUT NO_DATA
TestRCalculatorFilter.py
)
vtk_add_test_python(AutomaticPlaneGeneration.py)
vtk_add_test_python(cylMap.py)
vtk_add_test_python(socbal.py)
vtk_add_test_python(textureThreshold.py)
vtk_add_test_python(triangularTCoords.py)
vtk_add_test_python(
AutomaticPlaneGeneration.py
cylMap.py
socbal.py
textureThreshold.py
triangularTCoords.py
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment