]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
[tuleap26358] : non regression test
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 17 Sep 2021 12:23:45 +0000 (14:23 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 17 Sep 2021 12:23:45 +0000 (14:23 +0200)
doc/salome/examples/CMakeLists.txt
doc/salome/examples/ssl_hdf5_symbols_conflicts.py [new file with mode: 0644]
doc/salome/examples/tests.set

index 7ecb2db4a430404664a3edd9bada1cc8d8cdb8d4..df54d5a0840a7e5017a315da81de31a3ba766d8a 100644 (file)
@@ -42,6 +42,7 @@ SALOME_INSTALL_SCRIPTS("${EXAMPLES_TESTS}" ${SALOME_INSTALL_DOC}/examples/SMESH)
 
 SET(TEST_INSTALL_DIRECTORY ${SALOME_INSTALL_SCRIPT_SCRIPTS}/test)
 INSTALL(FILES ${GOOD_TESTS} ${BAD_TESTS} ${SESSION_FREE_TESTS} DESTINATION ${TEST_INSTALL_DIRECTORY})
+INSTALL(FILES Mesh_tri.med DESTINATION ${TEST_INSTALL_DIRECTORY})
 
 INSTALL(FILES CTestTestfileInstall.cmake
         DESTINATION ${TEST_INSTALL_DIRECTORY}
diff --git a/doc/salome/examples/ssl_hdf5_symbols_conflicts.py b/doc/salome/examples/ssl_hdf5_symbols_conflicts.py
new file mode 100644 (file)
index 0000000..c888638
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+
+"""
+tuleap26358 : Non regression test pointing to an incompatibiliy between hdf5 symbols in CGNS and hdf5 symbols
+in hdf5 library.
+"""
+
+import salome
+salome.standalone()
+salome.salome_init()
+import  SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+
+smesh = smeshBuilder.New()
+
+inputMED="Mesh_tri.med"
+
+([Mesh_tri_1], status) = smesh.CreateMeshesFromMED(inputMED)
+import SMESH
+if status != SMESH.DRS_OK:
+    raise RuntimeError("Test failed")
index ec4a639a1895ffb0cc8f2683adf44eeb37ce9c97..f3ae67d3a2ba18601fc339270958024397eacbad 100644 (file)
@@ -199,6 +199,7 @@ set(SESSION_FREE_TESTS
   basic_shaper_smesh_without_session.py
   shaper_smesh_groups_without_session.py
   basic_smesh_output_with_mc_field.py
+  ssl_hdf5_symbols_conflicts.py
 )
 
 SET(EXAMPLES_TESTS ${BAD_TESTS} ${GOOD_TESTS} ${SESSION_FREE_TESTS} testme.py)