X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test_squish.sh;h=b1846e5b2ea93749b2e5dbb5cb57850190506cfa;hb=50999d5a0e5de71194dc677f630f6ca4a4bdeff4;hp=da03d4c82b6404d878d9901061e345b8d67289dd;hpb=1b36fdfb9d7fb86e767fb5ef77861cb2a4e2d6e9;p=modules%2Fshaper.git diff --git a/test_squish.sh b/test_squish.sh index da03d4c82..b1846e5b2 100755 --- a/test_squish.sh +++ b/test_squish.sh @@ -1,4 +1,4 @@ -#!/bin/bash -x +#!/bin/bash a_dir=$(dirname $0) @@ -17,15 +17,29 @@ 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 & +squishserver --verbose --port=${SQUISHSERVER_PORT} 1>log_squishserver 2>err_squishserver & squishrunner --port=${SQUISHSERVER_PORT} --config setCursorAnimation off RETVAL=0 squishrunner_run() { + local suite=$1 + local cases="$2" + + echo "Running suite ${suite}" + if [ "${cases}" != "" ]; then echo "Cases ${cases}"; fi + + set +e + squishrunner --port=${SQUISHSERVER_PORT} --testsuite ${suite} ${cases} --reportgen stdout --exitCodeOnFail 1 + EXIT_CODE=$? + set -e + if [ ${EXIT_CODE} = '1' ]; then RETVAL=1; fi +} + +squishrunner_batch() { local suite=$1 local tests=$2 @@ -36,14 +50,19 @@ squishrunner_run() { done set -x - set +e - squishrunner --port=${SQUISHSERVER_PORT} --testsuite ${suite} ${tests_arg} --reportgen stdout --exitCodeOnFail 1 - EXIT_CODE=$? - set -e - if [ ${EXIT_CODE} = '1' ]; then RETVAL=1; fi + echo ${tests_arg} + squishrunner_run ${suite} "${tests_arg}" } -squishrunner_run ./test.squish/suite_ISSUES 'tst_BASE tst_DISTANCE tst_PARALLEL_1 tst_PARALLEL_2 tst_RADIUS tst_c tst_common_1 tst_crash_1 tst_818' +#squishrunner_batch ./test.squish/suite_ISSUES 'tst_BASE tst_DISTANCE tst_PARALLEL_1 tst_PARALLEL_2 tst_PERPENDICULAR_1 tst_RADIUS tst_c tst_common_1 tst_crash_1 tst_818 tst_532' +#squishrunner_batch ./test.squish/suite_ISSUES_SALOME 'tst_sketch_001 tst_sketch_002 tst_sketch_003 tst_sketch_004 tst_sketch_005 tst_sketch_006 tst_sketch_007 tst_sketch_008 tst_sketch_009 tst_sketch_010 tst_sketch_011 tst_474 tst_532 tst_576 tst_679' + +for suite in ./test.squish/suite_*; do + squishrunner_run ${suite} +done + + + squishserver --verbose --port=${SQUISHSERVER_PORT} --stop for aut in linux_run.sh salome_run.sh; do