X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test.sh;h=7faf456b873ec3f33bcbb5ba2aafa9d7ed94797d;hb=5a5362530345c00af26fc8226f3066f749dde392;hp=7f2d98e452bfdfb54a636a1536987fc19c066c57;hpb=ae56a5ed7f640a944108b5aee567bb80ced86c9a;p=modules%2Fshaper.git diff --git a/test.sh b/test.sh index 7f2d98e45..7faf456b8 100755 --- a/test.sh +++ b/test.sh @@ -1,9 +1,21 @@ #!/bin/bash source env.sh -source env_standalone.sh mkdir -p ${BUILD_DIR} cd ${BUILD_DIR} -ctest --no-compress-output -T Test +export DISPLAY="localhost:0.0" + +# check for __init__.py in the SHAPER's Python scripts directory +# for correct parsing PYTHONPATH and use the actual version of SHAPER +# instead of distributed with SALOME +if [[ ! -f ${SHAPER_PYTHON_SCRIPTS_DIR}/salome/__init__.py ]]; then + touch ${SHAPER_PYTHON_SCRIPTS_DIR}/salome/__init__.py +fi + +if [[ $# > 0 ]]; then + ctest --no-compress-output -T Test "$@" -R $1 +else + ctest --no-compress-output -T Test "$@" +fi