ViennaPS 4.1.0__cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ViennaPS might be problematic. Click here for more details.
- viennaps/__init__.py +126 -0
- viennaps/__init__.pyi +241 -0
- viennaps/_core/__init__.pyi +1154 -0
- viennaps/_core/constants.pyi +46 -0
- viennaps/_core/gpu.pyi +74 -0
- viennaps/_core/util.pyi +13 -0
- viennaps/_core.cpython-312-x86_64-linux-gnu.so +0 -0
- viennaps/d2/__init__.pyi +1505 -0
- viennaps/d2/gpu.pyi +90 -0
- viennaps/d3/__init__.pyi +1510 -0
- viennaps/d3/gpu.pyi +90 -0
- viennaps-4.1.0.dist-info/METADATA +314 -0
- viennaps-4.1.0.dist-info/RECORD +351 -0
- viennaps-4.1.0.dist-info/WHEEL +6 -0
- viennaps-4.1.0.dist-info/licenses/LICENSE +19 -0
- viennaps.libs/cmake/vtk-9.3/FindCGNS.cmake +48 -0
- viennaps.libs/cmake/vtk-9.3/FindDirectX.cmake +18 -0
- viennaps.libs/cmake/vtk-9.3/FindEXPAT.cmake +85 -0
- viennaps.libs/cmake/vtk-9.3/FindEigen3.cmake +33 -0
- viennaps.libs/cmake/vtk-9.3/FindExprTk.cmake +58 -0
- viennaps.libs/cmake/vtk-9.3/FindFFMPEG.cmake +195 -0
- viennaps.libs/cmake/vtk-9.3/FindFontConfig.cmake +30 -0
- viennaps.libs/cmake/vtk-9.3/FindFreetype.cmake +282 -0
- viennaps.libs/cmake/vtk-9.3/FindGL2PS.cmake +38 -0
- viennaps.libs/cmake/vtk-9.3/FindGLEW.cmake +28 -0
- viennaps.libs/cmake/vtk-9.3/FindJOGL.cmake +64 -0
- viennaps.libs/cmake/vtk-9.3/FindJsonCpp.cmake +44 -0
- viennaps.libs/cmake/vtk-9.3/FindLZ4.cmake +38 -0
- viennaps.libs/cmake/vtk-9.3/FindLZMA.cmake +41 -0
- viennaps.libs/cmake/vtk-9.3/FindLibHaru.cmake +87 -0
- viennaps.libs/cmake/vtk-9.3/FindLibPROJ.cmake +67 -0
- viennaps.libs/cmake/vtk-9.3/FindLibXml2.cmake +109 -0
- viennaps.libs/cmake/vtk-9.3/FindMEMKIND.cmake +58 -0
- viennaps.libs/cmake/vtk-9.3/FindMySQL.cmake +112 -0
- viennaps.libs/cmake/vtk-9.3/FindNetCDF.cmake +131 -0
- viennaps.libs/cmake/vtk-9.3/FindODBC.cmake +79 -0
- viennaps.libs/cmake/vtk-9.3/FindOGG.cmake +26 -0
- viennaps.libs/cmake/vtk-9.3/FindOSMesa.cmake +56 -0
- viennaps.libs/cmake/vtk-9.3/FindOpenSlide.cmake +40 -0
- viennaps.libs/cmake/vtk-9.3/FindOpenVR.cmake +61 -0
- viennaps.libs/cmake/vtk-9.3/FindOpenXR.cmake +64 -0
- viennaps.libs/cmake/vtk-9.3/FindOpenXRRemoting.cmake +52 -0
- viennaps.libs/cmake/vtk-9.3/FindPEGTL.cmake +50 -0
- viennaps.libs/cmake/vtk-9.3/FindTBB.cmake +444 -0
- viennaps.libs/cmake/vtk-9.3/FindTHEORA.cmake +82 -0
- viennaps.libs/cmake/vtk-9.3/Finddouble-conversion.cmake +29 -0
- viennaps.libs/cmake/vtk-9.3/Findmpi4py.cmake +36 -0
- viennaps.libs/cmake/vtk-9.3/Findutf8cpp.cmake +19 -0
- viennaps.libs/cmake/vtk-9.3/FindzSpace.cmake +93 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.13/FindZLIB.cmake +146 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.16/FindPostgreSQL.cmake +281 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.19/FindJPEG.cmake +133 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.19/FindLibArchive.cmake +73 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.19/FindSQLite3.cmake +65 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.19/FindX11.cmake +875 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.20/FindGDAL.cmake +196 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.22/FindMPI/fortranparam_mpi.f90.in +4 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.22/FindMPI/libver_mpi.c +20 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.22/FindMPI/libver_mpi.f90.in +7 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.22/FindMPI/mpiver.f90.in +10 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.22/FindMPI/test_mpi.c +38 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.22/FindMPI/test_mpi.f90.in +6 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.22/FindMPI.cmake +1907 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.23/FindPython/Support.cmake +3424 -0
- viennaps.libs/cmake/vtk-9.3/patches/3.23/FindPython3.cmake +495 -0
- viennaps.libs/cmake/vtk-9.3/patches/99/FindHDF5.cmake +1191 -0
- viennaps.libs/cmake/vtk-9.3/patches/99/FindOpenGL.cmake +750 -0
- viennaps.libs/cmake/vtk-9.3/vtk-config-version.cmake +43 -0
- viennaps.libs/cmake/vtk-9.3/vtk-config.cmake +380 -0
- viennaps.libs/cmake/vtk-9.3/vtk-find-package-helpers.cmake +0 -0
- viennaps.libs/cmake/vtk-9.3/vtk-prefix.cmake +4 -0
- viennaps.libs/cmake/vtk-9.3/vtk-use-file-compat.cmake +1 -0
- viennaps.libs/cmake/vtk-9.3/vtk-use-file-deprecated.cmake +2 -0
- viennaps.libs/cmake/vtk-9.3/vtk-use-file-error.cmake +4 -0
- viennaps.libs/cmake/vtk-9.3/vtkCMakeBackports.cmake +13 -0
- viennaps.libs/cmake/vtk-9.3/vtkDetectLibraryType.cmake +136 -0
- viennaps.libs/cmake/vtk-9.3/vtkEncodeString.cmake +276 -0
- viennaps.libs/cmake/vtk-9.3/vtkHashSource.cmake +96 -0
- viennaps.libs/cmake/vtk-9.3/vtkModule.cmake +5880 -0
- viennaps.libs/cmake/vtk-9.3/vtkModuleGraphviz.cmake +381 -0
- viennaps.libs/cmake/vtk-9.3/vtkModuleJson.cmake +228 -0
- viennaps.libs/cmake/vtk-9.3/vtkModuleTesting.cmake +825 -0
- viennaps.libs/cmake/vtk-9.3/vtkModuleWrapJava.cmake +469 -0
- viennaps.libs/cmake/vtk-9.3/vtkModuleWrapPython.cmake +1333 -0
- viennaps.libs/cmake/vtk-9.3/vtkObjectFactory.cmake +182 -0
- viennaps.libs/cmake/vtk-9.3/vtkObjectFactory.cxx.in +54 -0
- viennaps.libs/cmake/vtk-9.3/vtkObjectFactory.h.in +34 -0
- viennaps.libs/cmake/vtk-9.3/vtkTestingDriver.cmake +12 -0
- viennaps.libs/cmake/vtk-9.3/vtkTestingRenderingDriver.cmake +103 -0
- viennaps.libs/cmake/vtk-9.3/vtkTopologicalSort.cmake +103 -0
- viennaps.libs/cmake_install.cmake +112 -0
- viennaps.libs/common/cmake_install.cmake +54 -0
- viennaps.libs/common/lexers/CMakeFiles/lexers.dir/stringstream.cpp.o +0 -0
- viennaps.libs/common/lexers/CMakeFiles/lexers.dir/tokenstream.cpp.o +0 -0
- viennaps.libs/common/lexers/cmake_install.cmake +44 -0
- viennaps.libs/common/math/CMakeFiles/math.dir/constants.cpp.o +0 -0
- viennaps.libs/common/math/cmake_install.cmake +44 -0
- viennaps.libs/common/simd/CMakeFiles/simd.dir/sse.cpp.o +0 -0
- viennaps.libs/common/simd/cmake_install.cmake +44 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/alloc.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/barrier.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/condition.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/estring.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/filename.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/library.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/mutex.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/regression.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/sysinfo.cpp.o +0 -0
- viennaps.libs/common/sys/CMakeFiles/sys.dir/thread.cpp.o +0 -0
- viennaps.libs/common/sys/cmake_install.cmake +44 -0
- viennaps.libs/common/tasking/CMakeFiles/tasking.dir/taskschedulertbb.cpp.o +0 -0
- viennaps.libs/common/tasking/cmake_install.cmake +44 -0
- viennaps.libs/embree-config-install.cmake +112 -0
- viennaps.libs/embree-config-version.cmake +16 -0
- viennaps.libs/embree-config.cmake +10 -0
- viennaps.libs/embree-vars.csh +32 -0
- viennaps.libs/embree-vars.sh +22 -0
- viennaps.libs/kernels/CMakeFiles/Export/8134e1116f84f309be722733574cba85/embree-targets-release.cmake +19 -0
- viennaps.libs/kernels/CMakeFiles/Export/8134e1116f84f309be722733574cba85/embree-targets.cmake +102 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/builders/primrefgen.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh4_factory.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh8_factory.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_hair.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_hair_mb.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_morton.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_sah.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_sah_mb.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_sah_spatial.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_subdiv.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_twolevel.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_collider.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_intersector1_bvh4.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_intersector_hybrid4_bvh4.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_refit.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_rotate.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/bvh/bvh_statistics.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/acceln.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/accelset.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/alloc.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/device.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/geometry.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/motion_derivative.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/rtcore.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/rtcore_builder.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_curves.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_grid_mesh.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_instance.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_instance_array.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_line_segments.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_points.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_quad_mesh.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_subdiv_mesh.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_triangle_mesh.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_user_geometry.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/scene_verify.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/stat.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/common/state.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_4i.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_4i_mb.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_4v.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_8i.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_8i_mb.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_8v.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/grid_soa.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/instance_array_intersector.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/instance_intersector.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/geometry/primitive4.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/subdiv/bezier_curve.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/subdiv/bspline_curve.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/subdiv/catmullclark_coefficients.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/subdiv/catmullrom_curve.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/subdiv/subdivpatch1base.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/subdiv/subdivpatch1base_eval.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree.dir/subdiv/tessellation_cache.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/builders/primrefgen.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_hair.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_hair_mb.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_morton.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_sah.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_sah_mb.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_sah_spatial.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_subdiv.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_builder_twolevel.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_collider.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_intersector1_bvh4.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_intersector1_bvh8.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_intersector_hybrid4_bvh4.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_intersector_hybrid4_bvh8.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_intersector_hybrid8_bvh4.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_intersector_hybrid8_bvh8.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_refit.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_rotate.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/bvh/bvh_statistics.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_curves.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_grid_mesh.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_instance.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_instance_array.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_line_segments.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_points.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_quad_mesh.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_subdiv_mesh.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_triangle_mesh.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/common/scene_user_geometry.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/curve_intersector_virtual_4i.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/curve_intersector_virtual_4i_mb.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/curve_intersector_virtual_4v.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/curve_intersector_virtual_8i.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/curve_intersector_virtual_8i_mb.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/curve_intersector_virtual_8v.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/grid_soa.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/instance_array_intersector.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/instance_intersector.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/geometry/primitive8.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx.dir/__/__/__/subdiv/subdivpatch1base_eval.cpp.avx.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/builders/primrefgen.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_hair.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_hair_mb.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_morton.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_sah.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_sah_mb.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_sah_spatial.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_subdiv.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_builder_twolevel.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_collider.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_intersector1_bvh4.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_intersector1_bvh8.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_intersector_hybrid4_bvh4.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_intersector_hybrid4_bvh8.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_intersector_hybrid8_bvh4.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_intersector_hybrid8_bvh8.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_refit.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/bvh/bvh_rotate.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_curves.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_grid_mesh.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_instance.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_instance_array.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_line_segments.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_points.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_quad_mesh.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_subdiv_mesh.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_triangle_mesh.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/common/scene_user_geometry.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/curve_intersector_virtual_4i.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/curve_intersector_virtual_4i_mb.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/curve_intersector_virtual_4v.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/curve_intersector_virtual_8i.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/curve_intersector_virtual_8i_mb.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/curve_intersector_virtual_8v.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/grid_soa.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/instance_array_intersector.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/geometry/instance_intersector.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx2.dir/__/__/__/subdiv/subdivpatch1base_eval.cpp.avx2.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder_hair.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder_hair_mb.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder_sah.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder_sah_mb.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder_sah_spatial.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder_subdiv.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_builder_twolevel.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_collider.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector1_bvh4.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector1_bvh8.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector_hybrid16_bvh4.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector_hybrid16_bvh8.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector_hybrid4_bvh4.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector_hybrid4_bvh8.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector_hybrid8_bvh4.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_intersector_hybrid8_bvh8.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/bvh/bvh_refit.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_curves.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_grid_mesh.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_instance.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_instance_array.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_line_segments.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_points.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_quad_mesh.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_subdiv_mesh.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_triangle_mesh.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/common/scene_user_geometry.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/curve_intersector_virtual_4i.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/curve_intersector_virtual_4i_mb.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/curve_intersector_virtual_4v.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/curve_intersector_virtual_8i.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/curve_intersector_virtual_8i_mb.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/curve_intersector_virtual_8v.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/grid_soa.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/instance_array_intersector.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/geometry/instance_intersector.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_avx512.dir/__/__/__/subdiv/subdivpatch1base_eval.cpp.avx512.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/bvh/bvh_intersector1_bvh4.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/bvh/bvh_intersector_hybrid4_bvh4.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/common/scene_subdiv_mesh.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/curve_intersector_virtual_4i.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/curve_intersector_virtual_4i_mb.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/curve_intersector_virtual_4v.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/curve_intersector_virtual_8i.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/curve_intersector_virtual_8i_mb.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/curve_intersector_virtual_8v.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/grid_soa.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/instance_array_intersector.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/geometry/instance_intersector.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/CMakeFiles/embree_sse42.dir/__/__/__/subdiv/subdivpatch1base_eval.cpp.sse42.cpp.o +0 -0
- viennaps.libs/kernels/cmake_install.cmake +90 -0
- viennaps.libs/libembree4.so +0 -0
- viennaps.libs/libembree_avx.a +0 -0
- viennaps.libs/libembree_avx2.a +0 -0
- viennaps.libs/libembree_avx512.a +0 -0
- viennaps.libs/libembree_sse42.a +0 -0
- viennaps.libs/libgomp-a34b3233.so.1.0.0 +0 -0
- viennaps.libs/liblexers.a +0 -0
- viennaps.libs/libmath.a +0 -0
- viennaps.libs/libsimd.a +0 -0
- viennaps.libs/libsys.a +0 -0
- viennaps.libs/libtasking.a +0 -0
- viennaps.libs/libtbb-e23f5a3c.so +0 -0
- viennaps.libs/libtbb.so +0 -0
- viennaps.libs/libvtkCommonComputationalGeometry-9.3.so +0 -0
- viennaps.libs/libvtkCommonCore-9.3.so +0 -0
- viennaps.libs/libvtkCommonDataModel-9.3.so +0 -0
- viennaps.libs/libvtkCommonExecutionModel-9.3.so +0 -0
- viennaps.libs/libvtkCommonMath-9.3.so +0 -0
- viennaps.libs/libvtkCommonMisc-9.3.so +0 -0
- viennaps.libs/libvtkCommonSystem-9.3.so +0 -0
- viennaps.libs/libvtkCommonTransforms-9.3.so +0 -0
- viennaps.libs/libvtkFiltersCore-9.3.so +0 -0
- viennaps.libs/libvtkFiltersGeneral-9.3.so +0 -0
- viennaps.libs/libvtkFiltersGeometry-9.3.so +0 -0
- viennaps.libs/libvtkFiltersVerdict-9.3.so +0 -0
- viennaps.libs/libvtkIOCore-9.3.so +0 -0
- viennaps.libs/libvtkIOXML-9.3.so +0 -0
- viennaps.libs/libvtkIOXMLParser-9.3.so +0 -0
- viennaps.libs/libvtkdoubleconversion-9.3.so +0 -0
- viennaps.libs/libvtkexpat-9.3.so +0 -0
- viennaps.libs/libvtkfmt-9.3.so +0 -0
- viennaps.libs/libvtkkissfft-9.3.so +0 -0
- viennaps.libs/libvtkloguru-9.3.so +0 -0
- viennaps.libs/libvtklz4-9.3.so +0 -0
- viennaps.libs/libvtklzma-9.3.so +0 -0
- viennaps.libs/libvtkpugixml-9.3.so +0 -0
- viennaps.libs/libvtksys-9.3.so +0 -0
- viennaps.libs/libvtkverdict-9.3.so +0 -0
- viennaps.libs/libvtkzlib-9.3.so +0 -0
- viennaps.libs/tests/cmake_install.cmake +44 -0
- viennaps.libs/uninstall.cmake +24 -0
|
@@ -0,0 +1,825 @@
|
|
|
1
|
+
#[==[.rst:
|
|
2
|
+
vtkModuleTesting
|
|
3
|
+
----------------
|
|
4
|
+
|
|
5
|
+
VTK uses the ExternalData_ CMake module to handle the data management for
|
|
6
|
+
its test suite. Test data is only downloaded when a test which requires it is
|
|
7
|
+
enabled and it is cached so that every build does not need to redownload the
|
|
8
|
+
same data.
|
|
9
|
+
|
|
10
|
+
To facilitate this workflow, there are a number of CMake functions available in
|
|
11
|
+
order to indicate that test data is required.
|
|
12
|
+
|
|
13
|
+
.. _ExternalData: https://cmake.org/cmake/help/latest/module/ExternalData.html
|
|
14
|
+
#]==]
|
|
15
|
+
|
|
16
|
+
include(ExternalData)
|
|
17
|
+
get_filename_component(_vtkModuleTesting_dir "${CMAKE_CURRENT_LIST_FILE}" DIRECTORY)
|
|
18
|
+
|
|
19
|
+
#[==[.rst:
|
|
20
|
+
Loading data
|
|
21
|
+
^^^^^^^^^^^^
|
|
22
|
+
.. cmake:command:: vtk_module_test_data
|
|
23
|
+
|
|
24
|
+
Download test data. |module|
|
|
25
|
+
|
|
26
|
+
Data may be downloaded manually using this function:
|
|
27
|
+
|
|
28
|
+
.. code-block:: cmake
|
|
29
|
+
|
|
30
|
+
vtk_module_test_data(<PATHSPEC>...)
|
|
31
|
+
|
|
32
|
+
This will download data inside of the input data directory for the modules
|
|
33
|
+
being built at that time (see the ``TEST_INPUT_DATA_DIRECTORY`` argument of
|
|
34
|
+
``vtk_module_build``).
|
|
35
|
+
|
|
36
|
+
For supported `PATHSPEC` syntax, see the
|
|
37
|
+
associated documentation in ref:`ExternalData`. These
|
|
38
|
+
arguments are already wrapped in the ``DATA{}`` syntax and are assumed to be
|
|
39
|
+
relative paths from the input data directory.
|
|
40
|
+
|
|
41
|
+
#]==]
|
|
42
|
+
function (vtk_module_test_data)
|
|
43
|
+
set(data_args)
|
|
44
|
+
foreach (arg IN LISTS ARGN)
|
|
45
|
+
if (IS_ABSOLUTE "${arg}")
|
|
46
|
+
list(APPEND data_args
|
|
47
|
+
"DATA{${arg}}")
|
|
48
|
+
else ()
|
|
49
|
+
list(APPEND data_args
|
|
50
|
+
"DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/${arg}}")
|
|
51
|
+
endif ()
|
|
52
|
+
endforeach ()
|
|
53
|
+
|
|
54
|
+
ExternalData_Expand_Arguments("${_vtk_build_TEST_DATA_TARGET}" _ ${data_args})
|
|
55
|
+
endfunction ()
|
|
56
|
+
|
|
57
|
+
#[==[.rst:
|
|
58
|
+
Creating test executables
|
|
59
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
60
|
+
|
|
61
|
+
.. cmake:command:: vtk_module_test_executable
|
|
62
|
+
|
|
63
|
+
This function creates an executable from the list of sources passed to it. It
|
|
64
|
+
is automatically linked to the module the tests are intended for as well as any
|
|
65
|
+
declared test dependencies of the module.
|
|
66
|
+
|
|
67
|
+
.. code-block:: cmake
|
|
68
|
+
|
|
69
|
+
vtk_module_test_executable(<NAME> <SOURCE>...)
|
|
70
|
+
|
|
71
|
+
This function is not usually used directly, but instead through the other
|
|
72
|
+
convenience functions.
|
|
73
|
+
#]==]
|
|
74
|
+
function (vtk_module_test_executable name)
|
|
75
|
+
add_executable("${name}" ${ARGN})
|
|
76
|
+
get_property(test_depends GLOBAL
|
|
77
|
+
PROPERTY "_vtk_module_${_vtk_build_test}_test_depends")
|
|
78
|
+
get_property(test_optional_depends GLOBAL
|
|
79
|
+
PROPERTY "_vtk_module_${_vtk_build_test}_test_optional_depends")
|
|
80
|
+
set(optional_depends_flags)
|
|
81
|
+
foreach (test_optional_depend IN LISTS test_optional_depends)
|
|
82
|
+
if (TARGET "${test_optional_depend}")
|
|
83
|
+
list(APPEND test_depends
|
|
84
|
+
"${test_optional_depend}")
|
|
85
|
+
endif ()
|
|
86
|
+
string(REPLACE "::" "_" safe_test_optional_depend "${test_optional_depend}")
|
|
87
|
+
list(APPEND optional_depends_flags
|
|
88
|
+
"VTK_MODULE_ENABLE_${safe_test_optional_depend}=$<TARGET_EXISTS:${test_optional_depend}>")
|
|
89
|
+
endforeach ()
|
|
90
|
+
|
|
91
|
+
if (_vtk_build_UTILITY_TARGET)
|
|
92
|
+
target_link_libraries("${name}"
|
|
93
|
+
PRIVATE
|
|
94
|
+
"${_vtk_build_UTILITY_TARGET}")
|
|
95
|
+
endif ()
|
|
96
|
+
|
|
97
|
+
target_link_libraries("${name}"
|
|
98
|
+
PRIVATE
|
|
99
|
+
"${_vtk_build_test}"
|
|
100
|
+
${test_depends})
|
|
101
|
+
target_compile_definitions("${name}"
|
|
102
|
+
PRIVATE
|
|
103
|
+
${optional_depends_flags})
|
|
104
|
+
|
|
105
|
+
vtk_module_autoinit(
|
|
106
|
+
TARGETS "${name}"
|
|
107
|
+
MODULES "${_vtk_build_test}"
|
|
108
|
+
${test_depends})
|
|
109
|
+
endfunction ()
|
|
110
|
+
|
|
111
|
+
#[==[.rst:
|
|
112
|
+
Test name parsing
|
|
113
|
+
^^^^^^^^^^^^^^^^^
|
|
114
|
+
|
|
115
|
+
Test names default to using the basename of the filename which contains the
|
|
116
|
+
test. Two tests may share the same file by prefixing with a custom name for the
|
|
117
|
+
test and a comma.
|
|
118
|
+
|
|
119
|
+
The two parsed syntaxes are:
|
|
120
|
+
- ``CustomTestName,TestFile``
|
|
121
|
+
- ``TestFile``
|
|
122
|
+
|
|
123
|
+
Note that ``TestFile`` should already have had its extension stripped (usually
|
|
124
|
+
done by ``_vtk_test_parse_args``).
|
|
125
|
+
|
|
126
|
+
In general, the name of a test will be ``<EXENAME>-<TESTNAME>``, however, by
|
|
127
|
+
setting ``vtk_test_prefix``, the test name will instead be
|
|
128
|
+
``<EXENAME>-<PREFIX><TESTNAME>``.
|
|
129
|
+
#]==]
|
|
130
|
+
|
|
131
|
+
#[==[.rst :
|
|
132
|
+
.. cmake:command:: _vtk_test_parse_name
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
This function parses the name from a testspec.|module-internal| The calling scope has
|
|
136
|
+
`test_name`, `test_arg`, and `test_file` variables set in it.
|
|
137
|
+
|
|
138
|
+
.. code-block:: cmake
|
|
139
|
+
|
|
140
|
+
_vtk_test_parse_name(<TESTSPEC>)
|
|
141
|
+
|
|
142
|
+
#]==]
|
|
143
|
+
function (_vtk_test_parse_name name ext)
|
|
144
|
+
if (name AND name MATCHES "^([^,]*),(.*)$")
|
|
145
|
+
set(test_name "${CMAKE_MATCH_1}")
|
|
146
|
+
set(test_file "${CMAKE_MATCH_2}")
|
|
147
|
+
else ()
|
|
148
|
+
# Strip the extension from the test name.
|
|
149
|
+
string(REPLACE ".${ext}" "" test_name "${name}")
|
|
150
|
+
set(test_name "${test_name}")
|
|
151
|
+
set(test_file "${name}")
|
|
152
|
+
endif ()
|
|
153
|
+
|
|
154
|
+
string(REPLACE ".${ext}" "" test_arg "${test_file}")
|
|
155
|
+
|
|
156
|
+
set(test_name "${test_name}" PARENT_SCOPE)
|
|
157
|
+
set(test_file "${test_file}" PARENT_SCOPE)
|
|
158
|
+
set(test_arg "${test_arg}" PARENT_SCOPE)
|
|
159
|
+
endfunction ()
|
|
160
|
+
|
|
161
|
+
#[==[.rst:
|
|
162
|
+
Test function arguments
|
|
163
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
164
|
+
|
|
165
|
+
Each test is specified using one of the two following syntaxes
|
|
166
|
+
|
|
167
|
+
- ``<NAME>.<SOURCE_EXT>``
|
|
168
|
+
- ``<NAME>.<SOURCE_EXT>,<OPTIONS>``
|
|
169
|
+
|
|
170
|
+
Where ``NAME`` is a valid test name. If present, the specified ``OPTIONS`` are only
|
|
171
|
+
for the associated test. The expected extension is specified by the associated
|
|
172
|
+
test function.
|
|
173
|
+
#]==]
|
|
174
|
+
|
|
175
|
+
#[==[.rst:
|
|
176
|
+
|
|
177
|
+
.. cmake:command:: _vtk_test_parse_args
|
|
178
|
+
|
|
179
|
+
|module-internal|
|
|
180
|
+
Given a list of valid "options", this function will parse out a the following
|
|
181
|
+
variables:
|
|
182
|
+
|
|
183
|
+
- ``args``: Unrecognized arguments. These should be interpreted as arguments
|
|
184
|
+
that should be passed on the command line to all tests in this parse group.
|
|
185
|
+
- ``options``: Options specified globally (for all tests in this group).
|
|
186
|
+
- ``names``: A list containing all named tests. These should be parsed by
|
|
187
|
+
``_vtk_test_parse_name``.
|
|
188
|
+
- ``_<NAME>_options``: Options specific to a certain test.
|
|
189
|
+
|
|
190
|
+
.. code-block:: cmake
|
|
191
|
+
|
|
192
|
+
_vtk_test_parse_args(<OPTIONS> <SOURCE_EXT> <ARG>...)
|
|
193
|
+
|
|
194
|
+
In order to be recognized as a source file, the ``SOURCE_EXT`` must be used.
|
|
195
|
+
Without it, all non-option arguments are placed into ``args``. Each test is
|
|
196
|
+
parsed out matching these:
|
|
197
|
+
#]==]
|
|
198
|
+
function (_vtk_test_parse_args options source_ext)
|
|
199
|
+
set(global_options)
|
|
200
|
+
set(names)
|
|
201
|
+
set(args)
|
|
202
|
+
|
|
203
|
+
foreach (arg IN LISTS ARGN)
|
|
204
|
+
set(handled 0)
|
|
205
|
+
foreach (option IN LISTS options)
|
|
206
|
+
if (arg STREQUAL option)
|
|
207
|
+
list(APPEND global_options "${option}")
|
|
208
|
+
set(handled 1)
|
|
209
|
+
break ()
|
|
210
|
+
endif ()
|
|
211
|
+
endforeach ()
|
|
212
|
+
if (handled)
|
|
213
|
+
# Do nothing.
|
|
214
|
+
elseif (source_ext AND arg MATCHES "^([^.]*\\.${source_ext}),?(.*)$")
|
|
215
|
+
set(name "${CMAKE_MATCH_1}")
|
|
216
|
+
string(REPLACE "," ";" "_${name}_options" "${CMAKE_MATCH_2}")
|
|
217
|
+
list(APPEND names "${name}")
|
|
218
|
+
else ()
|
|
219
|
+
list(APPEND args "${arg}")
|
|
220
|
+
endif ()
|
|
221
|
+
endforeach ()
|
|
222
|
+
|
|
223
|
+
foreach (name IN LISTS names)
|
|
224
|
+
set("_${name}_options" "${_${name}_options}"
|
|
225
|
+
PARENT_SCOPE)
|
|
226
|
+
endforeach ()
|
|
227
|
+
set(options "${global_options}"
|
|
228
|
+
PARENT_SCOPE)
|
|
229
|
+
set(names "${names}"
|
|
230
|
+
PARENT_SCOPE)
|
|
231
|
+
set(args "${args}"
|
|
232
|
+
PARENT_SCOPE)
|
|
233
|
+
endfunction ()
|
|
234
|
+
|
|
235
|
+
#[==[.rst:
|
|
236
|
+
.. cmake:command:: _vtk_test_set_options
|
|
237
|
+
|
|
238
|
+
For handling global option settings |module-internal|, this function sets variables in the
|
|
239
|
+
calling scoped named `<PREFIX><OPTION>` to either `0` or `1` if the option is
|
|
240
|
+
present in the remaining argument list.
|
|
241
|
+
|
|
242
|
+
.. code-block:: cmake
|
|
243
|
+
|
|
244
|
+
_vtk_test_set_options(<OPTIONS> <PREFIX> <ARG>...)
|
|
245
|
+
|
|
246
|
+
Additionally, a non-`0` default for a given option may be specified by a
|
|
247
|
+
variable with the same name as the option and specifying a prefix for the
|
|
248
|
+
output variables.
|
|
249
|
+
#]==]
|
|
250
|
+
function (_vtk_test_set_options options prefix)
|
|
251
|
+
foreach (option IN LISTS options)
|
|
252
|
+
set(default 0)
|
|
253
|
+
if (prefix)
|
|
254
|
+
set(default "${${option}}")
|
|
255
|
+
endif ()
|
|
256
|
+
set("${prefix}${option}" "${default}"
|
|
257
|
+
PARENT_SCOPE)
|
|
258
|
+
endforeach ()
|
|
259
|
+
foreach (option IN LISTS ARGN)
|
|
260
|
+
set("${prefix}${option}" 1
|
|
261
|
+
PARENT_SCOPE)
|
|
262
|
+
endforeach ()
|
|
263
|
+
endfunction ()
|
|
264
|
+
|
|
265
|
+
# If set, use the maximum number of processors for tests. Otherwise, just use 1
|
|
266
|
+
# processor by default.
|
|
267
|
+
set(VTK_MPI_NUMPROCS "2" CACHE STRING
|
|
268
|
+
"Number of processors available to run parallel tests.")
|
|
269
|
+
# Hide the variable if we don't have `MPIEXEC_EXECUTABLE` anyways.
|
|
270
|
+
if (MPIEXEC_EXECUTABLE)
|
|
271
|
+
set(_vtk_mpi_max_numprocs_type STRING)
|
|
272
|
+
else ()
|
|
273
|
+
set(_vtk_mpi_max_numprocs_type INTERNAL)
|
|
274
|
+
endif ()
|
|
275
|
+
set_property(CACHE VTK_MPI_NUMPROCS
|
|
276
|
+
PROPERTY
|
|
277
|
+
TYPE "${_vtk_mpi_max_numprocs_type}")
|
|
278
|
+
|
|
279
|
+
#[==[.rst:
|
|
280
|
+
C++ tests
|
|
281
|
+
^^^^^^^^^
|
|
282
|
+
|
|
283
|
+
.. cmake:command:: vtk_add_test_cxx
|
|
284
|
+
|
|
285
|
+
This function declares C++ tests |module|. Source files are required to use the `cxx`
|
|
286
|
+
extension.
|
|
287
|
+
|
|
288
|
+
.. code-block:: cmake
|
|
289
|
+
|
|
290
|
+
vtk_add_test_cxx(<EXENAME> <VARNAME> <ARG>...)
|
|
291
|
+
|
|
292
|
+
Each argument should be either an option, a test specification, or it is passed
|
|
293
|
+
as flags to all tests declared in the group. The list of tests is set in the
|
|
294
|
+
``<VARNAME>`` variable in the calling scope.
|
|
295
|
+
|
|
296
|
+
Options:
|
|
297
|
+
|
|
298
|
+
- ``NO_DATA``: The test does not need to know the test input data directory. If
|
|
299
|
+
it does, it is passed on the command line via the ``-D`` flag.
|
|
300
|
+
- ``NO_VALID``: The test does not have a valid baseline image. If it does, the
|
|
301
|
+
baseline is assumed to be in ``../Data/Baseline/<NAME>.png`` relative to the
|
|
302
|
+
current source directory. If alternate baseline images are required,
|
|
303
|
+
``<NAME>`` may be suffixed by ``_1``, ``_2``, etc. The valid image is passed via
|
|
304
|
+
the ``-V`` flag.
|
|
305
|
+
- ``NO_OUTPUT``: The test does not need to write out any data to the
|
|
306
|
+
filesystem. If it does, a directory which may be written to is passed via
|
|
307
|
+
the ``-T`` flag.
|
|
308
|
+
|
|
309
|
+
Additional flags may be passed to tests using the ``${_vtk_build_test}_ARGS``
|
|
310
|
+
variable or the ``<NAME>_ARGS`` variable.
|
|
311
|
+
#]==]
|
|
312
|
+
function (vtk_add_test_cxx exename _tests)
|
|
313
|
+
set(cxx_options
|
|
314
|
+
NO_DATA
|
|
315
|
+
NO_VALID
|
|
316
|
+
NO_OUTPUT)
|
|
317
|
+
_vtk_test_parse_args("${cxx_options}" "cxx" ${ARGN})
|
|
318
|
+
_vtk_test_set_options("${cxx_options}" "" ${options})
|
|
319
|
+
|
|
320
|
+
set(_vtk_fail_regex
|
|
321
|
+
# vtkLogger
|
|
322
|
+
"(\n|^)ERROR: "
|
|
323
|
+
"ERR\\|"
|
|
324
|
+
# vtkDebugLeaks
|
|
325
|
+
"instance(s)? still around"
|
|
326
|
+
# vtkTesting
|
|
327
|
+
"Failed Image Test"
|
|
328
|
+
"DartMeasurement name=.ImageNotFound")
|
|
329
|
+
|
|
330
|
+
set(_vtk_skip_regex
|
|
331
|
+
# Insufficient graphics resources.
|
|
332
|
+
"Attempt to use a texture buffer exceeding your hardware's limits")
|
|
333
|
+
|
|
334
|
+
foreach (name IN LISTS names)
|
|
335
|
+
_vtk_test_set_options("${cxx_options}" "local_" ${_${name}_options})
|
|
336
|
+
_vtk_test_parse_name("${name}" "cxx")
|
|
337
|
+
|
|
338
|
+
set(_D "")
|
|
339
|
+
if (NOT local_NO_DATA)
|
|
340
|
+
set(_D -D "${_vtk_build_TEST_OUTPUT_DATA_DIRECTORY}")
|
|
341
|
+
endif ()
|
|
342
|
+
|
|
343
|
+
set(_T "")
|
|
344
|
+
if (NOT local_NO_OUTPUT)
|
|
345
|
+
set(_T -T "${_vtk_build_TEST_OUTPUT_DIRECTORY}")
|
|
346
|
+
endif ()
|
|
347
|
+
|
|
348
|
+
set(_V "")
|
|
349
|
+
if (NOT local_NO_VALID)
|
|
350
|
+
set(_V -V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/${test_name}.png,:}")
|
|
351
|
+
endif ()
|
|
352
|
+
|
|
353
|
+
if (VTK_USE_MPI AND
|
|
354
|
+
VTK_SERIAL_TESTS_USE_MPIEXEC)
|
|
355
|
+
set(_vtk_test_cxx_pre_args
|
|
356
|
+
"${MPIEXEC_EXECUTABLE}"
|
|
357
|
+
"${MPIEXEC_NUMPROC_FLAG}" "1"
|
|
358
|
+
${MPIEXEC_PREFLAGS})
|
|
359
|
+
endif()
|
|
360
|
+
|
|
361
|
+
ExternalData_add_test("${_vtk_build_TEST_DATA_TARGET}"
|
|
362
|
+
NAME "${_vtk_build_test}Cxx-${vtk_test_prefix}${test_name}"
|
|
363
|
+
COMMAND "${_vtk_test_cxx_pre_args}" "$<TARGET_FILE:${exename}>"
|
|
364
|
+
"${test_arg}"
|
|
365
|
+
${args}
|
|
366
|
+
${${_vtk_build_test}_ARGS}
|
|
367
|
+
${${test_name}_ARGS}
|
|
368
|
+
${_D} ${_T} ${_V})
|
|
369
|
+
set_tests_properties("${_vtk_build_test}Cxx-${vtk_test_prefix}${test_name}"
|
|
370
|
+
PROPERTIES
|
|
371
|
+
LABELS "${_vtk_build_test_labels}"
|
|
372
|
+
FAIL_REGULAR_EXPRESSION "${_vtk_fail_regex}"
|
|
373
|
+
SKIP_REGULAR_EXPRESSION "${_vtk_skip_regex}"
|
|
374
|
+
# This must match VTK_SKIP_RETURN_CODE in vtkTesting.h
|
|
375
|
+
SKIP_RETURN_CODE 125
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
if (_vtk_testing_ld_preload)
|
|
379
|
+
set_property(TEST "${_vtk_build_test}Cxx-${vtk_test_prefix}${test_name}" APPEND
|
|
380
|
+
PROPERTY
|
|
381
|
+
ENVIRONMENT "LD_PRELOAD=${_vtk_testing_ld_preload}")
|
|
382
|
+
endif ()
|
|
383
|
+
|
|
384
|
+
list(APPEND ${_tests} "${test_file}")
|
|
385
|
+
endforeach ()
|
|
386
|
+
|
|
387
|
+
set("${_tests}" ${${_tests}} PARENT_SCOPE)
|
|
388
|
+
endfunction ()
|
|
389
|
+
|
|
390
|
+
#[==[.rst:
|
|
391
|
+
MPI tests
|
|
392
|
+
"""""""""
|
|
393
|
+
|
|
394
|
+
.. cmake:command:: vtk_add_test_mpi
|
|
395
|
+
|
|
396
|
+
This function declares C++ tests which should be run under an MPI environment. |module|
|
|
397
|
+
Source files are required to use the `cxx` extension.
|
|
398
|
+
|
|
399
|
+
.. code-block:: cmake
|
|
400
|
+
|
|
401
|
+
vtk_add_test_mpi(<EXENAME> <VARNAME> <ARG>...)
|
|
402
|
+
|
|
403
|
+
Each argument should be either an option, a test specification, or it is passed
|
|
404
|
+
as flags to all tests declared in the group. The list of tests is set in the
|
|
405
|
+
``<VARNAME>`` variable in the calling scope.
|
|
406
|
+
|
|
407
|
+
Options:
|
|
408
|
+
|
|
409
|
+
- ``TESTING_DATA``
|
|
410
|
+
- ``NO_VALID``: The test does not have a valid baseline image. If it does, the
|
|
411
|
+
baseline is assumed to be in ``../Data/Baseline/<NAME>.png`` relative to the
|
|
412
|
+
current source directory. If alternate baseline images are required,
|
|
413
|
+
``<NAME>`` may be suffixed by ``_1``, ``_2``, etc. The valid image is passed via
|
|
414
|
+
the ``-V`` flag.
|
|
415
|
+
|
|
416
|
+
Each test is run using the number of processors specified by the following
|
|
417
|
+
variables (using the first one which is set):
|
|
418
|
+
|
|
419
|
+
- ``<NAME>_NUMPROCS``
|
|
420
|
+
- ``<EXENAME>_NUMPROCS``
|
|
421
|
+
- ``VTK_MPI_NUMPROCS`` (defaults to ``2``)
|
|
422
|
+
|
|
423
|
+
Additional flags may be passed to tests using the ``${_vtk_build_test}_ARGS``
|
|
424
|
+
variable or the `<NAME>_ARGS` variable.
|
|
425
|
+
#]==]
|
|
426
|
+
function (vtk_add_test_mpi exename _tests)
|
|
427
|
+
set(mpi_options
|
|
428
|
+
TESTING_DATA
|
|
429
|
+
NO_VALID
|
|
430
|
+
)
|
|
431
|
+
_vtk_test_parse_args("${mpi_options}" "cxx" ${ARGN})
|
|
432
|
+
_vtk_test_set_options("${mpi_options}" "" ${options})
|
|
433
|
+
|
|
434
|
+
set(_vtk_fail_regex "(\n|^)ERROR: " "ERR\\|" "instance(s)? still around")
|
|
435
|
+
|
|
436
|
+
set(_vtk_skip_regex
|
|
437
|
+
# Insufficient graphics resources.
|
|
438
|
+
"Attempt to use a texture buffer exceeding your hardware's limits")
|
|
439
|
+
|
|
440
|
+
set(default_numprocs ${VTK_MPI_NUMPROCS})
|
|
441
|
+
if (${exename}_NUMPROCS)
|
|
442
|
+
set(default_numprocs ${${exename}_NUMPROCS})
|
|
443
|
+
endif ()
|
|
444
|
+
|
|
445
|
+
foreach (name IN LISTS names)
|
|
446
|
+
_vtk_test_set_options("${mpi_options}" "local_" ${_${name}_options})
|
|
447
|
+
_vtk_test_parse_name(${name} "cxx")
|
|
448
|
+
|
|
449
|
+
set(_D "")
|
|
450
|
+
set(_T "")
|
|
451
|
+
set(_V "")
|
|
452
|
+
if (local_TESTING_DATA)
|
|
453
|
+
set(_D -D "${_vtk_build_TEST_OUTPUT_DATA_DIRECTORY}")
|
|
454
|
+
set(_T -T "${_vtk_build_TEST_OUTPUT_DIRECTORY}")
|
|
455
|
+
set(_V "")
|
|
456
|
+
if (NOT local_NO_VALID)
|
|
457
|
+
set(_V -V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/${test_name}.png,:}")
|
|
458
|
+
endif ()
|
|
459
|
+
endif ()
|
|
460
|
+
|
|
461
|
+
set(numprocs ${default_numprocs})
|
|
462
|
+
if (${test_name}_NUMPROCS)
|
|
463
|
+
set(numprocs "${${test_name}_NUMPROCS}")
|
|
464
|
+
endif ()
|
|
465
|
+
|
|
466
|
+
ExternalData_add_test("${_vtk_build_TEST_DATA_TARGET}"
|
|
467
|
+
NAME "${_vtk_build_test}Cxx-MPI-${vtk_test_prefix}${test_name}"
|
|
468
|
+
COMMAND "${MPIEXEC_EXECUTABLE}"
|
|
469
|
+
"${MPIEXEC_NUMPROC_FLAG}" "${numprocs}"
|
|
470
|
+
${MPIEXEC_PREFLAGS}
|
|
471
|
+
"$<TARGET_FILE:${exename}>"
|
|
472
|
+
"${test_arg}"
|
|
473
|
+
${_D} ${_T} ${_V}
|
|
474
|
+
${args}
|
|
475
|
+
${${_vtk_build_test}_ARGS}
|
|
476
|
+
${${test_name}_ARGS}
|
|
477
|
+
${MPIEXEC_POSTFLAGS})
|
|
478
|
+
set_tests_properties("${_vtk_build_test}Cxx-MPI-${vtk_test_prefix}${test_name}"
|
|
479
|
+
PROPERTIES
|
|
480
|
+
LABELS "${_vtk_build_test_labels}"
|
|
481
|
+
PROCESSORS "${numprocs}"
|
|
482
|
+
FAIL_REGULAR_EXPRESSION "${_vtk_fail_regex}"
|
|
483
|
+
SKIP_REGULAR_EXPRESSION "${_vtk_skip_regex}"
|
|
484
|
+
# This must match VTK_SKIP_RETURN_CODE in vtkTesting.h"
|
|
485
|
+
SKIP_RETURN_CODE 125
|
|
486
|
+
)
|
|
487
|
+
|
|
488
|
+
if (_vtk_testing_ld_preload)
|
|
489
|
+
set_property(TEST "${_vtk_build_test}Cxx-MPI-${vtk_test_prefix}${test_name}" APPEND
|
|
490
|
+
PROPERTY
|
|
491
|
+
ENVIRONMENT "LD_PRELOAD=${_vtk_testing_ld_preload}")
|
|
492
|
+
endif ()
|
|
493
|
+
|
|
494
|
+
set_property(TEST "${_vtk_build_test}Cxx-MPI-${vtk_test_prefix}${test_name}" APPEND
|
|
495
|
+
PROPERTY
|
|
496
|
+
REQUIRED_FILES "$<TARGET_FILE:${exename}>")
|
|
497
|
+
list(APPEND ${_tests} "${test_file}")
|
|
498
|
+
endforeach ()
|
|
499
|
+
|
|
500
|
+
set(${_tests} ${${_tests}} PARENT_SCOPE)
|
|
501
|
+
endfunction ()
|
|
502
|
+
|
|
503
|
+
#[==[.rst:
|
|
504
|
+
|
|
505
|
+
C++ test executable
|
|
506
|
+
^^^^^^^^^^^^^^^^^^^
|
|
507
|
+
|
|
508
|
+
.. cmake:command:: vtk_test_cxx_executable
|
|
509
|
+
|
|
510
|
+
.. code-block:: cmake
|
|
511
|
+
|
|
512
|
+
vtk_test_cxx_executable(<EXENAME> <VARNAME> [RENDERING_FACTORY] [<SRC>...])
|
|
513
|
+
|
|
514
|
+
Creates an executable named ``EXENAME`` which contains the tests listed in the
|
|
515
|
+
variable named in the ``VARNAME`` argument. The ``EXENAME`` must match the
|
|
516
|
+
``EXENAME`` passed to the test declarations when building the list of tests.
|
|
517
|
+
|
|
518
|
+
If ``RENDERING_FACTORY`` is provided, VTK's rendering factories are initialized
|
|
519
|
+
during the test.
|
|
520
|
+
|
|
521
|
+
By default, VTK's rendering tests enable FP exceptions to find floating point
|
|
522
|
+
errors in debug builds. If ``DISABLE_FLOATING_POINT_EXCEPTIONS`` is provided,
|
|
523
|
+
FP exceptions are not enabled for the test. This is useful when testing against
|
|
524
|
+
external libraries to ignore exceptions in third-party code.
|
|
525
|
+
|
|
526
|
+
Any additional arguments are added as additional sources for the executable.
|
|
527
|
+
#]==]
|
|
528
|
+
function (vtk_test_cxx_executable exename _tests)
|
|
529
|
+
set(exe_options
|
|
530
|
+
RENDERING_FACTORY
|
|
531
|
+
DISABLE_FLOATING_POINT_EXCEPTIONS
|
|
532
|
+
)
|
|
533
|
+
_vtk_test_parse_args("${exe_options}" "" ${ARGN})
|
|
534
|
+
_vtk_test_set_options("${exe_options}" "" ${options})
|
|
535
|
+
|
|
536
|
+
if (NOT ${_tests})
|
|
537
|
+
# No tests -> no need for an executable.
|
|
538
|
+
return()
|
|
539
|
+
endif ()
|
|
540
|
+
|
|
541
|
+
if (RENDERING_FACTORY)
|
|
542
|
+
include("${_vtkModuleTesting_dir}/vtkTestingRenderingDriver.cmake")
|
|
543
|
+
set(test_driver vtkTestingObjectFactory.h)
|
|
544
|
+
else ()
|
|
545
|
+
include("${_vtkModuleTesting_dir}/vtkTestingDriver.cmake")
|
|
546
|
+
set(test_driver vtkTestDriver.h)
|
|
547
|
+
endif ()
|
|
548
|
+
|
|
549
|
+
set(extra_sources ${args})
|
|
550
|
+
|
|
551
|
+
create_test_sourcelist(test_sources "${exename}.cxx" ${${_tests}}
|
|
552
|
+
EXTRA_INCLUDE "${test_driver}")
|
|
553
|
+
|
|
554
|
+
if (_vtk_build_test)
|
|
555
|
+
vtk_module_test_executable("${exename}" ${test_sources} ${extra_sources})
|
|
556
|
+
else ()
|
|
557
|
+
message(FATAL_ERROR "_vtk_build_test is not set!")
|
|
558
|
+
endif ()
|
|
559
|
+
endfunction ()
|
|
560
|
+
|
|
561
|
+
#[==[.rst:
|
|
562
|
+
|
|
563
|
+
.. cmake:command:: vtk_test_mpi_executable
|
|
564
|
+
|
|
565
|
+
MPI executables used to have their own test executable function.|module-internal| This is no
|
|
566
|
+
longer necessary and is deprecated. Instead, `vtk_test_cxx_executable` should
|
|
567
|
+
be used instead.
|
|
568
|
+
#]==]
|
|
569
|
+
function (vtk_test_mpi_executable exename _tests)
|
|
570
|
+
message(DEPRECATION
|
|
571
|
+
"The `vtk_test_mpi_executable` function is deprecated; use "
|
|
572
|
+
"`vtk_test_cxx_executable` instead.")
|
|
573
|
+
vtk_test_cxx_executable("${exename}" "${_tests}" ${ARGN})
|
|
574
|
+
endfunction ()
|
|
575
|
+
|
|
576
|
+
#[==[.rst:
|
|
577
|
+
|
|
578
|
+
Python tests
|
|
579
|
+
^^^^^^^^^^^^
|
|
580
|
+
|
|
581
|
+
.. cmake:command:: vtk_add_test_python
|
|
582
|
+
|
|
583
|
+
This function declares Python tests.|module| Test files are required to use the `py`
|
|
584
|
+
extension.
|
|
585
|
+
|
|
586
|
+
.. code-block:: cmake
|
|
587
|
+
|
|
588
|
+
vtk_add_test_python(<EXENAME> <VARNAME> <ARG>...)
|
|
589
|
+
#]==]
|
|
590
|
+
|
|
591
|
+
#[==[.rst:
|
|
592
|
+
If the ``_vtk_testing_python_exe`` variable is not set, the ``vtkpython`` binary is
|
|
593
|
+
used by default. Additional arguments may be passed in this variable as well.
|
|
594
|
+
|
|
595
|
+
If the given Python executable supports VTK's ``--enable-bt`` flag, setting
|
|
596
|
+
``_vtk_testing_python_exe_supports_bt`` to ``1`` is required to enable it.
|
|
597
|
+
#]==]
|
|
598
|
+
|
|
599
|
+
#[==[.rst
|
|
600
|
+
Options:
|
|
601
|
+
|
|
602
|
+
- ``NO_DATA``
|
|
603
|
+
- ``NO_VALID``
|
|
604
|
+
- ``NO_OUTPUT``
|
|
605
|
+
- ``NO_RT``
|
|
606
|
+
- ``JUST_VALID``
|
|
607
|
+
|
|
608
|
+
Each argument should be either an option, a test specification, or it is passed
|
|
609
|
+
as flags to all tests declared in the group. The list of tests is set in the
|
|
610
|
+
``<VARNAME>`` variable in the calling scope.
|
|
611
|
+
|
|
612
|
+
Options:
|
|
613
|
+
|
|
614
|
+
- ``NO_DATA``: The test does not need to know the test input data directory. If
|
|
615
|
+
it does, it is passed on the command line via the ``-D`` flag.
|
|
616
|
+
- ``NO_OUTPUT``: The test does not need to write out any data to the
|
|
617
|
+
filesystem. If it does, a directory which may be written to is passed via
|
|
618
|
+
the ``-T`` flag.
|
|
619
|
+
- ``NO_VALID``: The test does not have a valid baseline image. If it does, the
|
|
620
|
+
baseline is assumed to be in ``../Data/Baseline/<NAME>.png`` relative to the
|
|
621
|
+
current source directory. If alternate baseline images are required,
|
|
622
|
+
``<NAME>`` may be suffixed by ``_1``, ``_2``, etc. The valid image is passed via
|
|
623
|
+
the ``-V`` flag.
|
|
624
|
+
- ``NO_RT``: If ``NO_RT`` is specified, ``-B`` is passed instead of ``-V``, only
|
|
625
|
+
providing a baseline dir, assuming ``NO_VALID`` is not specified.
|
|
626
|
+
- ``DIRECT_DATA`` : If ``DIRECT_DATA`` is specified, the baseline path will be provided
|
|
627
|
+
as is, without the use of ExternalData_add_test.
|
|
628
|
+
- ``JUST_VALID``: Only applies when neither ``NO_VALID`` or ``NO_RT`` are present.
|
|
629
|
+
If it is not specified, the test is run via ``vtkmodules.test.rtImageTest``.
|
|
630
|
+
|
|
631
|
+
Additional flags may be passed to tests using the ``${_vtk_build_test}_ARGS``
|
|
632
|
+
variable or the ``<NAME>_ARGS`` variable.
|
|
633
|
+
#]==]
|
|
634
|
+
function (vtk_add_test_python)
|
|
635
|
+
if (NOT _vtk_testing_python_exe)
|
|
636
|
+
set(_vtk_testing_python_exe "$<TARGET_FILE:VTK::vtkpython>")
|
|
637
|
+
set(_vtk_testing_python_exe_supports_bt 1)
|
|
638
|
+
endif ()
|
|
639
|
+
set(python_options
|
|
640
|
+
NO_DATA
|
|
641
|
+
NO_VALID
|
|
642
|
+
NO_OUTPUT
|
|
643
|
+
NO_RT
|
|
644
|
+
DIRECT_DATA
|
|
645
|
+
JUST_VALID
|
|
646
|
+
)
|
|
647
|
+
_vtk_test_parse_args("${python_options}" "py" ${ARGN})
|
|
648
|
+
_vtk_test_set_options("${python_options}" "" ${options})
|
|
649
|
+
|
|
650
|
+
set(_vtk_fail_regex "(\n|^)ERROR: " "ERR\\|" "instance(s)? still around|DeprecationWarning")
|
|
651
|
+
|
|
652
|
+
set(_vtk_skip_regex
|
|
653
|
+
# Insufficient graphics resources.
|
|
654
|
+
"Attempt to use a texture buffer exceeding your hardware's limits")
|
|
655
|
+
|
|
656
|
+
foreach (name IN LISTS names)
|
|
657
|
+
_vtk_test_set_options("${python_options}" "local_" ${_${name}_options})
|
|
658
|
+
_vtk_test_parse_name(${name} "py")
|
|
659
|
+
|
|
660
|
+
set(_D "")
|
|
661
|
+
if (NOT local_NO_DATA)
|
|
662
|
+
set(_D -D "${_vtk_build_TEST_OUTPUT_DATA_DIRECTORY}")
|
|
663
|
+
endif ()
|
|
664
|
+
|
|
665
|
+
set(rtImageTest "")
|
|
666
|
+
set(_B "")
|
|
667
|
+
set(_V "")
|
|
668
|
+
if (NOT local_NO_VALID)
|
|
669
|
+
if (local_NO_RT)
|
|
670
|
+
if (local_DIRECT_DATA)
|
|
671
|
+
set(_B -B "${CMAKE_CURRENT_SOURCE_DIR}/Data/Baseline/")
|
|
672
|
+
else ()
|
|
673
|
+
set(_B -B "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/,REGEX:${test_name}(-.*)?(_[0-9]+)?.png}")
|
|
674
|
+
endif()
|
|
675
|
+
else ()
|
|
676
|
+
if (local_DIRECT_DATA)
|
|
677
|
+
set(_V -V "${CMAKE_CURRENT_SOURCE_DIR}/Data/Baseline/${test_name}.png")
|
|
678
|
+
else ()
|
|
679
|
+
set(_V -V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/${test_name}.png,:}")
|
|
680
|
+
endif()
|
|
681
|
+
if (NOT local_JUST_VALID)
|
|
682
|
+
set(rtImageTest -m "vtkmodules.test.rtImageTest")
|
|
683
|
+
endif ()
|
|
684
|
+
endif ()
|
|
685
|
+
endif ()
|
|
686
|
+
|
|
687
|
+
set(_T "")
|
|
688
|
+
if (NOT local_NO_OUTPUT)
|
|
689
|
+
set(_T -T "${_vtk_build_TEST_OUTPUT_DIRECTORY}")
|
|
690
|
+
endif ()
|
|
691
|
+
|
|
692
|
+
if (NOT _vtk_build_TEST_FILE_DIRECTORY)
|
|
693
|
+
set(_vtk_build_TEST_FILE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
694
|
+
endif()
|
|
695
|
+
|
|
696
|
+
if (VTK_USE_MPI AND
|
|
697
|
+
VTK_SERIAL_TESTS_USE_MPIEXEC AND
|
|
698
|
+
NOT DEFINED _vtk_test_python_pre_args)
|
|
699
|
+
set(_vtk_test_python_pre_args
|
|
700
|
+
"${MPIEXEC_EXECUTABLE}"
|
|
701
|
+
"${MPIEXEC_NUMPROC_FLAG}" "1"
|
|
702
|
+
${MPIEXEC_PREFLAGS})
|
|
703
|
+
endif()
|
|
704
|
+
set(_vtk_test_python_bt_args)
|
|
705
|
+
if (_vtk_testing_python_exe_supports_bt)
|
|
706
|
+
list(APPEND _vtk_test_python_bt_args --enable-bt)
|
|
707
|
+
endif ()
|
|
708
|
+
set(testArgs NAME "${_vtk_build_test}Python${_vtk_test_python_suffix}-${vtk_test_prefix}${test_name}"
|
|
709
|
+
COMMAND ${_vtk_test_python_pre_args}
|
|
710
|
+
"${_vtk_testing_python_exe}" ${_vtk_test_python_args}
|
|
711
|
+
${_vtk_test_python_bt_args}
|
|
712
|
+
${rtImageTest}
|
|
713
|
+
"${_vtk_build_TEST_FILE_DIRECTORY}/${test_file}"
|
|
714
|
+
${args}
|
|
715
|
+
${${_vtk_build_test}_ARGS}
|
|
716
|
+
${${test_name}_ARGS}
|
|
717
|
+
${_D} ${_B} ${_T} ${_V})
|
|
718
|
+
|
|
719
|
+
if (local_DIRECT_DATA)
|
|
720
|
+
add_test(${testArgs})
|
|
721
|
+
else ()
|
|
722
|
+
ExternalData_add_test("${_vtk_build_TEST_DATA_TARGET}" ${testArgs})
|
|
723
|
+
endif()
|
|
724
|
+
|
|
725
|
+
if (_vtk_testing_ld_preload)
|
|
726
|
+
set_property(TEST "${_vtk_build_test}Python${_vtk_test_python_suffix}-${vtk_test_prefix}${test_name}"
|
|
727
|
+
APPEND
|
|
728
|
+
PROPERTY
|
|
729
|
+
ENVIRONMENT "LD_PRELOAD=${_vtk_testing_ld_preload}")
|
|
730
|
+
endif ()
|
|
731
|
+
|
|
732
|
+
set_tests_properties("${_vtk_build_test}Python${_vtk_test_python_suffix}-${vtk_test_prefix}${test_name}"
|
|
733
|
+
PROPERTIES
|
|
734
|
+
LABELS "${_vtk_build_test_labels}"
|
|
735
|
+
FAIL_REGULAR_EXPRESSION "${_vtk_fail_regex}"
|
|
736
|
+
SKIP_REGULAR_EXPRESSION "${_vtk_skip_regex}"
|
|
737
|
+
# This must match the skip() function in vtk/test/Testing.py"
|
|
738
|
+
SKIP_RETURN_CODE 125
|
|
739
|
+
)
|
|
740
|
+
|
|
741
|
+
if (numprocs)
|
|
742
|
+
set_tests_properties("${_vtk_build_test}Python${_vtk_test_python_suffix}-${vtk_test_prefix}${test_name}"
|
|
743
|
+
PROPERTIES
|
|
744
|
+
PROCESSORS "${numprocs}")
|
|
745
|
+
endif ()
|
|
746
|
+
endforeach ()
|
|
747
|
+
endfunction ()
|
|
748
|
+
|
|
749
|
+
#[==[.rst:
|
|
750
|
+
MPI tests
|
|
751
|
+
"""""""""
|
|
752
|
+
|
|
753
|
+
.. cmake:command:: vtk_add_test_python_mpi
|
|
754
|
+
|
|
755
|
+
A small wrapper around ``vtk_add_test_python`` which adds support for running
|
|
756
|
+
MPI-aware tests written in Python.
|
|
757
|
+
|
|
758
|
+
The ``$<module library name>_NUMPROCS`` variable may be used to use a non-default
|
|
759
|
+
number of processors for a test.
|
|
760
|
+
|
|
761
|
+
This forces running with the ``pvtkpython`` executable.
|
|
762
|
+
#]==]
|
|
763
|
+
function (vtk_add_test_python_mpi)
|
|
764
|
+
set(_vtk_test_python_suffix "-MPI")
|
|
765
|
+
|
|
766
|
+
set(numprocs "${VTK_MPI_NUMPROCS}")
|
|
767
|
+
_vtk_module_get_module_property("${_vtk_build_test}"
|
|
768
|
+
PROPERTY "library_name"
|
|
769
|
+
VARIABLE _vtk_test_python_library_name)
|
|
770
|
+
if (${_vtk_test_python_library_name}_NUMPROCS)
|
|
771
|
+
set(numprocs "${${_vtk_test_python_library_name}_NUMPROCS}")
|
|
772
|
+
endif ()
|
|
773
|
+
|
|
774
|
+
set(_vtk_test_python_pre_args
|
|
775
|
+
"${MPIEXEC_EXECUTABLE}"
|
|
776
|
+
"${MPIEXEC_NUMPROC_FLAG}" "${numprocs}"
|
|
777
|
+
${MPIEXEC_PREFLAGS})
|
|
778
|
+
|
|
779
|
+
if (NOT _vtk_testing_python_exe)
|
|
780
|
+
set(_vtk_testing_python_exe "$<TARGET_FILE:VTK::pvtkpython>")
|
|
781
|
+
set(_vtk_testing_python_exe_supports_bt 1)
|
|
782
|
+
endif ()
|
|
783
|
+
vtk_add_test_python(${ARGN})
|
|
784
|
+
endfunction ()
|
|
785
|
+
|
|
786
|
+
function (vtk_add_test_mangling module)
|
|
787
|
+
if (NOT UNIX)
|
|
788
|
+
return ()
|
|
789
|
+
endif ()
|
|
790
|
+
|
|
791
|
+
cmake_parse_arguments(_vtk_mangling_test "" "" "EXEMPTIONS" ${ARGN})
|
|
792
|
+
|
|
793
|
+
get_property(vtk_abi_namespace_name GLOBAL PROPERTY _vtk_abi_namespace_name)
|
|
794
|
+
if (NOT vtk_abi_namespace_name STREQUAL "")
|
|
795
|
+
_vtk_module_real_target(_vtk_test_target "${module}")
|
|
796
|
+
if (CMAKE_VERSION VERSION_LESS "3.19")
|
|
797
|
+
get_property(target_type TARGET ${_vtk_test_target} PROPERTY TYPE)
|
|
798
|
+
# CMake 3.19 introduced support for regular properties on `INTERFACE`
|
|
799
|
+
# libraries. Before that, it was an error to ask for properties like
|
|
800
|
+
# `SOURCES`. Avoid the error in this case (there aren't any objects
|
|
801
|
+
# anyways, so no need to make any noise).
|
|
802
|
+
if (target_type STREQUAL "INTERFACE_LIBRARY")
|
|
803
|
+
return ()
|
|
804
|
+
endif ()
|
|
805
|
+
endif ()
|
|
806
|
+
get_property(has_sources TARGET ${_vtk_test_target} PROPERTY SOURCES)
|
|
807
|
+
get_property(has_test GLOBAL PROPERTY "${module}_HAS_MANGLING_TEST" SET)
|
|
808
|
+
|
|
809
|
+
if (NOT has_test AND has_sources)
|
|
810
|
+
set_property(GLOBAL PROPERTY "${module}_HAS_MANGLING_TEST" 1)
|
|
811
|
+
add_test(
|
|
812
|
+
NAME "${module}-ManglingTest"
|
|
813
|
+
COMMAND "${Python3_EXECUTABLE}"
|
|
814
|
+
# TODO: What to do when using this from a VTK install?
|
|
815
|
+
"${VTK_SOURCE_DIR}/Testing/Core/CheckSymbolMangling.py"
|
|
816
|
+
"--files"
|
|
817
|
+
"$<TARGET_OBJECTS:${_vtk_test_target}>"
|
|
818
|
+
"--prefix"
|
|
819
|
+
# TODO: This is not included in vtk-config.
|
|
820
|
+
"${vtk_abi_namespace_name}"
|
|
821
|
+
"--exemptions"
|
|
822
|
+
"${_vtk_mangling_test_EXEMPTIONS}")
|
|
823
|
+
endif ()
|
|
824
|
+
endif ()
|
|
825
|
+
endfunction ()
|