forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert VTKData test inputs to ExternalData content links
Add to the Testing/Data directory ExternalData content links mirroring the content and layout we use from the VTKData/Data directory. Add a CMake/vtkLegacyData.cmake module, included from CMakeLists.txt and Testing/External/CMakeLists.txt, to call ExternalData_Expand_Arguments for all data directories added from VTKData/Data. This will bulk-fetch all test input data currently used by tests of any module, enabled or not. We can make the DATA{} references more granular later. Add a VTK_TEST_DATA_DIR variable to refer to the directory we tell the ExternalData module to populate the real data files. Replace references to VTK_DATA_ROOT in test command lines (after -D) with references to VTK_TEST_DATA_DIR. Drop the VTK_DATA_ROOT CMake option and stop using the VTKData repository. Remove the TESTING_DATA option from the vtk_add_test_cxx API and remove the VTK_DATA_ROOT option from the vtk_add_test_mpi API since all test input data are now handled through ExternalData and Testing/Data content links. Change-Id: Id02490b76ea2e161b9038188264a4830485039d8
- Loading branch information
Showing
842 changed files
with
1,371 additions
and
788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Make testing data from the legacy VTKData repository available. | ||
# DO NOT ADD NEW DATA HERE!! | ||
# TODO: Reference testing data from each module only as needed. | ||
set(data "DATA{${VTK_TEST_INPUT_DIR}/,REGEX:.*}") | ||
foreach(d | ||
Infovis | ||
Infovis/SQLite | ||
Infovis/XML | ||
Infovis/Images | ||
Infovis/DimacsGraphs | ||
Tango | ||
SemiDisk | ||
GIS | ||
many_blocks | ||
many_blocks/many_blocks | ||
Quadratic | ||
Dave_Karelitz_Small | ||
MetaIO | ||
libtiff | ||
AMR | ||
AMR/HierarchicalBoxDataset.v1.0 | ||
AMR/HierarchicalBoxDataset.v1.1 | ||
AMR/Enzo | ||
AMR/Enzo/DD0010 | ||
UCD2D | ||
ex-blow_5 | ||
chombo3d | ||
foot | ||
chi_field | ||
headsq | ||
Viewpoint | ||
EnSight | ||
) | ||
list(APPEND data "DATA{${VTK_TEST_INPUT_DIR}/${d}/,REGEX:.*}") | ||
endforeach() | ||
ExternalData_Expand_Arguments(VTKData _ ${data}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,16 @@ | ||
if(VTK_PYTHON_EXE) | ||
set(tests) | ||
if(VTK_DATA_ROOT) | ||
# Tests written in Python that require VTKData | ||
# These tests should use vtk.test.Testing. | ||
set(tests | ||
${tests} | ||
TestBarGraph | ||
TestLinePlot | ||
TestStackedPlot | ||
TestLinePlotColors | ||
TestParallelCoordinatesColors | ||
TestScatterPlotColors | ||
# These tests should use vtk.test.Testing. | ||
set(tests | ||
TestBarGraph | ||
TestLinePlot | ||
TestStackedPlot | ||
TestLinePlotColors | ||
TestParallelCoordinatesColors | ||
TestScatterPlotColors | ||
) | ||
else() | ||
# Tests written in Python that do NOT require VTKData | ||
# These tests should use vtk.test.Testing. | ||
set(tests | ||
${tests} | ||
) | ||
endif() | ||
if(tests) | ||
foreach(tfile ${tests}) | ||
vtk_add_test_python(${tfile}.py NO_RT NO_OUTPUT) | ||
endforeach() | ||
endif() | ||
foreach(tfile ${tests}) | ||
vtk_add_test_python(${tfile}.py NO_RT NO_OUTPUT) | ||
endforeach() | ||
else() | ||
message(FATAL_ERROR "No Python tests added!") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
if(VTK_DATA_ROOT) | ||
vtk_add_test_tcl(TestParametricFunctions) | ||
endif() | ||
vtk_add_test_tcl(TestParametricFunctions) | ||
vtk_add_test_tcl(CSpline) | ||
vtk_add_test_tcl(KSpline) | ||
vtk_add_test_tcl(closedSplines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.