Salome HOME
Update SQUISH test suite_ISSUES_SALOME/tst_sketch_004
[modules/shaper.git] / salome_run.sh
1 #!/bin/bash -e
2
3 a_dir=$(dirname $0)
4
5 cd ${a_dir}
6
7 if [ "$#" = 1 ]; then
8   export SALOME_PORT="$1"
9 elif [ -z ${SALOME_PORT} ]; then
10   export SALOME_PORT=2900
11 fi
12
13 echo "Run SALOME on port ${SALOME_PORT}"
14
15 source ${a_dir}/env.sh
16 source ${a_dir}/env_salome.sh
17
18 set -x +e
19
20 ${a_dir}/salome_kill.sh
21
22 ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py --port=${SALOME_PORT} -r ./test.squish/shared/testdata/SalomeApp.xml 2>&1 >/dev/null