X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=salome_run.sh;h=8feb27cac881deaa6b8c23b1fcdf268edc6aeb81;hb=f2709e635f5490138f93c8ed401de6686bcc685f;hp=e4dc6bd9527f5165eb18f7a981026990c7ac6393;hpb=8c37fcd892dbda4a381c3966847c982f28c4ab57;p=modules%2Fshaper.git diff --git a/salome_run.sh b/salome_run.sh index e4dc6bd95..8feb27cac 100755 --- a/salome_run.sh +++ b/salome_run.sh @@ -1,12 +1,28 @@ -#!/bin/sh +#!/bin/bash -export ROOT_DIR=$(pwd)/.. +source env.sh +source ${TOOLS_DIR}/env_salome.sh -source ${ROOT_DIR}/sources/salome_env.sh +${TOOLS_DIR}/solver.sh "$@" -# Correcting path which defined with error -export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH} +# kill processes of previous SALOME run +if [ -f .salomeport ]; then + SALOME_PORT=$(cat .salomeport) + ${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT} + pkill -f "omniNames -start ${SALOME_PORT}" + rm .salomeport +fi -export LightAppConfig=${ROOT_DIR}/install/share/salome/resources/newgeom:${GUI_ROOT_DIR}/share/salome/resources/gui +SALOME_ARGS="" +if [[ "${SALOME_SQUISH_PREFS:-FALSE}" == "TRUE" ]]; then + SALOME_ARGS="${SALOME_ARGS} -r ${SOURCES_DIR}/test.squish/shared/testdata/SalomeApp.xml" +fi +SALOME_ARGS="${SALOME_ARGS} --ns-port-log=$(pwd)/.salomeport" + +${KERNEL_ROOT_DIR}/bin/salome/runSalome.py ${SALOME_ARGS} >log_runSalome 2>err_runSalome + +SALOME_PORT=$(cat .salomeport) +echo "Kill SALOME on port ${SALOME_PORT}" +${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT} +pkill -f "omniNames -start ${SALOME_PORT}" -SUITApp LightApp -style salome --modules=NewGeom --uselicense --noexcepthandling \ No newline at end of file