From 63879abd44911e419cdfe602c837c8884f3fbe12 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 17 Sep 2021 14:23:45 +0200 Subject: [PATCH] [tuleap26358] : non regression test --- doc/salome/examples/CMakeLists.txt | 1 + .../examples/ssl_hdf5_symbols_conflicts.py | 21 +++++++++++++++++++ doc/salome/examples/tests.set | 1 + 3 files changed, 23 insertions(+) create mode 100644 doc/salome/examples/ssl_hdf5_symbols_conflicts.py diff --git a/doc/salome/examples/CMakeLists.txt b/doc/salome/examples/CMakeLists.txt index 7ecb2db4a..df54d5a08 100644 --- a/doc/salome/examples/CMakeLists.txt +++ b/doc/salome/examples/CMakeLists.txt @@ -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 index 000000000..c88863890 --- /dev/null +++ b/doc/salome/examples/ssl_hdf5_symbols_conflicts.py @@ -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") diff --git a/doc/salome/examples/tests.set b/doc/salome/examples/tests.set index ec4a639a1..f3ae67d3a 100644 --- a/doc/salome/examples/tests.set +++ b/doc/salome/examples/tests.set @@ -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) -- 2.39.2