From d069a5dbde5f0ab293af15919ce24ef498116272 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 5 Nov 2021 22:59:26 +0100 Subject: [PATCH] Added python tests for MEDCoupling library --- CDMATH/tests/ressources/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CDMATH/tests/ressources/CMakeLists.txt b/CDMATH/tests/ressources/CMakeLists.txt index ad1b6cf..2c6a2b9 100755 --- a/CDMATH/tests/ressources/CMakeLists.txt +++ b/CDMATH/tests/ressources/CMakeLists.txt @@ -1,5 +1,20 @@ file(COPY ${MED_MESHES} DESTINATION ${CMAKE_BINARY_DIR}/CDMATH/tests/ressources) +file(COPY scripts/mesh_ref_1.typ2 scripts/mesh_tetra_0.typ3 scripts/mesh_tetra_0.msh DESTINATION ${CMAKE_BINARY_DIR}/CDMATH/tests/ressources) + +if (CDMATH_WITH_PYTHON ) + + ADD_TEST(ExampleMEDCoupling_create_weird_mesh ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/weird_mesh.py ) + + ADD_TEST(ExampleMEDCoupling_create_brick_wall ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/2DBrickWall/create_mesh_brickWall.py) + + ADD_TEST(ExampleMEDCoupling_convert_typ2_to_med ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/convert_typ_to_med.py mesh_ref_1.typ2) + + ADD_TEST(ExampleMEDCoupling_convert_typ3_to_med ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/convert_typ_to_med.py mesh_tetra_0.typ3) + + ADD_TEST(ExampleMEDCoupling_convert_msh_to_med ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/convert_gmsh_to_med.py mesh_tetra_0.msh) + +endif (CDMATH_WITH_PYTHON ) install(DIRECTORY ${MED_MESHES} DESTINATION share/meshes) -- 2.39.2