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
|
# Tests with data
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/0/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/0.5/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/0.5/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1.5/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1.5/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2.5/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2.5/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/constant/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/constant/polyMesh/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/system/,REGEX:.*}"
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
TestDataObjectIO.cxx,NO_VALID
TestIncrementalOctreePointLocator.cxx,NO_VALID
UnstructuredGridCellGradients.cxx
UnstructuredGridFastGradients.cxx
UnstructuredGridGradients.cxx
TestOBJReaderRelative.cxx,NO_VALID
TestOBJReaderNormalsTCoords.cxx,NO_VALID
TestOpenFOAMReader.cxx
TestProStarReader.cxx
TestTecplotReader.cxx
TestAMRReadWrite.cxx,NO_VALID
TestSimplePointsReaderWriter.cxx,NO_VALID
TestHoudiniPolyDataWriter.cxx,NO_VALID
UnitTestSTLWriter.cxx,NO_VALID
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
TestSTLReaderSinglePatch,TestSTLReader.cxx DATA{${VTK_TEST_INPUT_DIR}/42400-IDGH.stl}
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
TestSTLReaderMultiplePatches,TestSTLReader.cxx DATA{${VTK_TEST_INPUT_DIR}/multiple_patches.stl}
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
TestPTSReader,TestPTSReader.cxx DATA{${VTK_TEST_INPUT_DIR}/samplePTS.pts}
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
TestAVSucdReaderContiguousASCII,TestAVSucdReader.cxx DATA{${VTK_TEST_INPUT_DIR}/cellsnd.ascii.inp}
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
TestAVSucdReaderNonContiguousASCII,TestAVSucdReader.cxx DATA{${VTK_TEST_INPUT_DIR}/cellsnd.noncontiguous.ascii.inp}
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
TestAVSucdReaderBinary,TestAVSucdReader.cxx DATA{${VTK_TEST_INPUT_DIR}/cellsnd.bin.inp}
)
set(_known_little_endian FALSE)
if (DEFINED CMAKE_WORDS_BIGENDIAN)
if (NOT CMAKE_WORDS_BIGENDIAN)
set(_known_little_endian TRUE)
endif()
endif()
if(VTK_USE_LARGE_DATA AND _known_little_endian)
# Tell ExternalData to fetch test input at build time.
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/field/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/turbine/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/MFIXReader/,REGEX:.*}"
)
vtk_add_test_cxx(${vtk-module}CxxTests large_data_tests
TestWindBladeReader.cxx
TestMFIXReader.cxx,NO_VALID
)
list(APPEND tests
${large_data_tests}
)
endif()
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
|