bos #26609 Patching tests (Windows)

This commit is contained in:
vsr 2021-11-08 19:41:51 +03:00
parent 063116fae2
commit 9900ce4eab
2 changed files with 27 additions and 17 deletions

View File

@ -17,6 +17,7 @@ __revision__ = "V1.0"
ComputeMeshes = True
import salome
import platform
salome.salome_init_without_session()
theStudy = salome.myStudy
@ -74,23 +75,27 @@ while not ERROR :
print(TEXTE+": OK")
# B.2. Gmsh
TEXTE = "Gmsh"
MESH_2 = smesh.Mesh(BOX)
smesh.SetName(MESH_2.GetMesh(), "M_"+TEXTE)
try :
GMSH = MESH_2.Tetrahedron(algo=smeshBuilder.GMSH)
except :
MESSAGE += "\nImpossible d'utiliser "+TEXTE
ERROR += 1
# GMSH for windows not yet implemented BOS #18709
if platform.system() != "Windows" :
TEXTE = "Gmsh"
MESH_2 = smesh.Mesh(BOX)
smesh.SetName(MESH_2.GetMesh(), "M_"+TEXTE)
try :
GMSH = MESH_2.Tetrahedron(algo=smeshBuilder.GMSH)
except :
MESSAGE += "\nImpossible d'utiliser "+TEXTE
ERROR += 1
else :
if ComputeMeshes :
smesh.SetName(GMSH.GetAlgorithm(), TEXTE)
OK_COMPUTE = MESH_2.Compute()
if not OK_COMPUTE :
MESSAGE += "\nErreur avec "+TEXTE
ERROR += 1
else :
print(TEXTE+": OK")
else :
if ComputeMeshes :
smesh.SetName(GMSH.GetAlgorithm(), TEXTE)
OK_COMPUTE = MESH_2.Compute()
if not OK_COMPUTE :
MESSAGE += "\nErreur avec "+TEXTE
ERROR += 1
else :
print(TEXTE+": OK")
print("Skipping B.2 on windows")
# B.3. MG_CADSurf
TEXTE = "MG_CADSurf"

View File

@ -43,7 +43,6 @@ SET(BAD_TESTS
quality_controls_ex22.py
viewing_meshes_ex01.py
radial_prism_3d_algo.py
test_smeshplugin_mg_tetra_parallele.py
test_smeshplugins.py
MGAdaptTests_without_session.py
blocFissure_01_without_session.py
@ -55,6 +54,12 @@ SET(BAD_TESTS
blocFissure_07_without_session.py
)
IF (NOT WIN32)
LIST(APPEND BAD_TESTS
test_smeshplugin_mg_tetra_parallele.py
)
ENDIF(NOT WIN32)
SET(GOOD_TESTS
cartesian_algo.py
create_penta_biquad.py