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