Salome HOME
Test de MGAdapt en standalone
authorGérald NICOLAS <gerald.nicolas@edf.fr>
Mon, 15 Feb 2021 15:09:48 +0000 (16:09 +0100)
committerGérald NICOLAS <gerald.nicolas@edf.fr>
Mon, 15 Feb 2021 15:09:48 +0000 (16:09 +0100)
doc/salome/examples/MGAdaptTests.py
doc/salome/examples/tests.set

index e549db9f53118f6827d38786cce896878b785022..f41ac4c04ed8716ff75350659136761eeb737fd5 100755 (executable)
@@ -1,21 +1,27 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-"""Tests des adaptations par MGAdapt en TUI
+"""Tests des adaptations par MGAdapt en standalone
 
 Copyright 2021 EDF
 Gérald NICOLAS
 +33.1.78.19.43.52
 """
 
 
 Copyright 2021 EDF
 Gérald NICOLAS
 +33.1.78.19.43.52
 """
 
-__revision__ = "V04.01"
+__revision__ = "V04.02"
 
 #========================= Les imports - Début ===================================
 
 
 #========================= Les imports - Début ===================================
 
-import os
 import sys
 import sys
-
 import salome
 
 import salome
 
+import os
+salome.standalone()
+salome.salome_init()
+
+l=list(os.environ.keys())
+l.sort()
+print (l)
+
 import SMESH
 from salome.smesh import smeshBuilder
 smesh = smeshBuilder.New()
 import SMESH
 from salome.smesh import smeshBuilder
 smesh = smeshBuilder.New()
@@ -462,6 +468,7 @@ if __name__ == "__main__" :
       sys.stdout.write(MGADAPT_TEST.__doc__+"\n")
       MESSAGE_ERREUR += "\n {} erreur(s)\n".format(ERREUR)
       sys.stderr.write(MESSAGE_ERREUR)
       sys.stdout.write(MGADAPT_TEST.__doc__+"\n")
       MESSAGE_ERREUR += "\n {} erreur(s)\n".format(ERREUR)
       sys.stderr.write(MESSAGE_ERREUR)
+      raise Exception(MESSAGE_ERREUR)
       assert(False)
 
   del MGADAPT_TEST
       assert(False)
 
   del MGADAPT_TEST
index 9b838256048c2ff9d5dcc656c24f3e4c697fe59e..5a9894f00764b55254f0258cff5661394d7a9539 100644 (file)
@@ -183,12 +183,12 @@ SET(GOOD_TESTS
   quad_medial_axis_algo.py
   defining_hypotheses_len_near_vertex.py
   test_polyhedron_per_solid.py
   quad_medial_axis_algo.py
   defining_hypotheses_len_near_vertex.py
   test_polyhedron_per_solid.py
-  MGAdaptTests.py
 )
 
 set(SESSION_FREE_TESTS
   basic_geom_smesh_without_session.py
   basic_shaper_smesh_without_session.py
 )
 
 set(SESSION_FREE_TESTS
   basic_geom_smesh_without_session.py
   basic_shaper_smesh_without_session.py
+  MGAdaptTests.py
 )
 
 SET(EXAMPLES_TESTS ${BAD_TESTS} ${GOOD_TESTS} ${SESSION_FREE_TESTS} testme.py)
 )
 
 SET(EXAMPLES_TESTS ${BAD_TESTS} ${GOOD_TESTS} ${SESSION_FREE_TESTS} testme.py)