Commit 94673bd2 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

testing: use the module name in test module cmake code

parent f35e9715
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkAcceleratorsVtkmCxxTests tests
TestVTKMCleanGrid.cxx
TestVTKMClip.cxx
TestVTKMClipWithImplicitFunction.cxx
......@@ -14,6 +14,6 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestVTKMThreshold2.cxx
TestVTKMTriangleMeshPointNormals.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests
vtk_test_cxx_executable(vtkAcceleratorsVtkmCxxTests tests
RENDERING_FACTORY
)
......@@ -36,7 +36,7 @@ set(TestParallelCoordinatesDouble_ARGS
-E 15
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkChartsCoreCxxTests tests
TestContextScene.cxx,NO_DATA,NO_VALID
TestControlPointsItem.cxx,NO_DATA,NO_VALID
TestControlPointsItemEvents.cxx,NO_DATA,NO_VALID
......@@ -101,6 +101,6 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestSurfacePlot.cxx
TestZoomAxis.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests
vtk_test_cxx_executable(vtkChartsCoreCxxTests tests
RENDERING_FACTORY
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonColorCxxTests tests
TestCategoricalColors.cxx,NO_VALID
TestColorSeries.cxx
TestColorSeriesLookupTables.cxx,NO_VALID
TestNamedColors.cxx,NO_VALID
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkCommonColorCxxTests tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonComputationalGeometryCxxTests tests
NO_DATA NO_VALID NO_OUTPUT
UnitTestParametricSpline.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkCommonComputationalGeometryCxxTests tests)
......@@ -77,7 +77,7 @@ set(TestSystemInformation_ARGS ${CMAKE_BINARY_DIR})
# Tell TestXMLFileOutputWindow where to write test file
set(TestXMLFileOutputWindow_ARGS ${CMAKE_BINARY_DIR}/Testing/Temporary/XMLFileOutputWindow.txt)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonCoreCxxTests tests
NO_DATA NO_VALID NO_OUTPUT
UnitTestMath.cxx
TestArrayAPI.cxx
......@@ -141,6 +141,6 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
${data_array_tests}
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests
vtk_test_cxx_executable(vtkCommonCoreCxxTests tests
vtkTestNewVar.cxx
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonDataModelCxxTests tests
NO_DATA NO_VALID NO_OUTPUT
LagrangeHexahedron.cxx
TestAngularPeriodicDataArray.cxx
......@@ -70,7 +70,7 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
UnitTestPlanesIntersection.cxx
UnitTestTriangleIntersection.cxx
)
vtk_add_test_cxx(${vtk-module}CxxTests data_tests
vtk_add_test_cxx(vtkCommonDataModelCxxTests data_tests
TestLagrangeTriangle.cxx
TestLagrangeTetra.cxx
quadraticIntersection.cxx
......@@ -85,12 +85,12 @@ vtk_add_test_cxx(${vtk-module}CxxTests data_tests
# add to the list but don't define a test
list(APPEND data_tests TestPolyhedron2.cxx)
vtk_add_test_cxx(${vtk-module}CxxTests output_tests
vtk_add_test_cxx(vtkCommonDataModelCxxTests output_tests
TestKdTreeRepresentation.cxx,NO_DATA
)
ExternalData_add_test(VTKData
NAME TestPolyhedron2
COMMAND ${vtk-module}CxxTests TestPolyhedron2
COMMAND vtkCommonDataModelCxxTests TestPolyhedron2
-D DATA{../Data/polyhedron_mesh.vtu}
)
set(all_tests
......@@ -99,4 +99,4 @@ set(all_tests
${output_tests}
${custom_tests}
)
vtk_test_cxx_executable(${vtk-module}CxxTests all_tests)
vtk_test_cxx_executable(vtkCommonDataModelCxxTests all_tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonExecutionModelCxxTests tests
NO_DATA NO_VALID
TestCopyAttributeData.cxx
TestImageDataToStructuredGrid.cxx
......@@ -9,4 +9,4 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestTrivialConsumer.cxx
UnitTestSimpleScalarTree.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkCommonExecutionModelCxxTests tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonMathCxxTests tests
NO_DATA NO_VALID NO_OUTPUT
TestAmoebaMinimizer.cxx
TestMatrix3x3.cxx
TestPolynomialSolversUnivariate.cxx
TestQuaternion.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkCommonMathCxxTests tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonMiscCxxTests tests
NO_DATA NO_VALID NO_OUTPUT
TestPolygonBuilder.cxx
TestPolygonBuilder2.cxx
......@@ -8,4 +8,4 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestPolygonBuilder5.cxx
UnitTestFunctionParser.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkCommonMiscCxxTests tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonSystemCxxTests tests
NO_DATA NO_VALID NO_OUTPUT
TestDirectory.cxx
otherTimerLog.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkCommonSystemCxxTests tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkCommonTransformsCxxTests tests
NO_DATA NO_VALID NO_OUTPUT
TestTransform.cxx
TestLandmarkTransform.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkCommonTransformsCxxTests tests)
......@@ -14,7 +14,7 @@ endif()
set(TestVASPAnimationReader_ARGS DATA{../Data/VASP/NPT_Z_ANIMATE.out})
set(TestVASPTessellationReader_ARGS DATA{../Data/VASP/NPT_Z_TESSELLATE.out})
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkDomainsChemistryCxxTests tests
${generator_test}
TestBallAndStick.cxx
TestPDBBallAndStick.cxx
......@@ -39,7 +39,7 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestVDWSpheres.cxx
TestCMLMoleculeReader.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests
vtk_test_cxx_executable(vtkDomainsChemistryCxxTests tests
RENDERING_FACTORY
)
......@@ -48,6 +48,6 @@ vtk_test_cxx_executable(${vtk-module}CxxTests tests
if(NOT VTK_TEST_TIMEOUT_TestPDBBallAndStick)
set(VTK_TEST_TIMEOUT_TestPDBBallAndStick 360)
endif()
set_tests_properties(${vtk-module}Cxx-TestPDBBallAndStick
set_tests_properties(vtkDomainsChemistryCxx-TestPDBBallAndStick
PROPERTIES TIMEOUT ${VTK_TEST_TIMEOUT_TestPDBBallAndStick}
RUN_SERIAL ON)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkDomainsChemistryOpenGL2CxxTests tests
TestPDBBallAndStickShadows.cxx
TestPDBBallAndStickShadowsDOFSSAA.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests
vtk_test_cxx_executable(vtkDomainsChemistryOpenGL2CxxTests tests
RENDERING_FACTORY
)
......@@ -11,6 +11,6 @@ vtk_test_cxx_executable(${vtk-module}CxxTests tests
if(NOT VTK_TEST_TIMEOUT_TestPDBBallAndStickShadows)
set(VTK_TEST_TIMEOUT_TestPDBBallAndStickShadows 360)
endif()
set_tests_properties(${vtk-module}Cxx-TestPDBBallAndStickShadows
set_tests_properties(vtkDomainsChemistryOpenGL2Cxx-TestPDBBallAndStickShadows
PROPERTIES TIMEOUT ${VTK_TEST_TIMEOUT_TestPDBBallAndStickShadows}
RUN_SERIAL ON)
# OpenSlideReader Tests
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkDomainsMicroscopyCxxTests tests
TestOpenSlideReader.cxx
"DATA{${VTK_TEST_INPUT_DIR}/Microscopy/small2.ndpi}"
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkDomainsMicroscopyCxxTests tests
TestOpenSlideReaderPartialTIF,TestOpenSlideReaderPartial.cxx
"DATA{${VTK_TEST_INPUT_DIR}/Microscopy/pathology.tif}"
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests RENDERING_FACTORY)
vtk_test_cxx_executable(vtkDomainsMicroscopyCxxTests tests RENDERING_FACTORY)
......@@ -10,14 +10,14 @@ foreach(test IN LISTS cxx_tests)
${test}.cxx)
endforeach()
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkFiltersAMRCxxTests tests
NO_VALID NO_OUTPUT
${test_files}
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkFiltersAMRCxxTests tests)
foreach(test IN LISTS cxx_tests)
set_tests_properties(${vtk-module}Cxx-${test}
set_tests_properties(vtkFiltersAMRCxx-${test}
PROPERTIES
FAIL_REGULAR_EXPRESSION "Error"
)
......
......@@ -14,7 +14,7 @@ if(VTK_PYTHON_EXE)
${test_files}
)
foreach(test IN LISTS python_tests)
set_tests_properties(${vtk-module}Python-${test}
set_tests_properties(vtkFiltersAMRPython-${test}
PROPERTIES
FAIL_REGULAR_EXPRESSION "Error"
)
......
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkFiltersCoreCxxTests tests
TestAppendArcLength.cxx,NO_VALID
TestAppendFilter.cxx,NO_VALID
TestAppendPolyData.cxx,NO_VALID
......@@ -50,4 +50,4 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
UnitTestMergeFilter.cxx,NO_VALID
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkFiltersCoreCxxTests tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkFiltersExtractionCxxTests tests
TestConvertSelection.cxx,NO_VALID
TestExtractSelection.cxx
TestExtraction.cxx
TestExtractRectilinearGrid.cxx,NO_VALID,NO_DATA
TestExtractTimeSteps.cxx,NO_VALID
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkFiltersExtractionCxxTests tests)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkFiltersFlowPathsCxxTests tests
TestBSPTree.cxx
TestEvenlySpacedStreamlines2D.cxx
TestStreamTracer.cxx,NO_VALID
......@@ -9,7 +9,7 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestLagrangianParticle.cxx,NO_VALID
TestLagrangianParticleTracker.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests
vtk_test_cxx_executable(vtkFiltersFlowPathsCxxTests tests
RENDERING_FACTORY
)
ExternalData_Expand_Arguments(VTKData _
......
......@@ -2,7 +2,7 @@ set(TestDensifyPolyData_ARGS -E 15)
set(TestDataSetGradient_ARGS -E 25)
set(TestDataSetGradientPrecompute_ARGS -E 25)
vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkFiltersGeneralCxxTests tests
ArrayExtractFactoredArray.cxx,NO_VALID
ArrayMatricizeArray.cxx,NO_VALID
ArrayNormalizeMatrixVectors.cxx,NO_VALID
......@@ -42,7 +42,7 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
UnitTestMultiThreshold.cxx,NO_VALID
)
# Tests with data
vtk_add_test_cxx(${vtk-module}CxxTests data_tests
vtk_add_test_cxx(vtkFiltersGeneralCxxTests data_tests
BoxClipPointData.cxx
BoxClipOrientedPointData.cxx
TestDataSetGradient.cxx
......@@ -58,12 +58,12 @@ set(all_tests
${data_tests}
)
vtk_test_cxx_executable(${vtk-module}CxxTests all_tests
vtk_test_cxx_executable(vtkFiltersGeneralCxxTests all_tests
RENDERING_FACTORY)
# On some machines this test takes some extra time
if(NOT VTK_TEST_TIMEOUT_TestYoungsMaterialInterface)
set(VTK_TEST_TIMEOUT_TestYoungsMaterialInterface 300)
endif()
set_tests_properties(${vtk-module}Cxx-TestYoungsMaterialInterface
set_tests_properties(vtkFiltersGeneralCxx-TestYoungsMaterialInterface
PROPERTIES TIMEOUT ${VTK_TEST_TIMEOUT_TestYoungsMaterialInterface})
Supports Markdown
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