X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test.sh;h=7faf456b873ec3f33bcbb5ba2aafa9d7ed94797d;hb=63d86e00e1e6a482fcad527ae0b883deccceed11;hp=79ab28f2505e6cf0111ae486b188930b02d57f34;hpb=e7db636eab6e797f477731d35adc0ae524fd83c9;p=modules%2Fshaper.git diff --git a/test.sh b/test.sh index 79ab28f25..7faf456b8 100755 --- a/test.sh +++ b/test.sh @@ -5,4 +5,17 @@ source env.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