]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Added python tests for MEDCoupling library
authormichael <michael@localhost.localdomain>
Fri, 5 Nov 2021 21:59:26 +0000 (22:59 +0100)
committermichael <michael@localhost.localdomain>
Fri, 5 Nov 2021 21:59:26 +0000 (22:59 +0100)
CDMATH/tests/ressources/CMakeLists.txt

index ad1b6cf6edd817e3f1f5fcb0481d906dc79270b9..2c6a2b997a7d871d8e74d228bbced8ee4219f0ce 100755 (executable)
@@ -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)