Salome HOME
Merge Dev_2.1.0 with PythonAPI branch
[modules/shaper.git] / salome_run.sh
1 #!/bin/bash
2
3 source env.sh
4 source ${TOOLS_DIR}/env_salome.sh
5
6 # kill processes of previous SALOME run
7 if [ -f .salomeport ]; then
8   SALOME_PORT=$(cat .salomeport)
9   ${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT}
10   pkill -f "omniNames -start ${SALOME_PORT}"
11   rm .salomeport
12 fi 
13
14 SALOME_ARGS=""
15 SALOME_ARGS="${SALOME_ARGS} -r ${SOURCES_DIR}/test.squish/shared/testdata/SalomeApp.xml"
16 SALOME_ARGS="${SALOME_ARGS} --ns-port-log=$(pwd)/.salomeport"
17
18 ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py ${SALOME_ARGS} >log_runSalome 2>err_runSalome
19
20 SALOME_PORT=$(cat .salomeport)
21 echo "Kill SALOME on port ${SALOME_PORT}"
22 ${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT}
23 pkill -f "omniNames -start ${SALOME_PORT}"
24