mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-03 13:40:34 +05:00
lacncements des 1ers cas-tests
This commit is contained in:
parent
069b583dab
commit
17c79a5fcf
@ -7,39 +7,32 @@ Gérald NICOLAS
|
|||||||
+33.1.78.19.43.52
|
+33.1.78.19.43.52
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__revision__ = "V02.01"
|
__revision__ = "V02.02"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Fichier de diagnostic
|
|
||||||
LOGFILE = os.path.join(tempfile.gettempdir(),"blocFissure.log")
|
|
||||||
if os.path.isfile(LOGFILE):
|
|
||||||
os.remove(LOGFILE)
|
|
||||||
|
|
||||||
# Lancement des cas-tests
|
# Lancement des cas-tests
|
||||||
import salome
|
import salome
|
||||||
salome.standalone()
|
salome.standalone()
|
||||||
salome.salome_init()
|
salome.salome_init()
|
||||||
|
|
||||||
from blocFissure.materielCasTests import genereMateriel
|
from blocFissure.CasTests import blocFissureTest
|
||||||
|
BLOCFISSURE_TEST = blocFissureTest(["cubeAngle", "cubeAngle2", "cubeCoin", "cubeMilieu", "cubeTransverse"])
|
||||||
from blocFissure.CasTests import execution_Cas
|
TEXTE = BLOCFISSURE_TEST.lancement()
|
||||||
|
del BLOCFISSURE_TEST
|
||||||
|
|
||||||
# Diagnostic
|
# Diagnostic
|
||||||
ERREUR = 0
|
ERREUR = 0
|
||||||
if os.path.isfile(LOGFILE):
|
if TEXTE:
|
||||||
with open(LOGFILE, 'r') as FICHIER:
|
for LIGNE in TEXTE:
|
||||||
LES_LIGNES = FICHIER.readlines()
|
|
||||||
for LIGNE in LES_LIGNES:
|
|
||||||
#print (LIGNE[:-1])
|
#print (LIGNE[:-1])
|
||||||
if ( "NOOK" in LIGNE ):
|
if ( "NOOK" in LIGNE ):
|
||||||
MESSAGE_ERREUR = LIGNE
|
MESSAGE_ERREUR = TEXTE
|
||||||
ERREUR = int(LIGNE.split()[-1])
|
ERREUR = int(LIGNE.split()[-1])
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
MESSAGE_ERREUR = "Impossible de trouver le fichier de diagnostic {}".format(LOGFILE)
|
MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests."
|
||||||
ERREUR = -1
|
ERREUR = -1
|
||||||
|
|
||||||
if ERREUR:
|
if ERREUR:
|
||||||
|
@ -46,7 +46,7 @@ SET(BAD_TESTS
|
|||||||
test_smeshplugin_mg_tetra_parallele.py
|
test_smeshplugin_mg_tetra_parallele.py
|
||||||
test_smeshplugins.py
|
test_smeshplugins.py
|
||||||
MGAdaptTests_without_session.py
|
MGAdaptTests_without_session.py
|
||||||
blocFissure_without_session.py
|
blocFissure_01_without_session.py
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(GOOD_TESTS
|
SET(GOOD_TESTS
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#
|
#
|
||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
__revision__ = "V02.01"
|
__revision__ = "V03.01"
|
||||||
|
|
||||||
"""Lancement des cas-tests de blocFissure"""
|
"""Lancement des cas-tests de blocFissure"""
|
||||||
|
|
||||||
@ -533,24 +533,3 @@ if __name__ == "__main__" :
|
|||||||
sys.stdout.write(TEXTE)
|
sys.stdout.write(TEXTE)
|
||||||
|
|
||||||
del BLOCFISSURE_TEST
|
del BLOCFISSURE_TEST
|
||||||
|
|
||||||
#sys.exit(0)
|
|
||||||
|
|
||||||
|
|
||||||
#while True:
|
|
||||||
|
|
||||||
#import sys
|
|
||||||
#print ("arguments = '{}'".format(sys.argv[1:]))
|
|
||||||
|
|
||||||
#L_PROBLEMES, D_AUX = caract_l_problemes()
|
|
||||||
|
|
||||||
#if ( len(L_PROBLEMES) != len(TORUN) ):
|
|
||||||
#TEXTE = "\nNombre de problèmes définis : {}\n".format(len(L_PROBLEMES))
|
|
||||||
#TEXTE += "Longueur de la liste 'TORUN' : {}\n".format(len(TORUN))
|
|
||||||
#TEXTE += "\t==> Incohérence de programmation à corriger dans {}".format(__name__)
|
|
||||||
#print (TEXTE)
|
|
||||||
#break
|
|
||||||
|
|
||||||
#calcul_tout (L_PROBLEMES, D_AUX)
|
|
||||||
|
|
||||||
#break
|
|
||||||
|
Loading…
Reference in New Issue
Block a user