From: spo Date: Thu, 20 Aug 2015 09:14:12 +0000 (+0300) Subject: Make stable SALOME tests run X-Git-Tag: V_1.4.0_beta4~313 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a0e84a23452aa1b25b56056ce3e3ca225b806ec;p=modules%2Fshaper.git Make stable SALOME tests run --- diff --git a/env_linux.sh b/env_linux.sh index 69ff2a646..0c8813043 100644 --- a/env_linux.sh +++ b/env_linux.sh @@ -1,11 +1,9 @@ #!/bin/bash -set +x set +u echo "Export SALOME from ${INST_ROOT}..." source ${INST_ROOT}/env_products.sh set -u -set -x #------ SolveSpace ------ export SOLVESPACE_ROOT_DIR=${NEWGEOM_PDIR}/solvespace-2.0 diff --git a/env_salome.sh b/env_salome.sh index 4343cd5ef..eea2eca66 100644 --- a/env_salome.sh +++ b/env_salome.sh @@ -1,8 +1,8 @@ #!/bin/bash -pushd ${SOURCES_DIR} - source env_linux.sh -popd +a_dir=$(dirname $0) + +source ${a_dir}/env_linux.sh # Correcting path which defined with error export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH} diff --git a/env_standalone.sh b/env_standalone.sh index a226bcfc6..6be641c77 100644 --- a/env_standalone.sh +++ b/env_standalone.sh @@ -1,8 +1,8 @@ #!/bin/bash -pushd ${SOURCES_DIR} - source env_linux.sh -popd +a_dir=$(dirname $0) + +source ${a_dir}/env_linux.sh export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH} export LightAppConfig=${INSTALL_DIR}/share/salome/resources/newgeom:${GUI_ROOT_DIR}/share/salome/resources/gui diff --git a/linux_run.sh b/linux_run.sh index daff08a03..1e60be570 100755 --- a/linux_run.sh +++ b/linux_run.sh @@ -1,8 +1,8 @@ #!/bin/bash -cd $(dirname $0) +a_dir=$(dirname $0) -source env.sh -source env_standalone.sh +source ${a_dir}/env.sh +source ${a_dir}/env_standalone.sh ${INSTALL_DIR}/bin/GeomApp "$@" diff --git a/salome_kill.sh b/salome_kill.sh index 18da44763..3fe6b6f18 100755 --- a/salome_kill.sh +++ b/salome_kill.sh @@ -1,11 +1,14 @@ -#!/bin/bash -ex +#!/bin/bash -e -source env.sh -source env_salome.sh +a_dir=$(dirname $0) + +source ${a_dir}/env.sh +source ${a_dir}/env_salome.sh + +set +e -x ${KERNEL_ROOT_DIR}/bin/salome/killSalome.py -set +e killall SALOME_LauncherServer killall SALOME_Session_Server killall SALOME_ConnectionManagerServer -set -e +killall omniNames diff --git a/salome_run.sh b/salome_run.sh index 9844a1a38..ae238852a 100755 --- a/salome_run.sh +++ b/salome_run.sh @@ -1,6 +1,6 @@ -#!/bin/bash -ex +#!/bin/bash -e -cd $(dirname $0) +a_dir=$(dirname $0) if [ "$#" = 1 ]; then export SALOME_PORT="$1" @@ -8,9 +8,13 @@ elif [ -z ${SALOME_PORT} ]; then export SALOME_PORT=2900 fi -source env.sh -source env_salome.sh +echo "Run SALOME on port ${SALOME_PORT}" -${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT} -${KERNEL_ROOT_DIR}/bin/salome/runSalome.py --port=${SALOME_PORT} -r ./test.squish/shared/testdata/SalomeApp.xml -${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT} +source ${a_dir}/env.sh +source ${a_dir}/env_salome.sh + +set -x +e + +${a_dir}/salome_kill.sh + +${KERNEL_ROOT_DIR}/bin/salome/runSalome.py --port=${SALOME_PORT} -r ./test.squish/shared/testdata/SalomeApp.xml 2>&1 >/dev/null diff --git a/test_squish.sh b/test_squish.sh index 6afa70b78..d2fe367ec 100755 --- a/test_squish.sh +++ b/test_squish.sh @@ -15,7 +15,7 @@ for aut in linux_run.sh salome_run.sh; do done squishserver --config setAUTTimeout 60 squishserver --verbose --port=${SQUISHSERVER_PORT} --stop -squishserver --verbose --port=${SQUISHSERVER_PORT} --daemon +squishserver --verbose --port=${SQUISHSERVER_PORT} 2>server.err & RETVAL=0 for suite in ./test.squish/suite_*