Commit 050fd10e authored by Brad King's avatar Brad King
Browse files

Mark non-baseline tests with NO_VALID option

Tell calls to vtk_add_test_(cxx|python|tcl) explicitly when there is no
valid baseline image to avoid passing -V unnecessarily.

Change-Id: Ibe5aecdfa076446ddda0b95e814483eb6622af73
parent 02f0a6d2
vtk_add_test_cxx(Common
vtk_add_test_cxx(NO_VALID
TestCategoricalColors.cxx
TestNamedColors.cxx
)
......
......@@ -6,15 +6,15 @@ vtk_add_test_cxx(Chemistry
TestCompositeRender.cxx
TestFastRender.cxx
TestLiquoriceSticks.cxx
TestMolecule.cxx
TestMoleculeSelection.cxx
TestMolecule.cxx,NO_VALID
TestMoleculeSelection.cxx,NO_VALID
TestMoleculeMapperPropertyUpdate.cxx
TestMultiCylinderOn.cxx
TestMultiCylinderOff.cxx
TestPeriodicTable.cxx
TestProgrammableElectronicData.cxx
TestPeriodicTable.cxx,NO_VALID
TestProgrammableElectronicData.cxx,NO_VALID
TestProteinRibbon.cxx
TestSimpleBondPerceiver.cxx
TestSimpleBondPerceiver.cxx,NO_VALID
TestVDWSpheres.cxx
)
......
# Tests with data
if(VTK_DATA_ROOT)
vtk_add_test_cxx(Graphics
TestArrayCalculator.cxx
TestArrayCalculator.cxx,NO_VALID
)
endif()
vtk_add_test_cxx(Graphics
TestGhostArray.cxx
TestGhostArray.cxx,NO_VALID
# TestAppendPolyData.cxx
TestAppendSelection.cxx
TestAssignAttribute.cxx
TestCellDataToPointData.cxx
TestCenterOfMass.cxx
TestDecimatePolylineFilter.cxx
TestAppendSelection.cxx,NO_VALID
TestAssignAttribute.cxx,NO_VALID
TestCellDataToPointData.cxx,NO_VALID
TestCenterOfMass.cxx,NO_VALID
TestDecimatePolylineFilter.cxx,NO_VALID
TestDelaunay2D.cxx
TestExecutionTimer.cxx
TestExecutionTimer.cxx,NO_VALID
TestGlyph3D.cxx
TestImplicitPolyDataDistance.cxx
TestCutter.cxx
TestThreshold.cxx
TestImplicitPolyDataDistance.cxx,NO_VALID
TestCutter.cxx,NO_VALID
TestThreshold.cxx,NO_VALID
)
vtk_test_cxx_executable(${vtk-module}CxxTests)
......@@ -10,7 +10,7 @@ vtk_add_test_python(TestMarchingSquares.py Graphics)
vtk_add_test_python(TestRectilinearSynchronizedTemplates.py Graphics)
vtk_add_test_python(TestSynchronizedTemplates2D.py Graphics)
vtk_add_test_python(TestSynchronizedTemplates3D.py Graphics)
vtk_add_test_python(TestContourGrid.py Graphics)
vtk_add_test_python(TestContourGrid.py NO_VALID)
vtk_add_test_python(TestTensorGlyph.py Graphics NO_RT)
vtk_add_test_python(TestTextureGlyph.py Graphics)
vtk_add_test_python(TestTriangleFilter.py Graphics)
......
vtk_add_test_cxx(Graphics
TestConvertSelection.cxx
TestConvertSelection.cxx,NO_VALID
TestExtractSelection.cxx
TestExtraction.cxx
)
......
vtk_add_test_cxx(Graphics
TestBSPTree.cxx
TestStreamTracer.cxx
TestAMRInterpolatedVelocityField.cxx
TestParticleTracers.cxx
TestStreamTracer.cxx,NO_VALID
TestAMRInterpolatedVelocityField.cxx,NO_VALID
TestParticleTracers.cxx,NO_VALID
)
vtk_test_cxx_executable(${vtk-module}CxxTests RENDERING_FACTORY)
vtk_add_test_cxx(Graphics
TestGraphWeightEuclideanDistanceFilter.cxx
TestGraphWeightEuclideanDistanceFilter.cxx,NO_VALID
BoxClipPolyData.cxx
BoxClipTetrahedra.cxx
BoxClipTriangulate.cxx
BoxClipTriangulate.cxx,NO_VALID
BoxClipTriangulateAndInterpolate.cxx
TestBooleanOperationPolyDataFilter.cxx
TestBooleanOperationPolyDataFilter2.cxx
......@@ -12,18 +12,18 @@ vtk_add_test_cxx(Graphics
TestDeformPointSet.cxx
TestDensifyPolyData.cxx,-E15
TestDistancePolyDataFilter.cxx
TestImageDataToPointSet.cxx
TestImageDataToPointSet.cxx,NO_VALID
TestIntersectionPolyDataFilter.cxx
TestIntersectionPolyDataFilter2.cxx
TestRectilinearGridToPointSet.cxx
TestReflectionFilter.cxx
TestIntersectionPolyDataFilter2.cxx,NO_VALID
TestRectilinearGridToPointSet.cxx,NO_VALID
TestReflectionFilter.cxx,NO_VALID
TestUncertaintyTubeFilter.cxx
)
# Tests with data
if(VTK_DATA_ROOT)
vtk_add_test_cxx(Graphics
TestGradientAndVorticity.cxx
TestGradientAndVorticity.cxx,NO_VALID
TestIconGlyphFilterGravity.cxx
TestQuadraturePoints.cxx
TestYoungsMaterialInterface.cxx
......
......@@ -10,6 +10,7 @@ vtk_add_test_cxx(GenericFiltering
TestGenericGeometryFilter.cxx
TestGenericGlyph3DFilter.cxx
TestGenericProbeFilter.cxx
otherCreation.cxx)
otherCreation.cxx,NO_VALID
)
vtk_test_cxx_executable(${vtk-module}CxxTests)
vtk_add_test_cxx(Graphics
TestExtractSurfaceNonLinearSubdivision.cxx
TestImageDataToUniformGrid.cxx
TestProjectSphereFilter.cxx
TestStructuredAMRNeighbor.cxx
TestUniformGridGhostDataGenerator.cxx
TestImageDataToUniformGrid.cxx,NO_VALID
TestProjectSphereFilter.cxx,NO_VALID
TestStructuredAMRNeighbor.cxx,NO_VALID
TestUniformGridGhostDataGenerator.cxx,NO_VALID
TestUnstructuredGridGeometryFilter.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests)
......
vtk_add_test_cxx(Hybrid
# TestBSplineWarp.cxx # Fixme after vtkImageViewer deps
TestPolyDataSilhouette.cxx
TestTemporalCacheSimple.cxx
TestTemporalCacheTemporal.cxx
TestTemporalCacheSimple.cxx,NO_VALID
TestTemporalCacheTemporal.cxx,NO_VALID
)
vtk_add_test_cxx(Parallel
TestTemporalFractal.cxx
......
vtk_add_test_cxx(Graphics
vtk_add_test_cxx(NO_VALID
TestLinearSelector2D.cxx
)
# Tests with data
if(VTK_DATA_ROOT)
vtk_add_test_cxx(Graphics
vtk_add_test_cxx(NO_VALID
TestCellDistanceSelector2D.cxx
TestCellDistanceSelector3D.cxx
TestLinearSelector3D.cxx
......
vtk_add_test_cxx(Graphics
TestLineSource.cxx
TestTessellatedBoxSource.cxx
TestLineSource.cxx,NO_VALID
TestTessellatedBoxSource.cxx,NO_VALID
TestMultiBlock.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests)
vtk_add_test_cxx(QVTK
vtk_add_test_cxx(NO_VALID
TestQtDebugLeaksView.cxx
TestQtTableModelAdapter.cxx
TestQtTreeModelAdapter.cxx
......
......@@ -2,7 +2,7 @@ vtk_add_test_cxx(Geovis
TestCoincidentGeoGraphRepresentation2D.cxx
TestGeoAssignCoordinates.cxx
TestGeoGraticule.cxx
TestGeoProjection.cxx
TestGeoProjection.cxx,NO_VALID
TestGlobeSource.cxx
TestLabeledGeoView2D.cxx
)
......
vtk_add_test_cxx(IO
vtk_add_test_cxx(NO_VALID
TestArrayDataWriter.cxx
TestArrayDenormalized.cxx
TestArraySerialization.cxx
......
# Only run GL2PS tests if GhostScript is available if VTK_DATA_ROOT is set
if(VTK_GHOSTSCRIPT_EXECUTABLE AND VTK_DATA_ROOT)
set(GL2PSTests
TestContextGL2PS.cxx
TestContextGL2PS.cxx,NO_VALID
TestGL2PSExporterMultipleRenderers.cxx
TestGL2PSExporterRaster.cxx
TestGL2PSExporterRaster.cxx,NO_VALID
TestGL2PSExporterRasterExclusion.cxx
TestGL2PSExporterVector.cxx
TestGL2PSExporterVolumeRaster.cxx
TestGL2PSExporterVector.cxx,NO_VALID
TestGL2PSExporterVolumeRaster.cxx,NO_VALID
TestGL2PSTextActor3D.cxx
TestStackedPlotGL2PS.cxx
)
......@@ -24,7 +24,8 @@ vtk_test_cxx_executable(${vtk-module}CxxTests RENDERING_FACTORY)
if(GL2PSTests)
set(TestGL2PSExporterVolumeRasterError 50)
foreach(test ${GL2PSTests})
get_filename_component(TName ${test} NAME_WE)
string(REGEX REPLACE ",.*" "" testsrc "${test}")
get_filename_component(TName ${testsrc} NAME_WE)
add_test(NAME ${vtk-module}Cxx-${TName}-RasterizePNG
COMMAND ${CMAKE_COMMAND}
-DPSFILE=${VTK_TEST_OUTPUT_DIR}/${TName}.ps
......
vtk_add_test_cxx(IO
vtk_add_test_cxx(NO_VALID
TestFFMPEGWriter.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests)
......@@ -3,11 +3,11 @@ if(VTK_DATA_ROOT)
vtk_add_test_cxx(IO
TestProStarReader.cxx
TestTecplotReader.cxx
TestAMRReadWrite.cxx
TestAMRReadWrite.cxx,NO_VALID
)
endif()
vtk_add_test_cxx(IO
vtk_add_test_cxx(NO_VALID
TestSimplePointsReaderWriter.cxx
)
......
vtk_add_test_python(ParticleReader.py IO)
vtk_add_test_python(Plot3D IO)
vtk_add_test_python(Plot3D NO_VALID)
vtk_add_test_python(Plot3DScalars.py IO)
vtk_add_test_python(Plot3DVectors.py IO)
vtk_add_test_python(TestAVSucdReader.py IO)
......
if(VTK_DATA_ROOT)
vtk_add_test_cxx(Hybrid
vtk_add_test_cxx(NO_VALID
TestVRMLNormals.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests)
......
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