INCLUDE(tests.set)
SET(COMPONENT_NAME SHAPER)
-SET(SALOME_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/salome_test_driver.py")
+SET(PYTHON_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/python_test_driver.py")
SET(TIMEOUT 300)
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} ${tfile}.py)
+ ADD_TEST(${TEST_NAME} python ${PYTHON_TEST_DRIVER} ${TIMEOUT} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}")
ENDFOREACH()
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+import salome
+salome.standalone()
+salome.salome_init(1)
+
from SketchAPI import *
from salome.shaper import model
from ModelAPI import *
model.end()
# check what is exported to GEOM
-import salome
from salome.geom import geomBuilder
import os
import tempfile
-salome.salome_init(1)
aComp = salome.myStudy.FindComponent("GEOM")
iterator = salome.myStudy.NewChildIterator(aComp)
aComponents = []
import sys
import salome
+salome.standalone()
salome.salome_init()
import salome_notebook
###
from salome.shaper import model
+import salome
+salome.standalone()
+salome.salome_init(1)
+
model.begin()
partSet = model.moduleDocument()
Part_1 = model.addPart(partSet)
import os
import tempfile
-salome.salome_init(1)
aComp = salome.myStudy.FindComponent("GEOM")
iterator = salome.myStudy.NewChildIterator(aComp)
aComponents = []
import sys
import salome
+salome.standalone()
salome.salome_init()
###
### SHAPER component
#=========================================================================
import salome
+salome.standalone()
import os
import math
import salome
from salome.shaper import model
-from salome.geom import geomBuilder
-
import os
import tempfile
+salome.standalone()
+from salome.geom import geomBuilder
salome.salome_init(1)
geompy = geomBuilder.New()
import sys
import salome
+salome.standalone()
salome.salome_init()
theStudy = salome.myStudy
from ModelAPI import *
from salome.shaper import model
-from salome.geom import geomBuilder
import os
import tempfile
+salome.standalone()
+from salome.geom import geomBuilder
salome.salome_init(1)
geompy = geomBuilder.New()
from SketchAPI import *
from salome.shaper import model
-from salome.geom import geomBuilder
import os
import tempfile
+salome.standalone()
+from salome.geom import geomBuilder
salome.salome_init(1)
geompy = geomBuilder.New()
import salome
from salome.shaper import model
-from salome.geom import geomBuilder
import os
import tempfile
+salome.standalone()
+from salome.geom import geomBuilder
salome.salome_init(1)
geompy = geomBuilder.New()
__updated__ = "2015-05-22"
+salome.standalone()
salome.salome_init(1)
#=========================================================================
from salome.shaper import model
import salome
+salome.standalone()
salome.salome_init(1)
data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")