mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 01:30:32 +05:00
bos #26609 Patching tests (Windows)
This commit is contained in:
parent
063116fae2
commit
9900ce4eab
@ -17,6 +17,7 @@ __revision__ = "V1.0"
|
|||||||
ComputeMeshes = True
|
ComputeMeshes = True
|
||||||
|
|
||||||
import salome
|
import salome
|
||||||
|
import platform
|
||||||
|
|
||||||
salome.salome_init_without_session()
|
salome.salome_init_without_session()
|
||||||
theStudy = salome.myStudy
|
theStudy = salome.myStudy
|
||||||
@ -74,23 +75,27 @@ while not ERROR :
|
|||||||
print(TEXTE+": OK")
|
print(TEXTE+": OK")
|
||||||
|
|
||||||
# B.2. Gmsh
|
# B.2. Gmsh
|
||||||
TEXTE = "Gmsh"
|
# GMSH for windows not yet implemented BOS #18709
|
||||||
MESH_2 = smesh.Mesh(BOX)
|
if platform.system() != "Windows" :
|
||||||
smesh.SetName(MESH_2.GetMesh(), "M_"+TEXTE)
|
TEXTE = "Gmsh"
|
||||||
try :
|
MESH_2 = smesh.Mesh(BOX)
|
||||||
GMSH = MESH_2.Tetrahedron(algo=smeshBuilder.GMSH)
|
smesh.SetName(MESH_2.GetMesh(), "M_"+TEXTE)
|
||||||
except :
|
try :
|
||||||
MESSAGE += "\nImpossible d'utiliser "+TEXTE
|
GMSH = MESH_2.Tetrahedron(algo=smeshBuilder.GMSH)
|
||||||
ERROR += 1
|
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 :
|
else :
|
||||||
if ComputeMeshes :
|
print("Skipping B.2 on windows")
|
||||||
smesh.SetName(GMSH.GetAlgorithm(), TEXTE)
|
|
||||||
OK_COMPUTE = MESH_2.Compute()
|
|
||||||
if not OK_COMPUTE :
|
|
||||||
MESSAGE += "\nErreur avec "+TEXTE
|
|
||||||
ERROR += 1
|
|
||||||
else :
|
|
||||||
print(TEXTE+": OK")
|
|
||||||
|
|
||||||
# B.3. MG_CADSurf
|
# B.3. MG_CADSurf
|
||||||
TEXTE = "MG_CADSurf"
|
TEXTE = "MG_CADSurf"
|
||||||
|
@ -43,7 +43,6 @@ SET(BAD_TESTS
|
|||||||
quality_controls_ex22.py
|
quality_controls_ex22.py
|
||||||
viewing_meshes_ex01.py
|
viewing_meshes_ex01.py
|
||||||
radial_prism_3d_algo.py
|
radial_prism_3d_algo.py
|
||||||
test_smeshplugin_mg_tetra_parallele.py
|
|
||||||
test_smeshplugins.py
|
test_smeshplugins.py
|
||||||
MGAdaptTests_without_session.py
|
MGAdaptTests_without_session.py
|
||||||
blocFissure_01_without_session.py
|
blocFissure_01_without_session.py
|
||||||
@ -55,6 +54,12 @@ SET(BAD_TESTS
|
|||||||
blocFissure_07_without_session.py
|
blocFissure_07_without_session.py
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF (NOT WIN32)
|
||||||
|
LIST(APPEND BAD_TESTS
|
||||||
|
test_smeshplugin_mg_tetra_parallele.py
|
||||||
|
)
|
||||||
|
ENDIF(NOT WIN32)
|
||||||
|
|
||||||
SET(GOOD_TESTS
|
SET(GOOD_TESTS
|
||||||
cartesian_algo.py
|
cartesian_algo.py
|
||||||
create_penta_biquad.py
|
create_penta_biquad.py
|
||||||
|
Loading…
Reference in New Issue
Block a user