]> SALOME platform Git repositories - modules/shaper.git/blob - salome_run.sh
Salome HOME
Prepare a release version 9.1.0RC1
[modules/shaper.git] / salome_run.sh
1 #!/bin/bash
2
3 source env.sh
4
5 ${TOOLS_DIR}/solver.sh "$@"
6
7 # kill processes of previous SALOME run
8 if [ -f .salomeport ]; then
9   SALOME_PORT=$(cat .salomeport)
10   ${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT}
11   pkill -f "omniNames -start ${SALOME_PORT}"
12   rm .salomeport
13 fi 
14
15 SALOME_ARGS=""
16 if [[ "${SALOME_SQUISH_PREFS:-FALSE}" == "TRUE" ]]; then
17   SALOME_ARGS="${SALOME_ARGS} -r ${SOURCES_DIR}/test.squish/shared/testdata/SalomeApp.xml"
18 fi
19 SALOME_ARGS="${SALOME_ARGS} --ns-port-log=$(pwd)/.salomeport"
20
21 ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py ${SALOME_ARGS} >log_runSalome 2>err_runSalome
22
23 #SALOME_PORT=$(cat .salomeport)
24 #echo "Kill SALOME on port ${SALOME_PORT}"
25 #${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT}
26 #pkill -f "omniNames -start ${SALOME_PORT}"
27