-source ../exec.sh
-make
-python components.py
+../exec.sh make
+../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
+appli/salome killall
-source ../exec.sh
-make
-python components.py
+../exec.sh make
+../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
-source ../exec.sh
-python components.py
-make
+../exec.sh python components.py
+../exec.sh make
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
-source ../exec.sh
-make
-python components.py
+../exec.sh make
+../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
-source ../exec.sh
-python components.py
-make
+../exec.sh python components.py
+../exec.sh make
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
../exec.sh python components.py
# test
+LD_LIBRARY_PATH=`pwd`/../mpi1/mpilib/lib/ appli/salome -t
LD_LIBRARY_PATH=`pwd`/../mpi1/mpilib/lib/ appli/salome shell ../test_compo.py
-
+appli/salome killall
../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall
import sys
import imp
-appli_dir = "appli"
-sys.path[:0] = [os.path.join(appli_dir, "bin", "salome", "appliskel")]
-salome_module = imp.load_source("SALOME", os.path.join(appli_dir, "salome"))
class TestCompo(unittest.TestCase):
def setUp(self):
- #start salome and connect to it
- try:
- salome_module.main(["start", "-t"])
- except SystemExit as e:
- pass
- import runSession
- runSession.configureSession()
- import setenv
- setenv.main(True)
-
# creat study and load catalogs
import SALOMERuntime
SALOMERuntime.RuntimeSALOME_setRuntime()
self.assertEqual(p.getEffectiveState(), pilot.DONE)
def tearDown(self):
- try:
- salome_module.main(["killall"])
- except SystemExit as e:
pass
if __name__ == '__main__':
../exec.sh python components.py
# test
+appli/salome -t
appli/salome shell ../test_compo.py
-
+appli/salome killall