smesh/test/ssl_hdf5_symbols_conflicts.py

25 lines
584 B
Python
Raw Normal View History

2021-09-17 17:23:45 +05:00
#!/usr/bin/env python
"""
tuleap26358 : Non regression test pointing to an incompatibiliy between hdf5 symbols in CGNS and hdf5 symbols
in hdf5 library.
"""
2022-04-11 18:28:01 +05:00
import inspect
import os
2021-09-17 17:23:45 +05:00
import salome
salome.standalone()
salome.salome_init()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
2022-04-11 18:28:01 +05:00
inputMED = os.path.abspath(os.path.join(os.path.dirname(inspect.getfile(lambda: None)), 'data', 'Mesh_tri.med'))
2021-09-17 17:23:45 +05:00
([Mesh_tri_1], status) = smesh.CreateMeshesFromMED(inputMED)
import SMESH
if status != SMESH.DRS_OK:
raise RuntimeError("Test failed")