From 2d3835ea435d81d6e7cee405d10c8f7016bcf0a8 Mon Sep 17 00:00:00 2001 From: spo Date: Wed, 26 Aug 2015 12:41:24 +0300 Subject: [PATCH] Attach GDB to SQUISH tests --- linux_run.sh | 9 ++++++++- test_squish.sh | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/linux_run.sh b/linux_run.sh index a5a847176..ea8112eb8 100755 --- a/linux_run.sh +++ b/linux_run.sh @@ -7,4 +7,11 @@ cd ${a_dir} source ${a_dir}/env.sh source ${a_dir}/env_standalone.sh -${INSTALL_DIR}/bin/GeomApp "$@" +if [ -f GDB ]; then + ${INSTALL_DIR}/bin/GeomApp & + APP_PID=$! + echo "Connect GDB to PID ${APP_PID}" + gdb --command=commands.gdb - ${APP_PID} +else + ${INSTALL_DIR}/bin/GeomApp +fi diff --git a/test_squish.sh b/test_squish.sh index 0c234874c..93b6e6378 100755 --- a/test_squish.sh +++ b/test_squish.sh @@ -17,7 +17,7 @@ source ${a_dir}/env_squish.sh for aut in linux_run.sh salome_run.sh; do squishserver --config addAUT ${aut} $(pwd) done -squishserver --config setAUTTimeout 60 +squishserver --config setAUTTimeout 120 squishserver --verbose --port=${SQUISHSERVER_PORT} --stop squishserver --verbose --port=${SQUISHSERVER_PORT} 2>server.err & -- 2.39.2