]> SALOME platform Git repositories - modules/hydro.git/blob - squish.suite/env_squish.sh
Salome HOME
corrections after merge
[modules/hydro.git] / squish.suite / env_squish.sh
1 #!/bin/bash
2
3 # SALOME installation directory
4 SALOME_CURRENT=/dn26/HYDRO/current/2015.04.06
5
6 # set tests root dir
7 if [ ! -n "${ROOT_DIR}" ] ; then
8     export ROOT_DIR=`pwd`
9     echo "ROOT_DIR has been set to " ${ROOT_DIR}
10 fi
11
12 # set current HYDRO build environment
13 cd ${SALOME_CURRENT}
14 source env.sh
15 cd $ROOT_DIR
16
17 unset SALOME_CURRENT
18
19 # remove python directory from PYTHONPATH
20 PYTHONPATH=$(echo "$PYTHONPATH" | sed -e 's/:\/dn47\/SALOME\/PRODUCTS\/7x\/opt\/DEBIAN.6.0.64\/7.5.1\/Python-2.7.3\/lib\/python2.7$//')
21
22 # Squish + OpenGL
23 export SQUISH_GRABWINDOW_CLASSES=QGLWidget,QWSGLWindowSurface,SVTK_RenderWindowInteractor,OCCViewer_ViewPort3d,pqQVTKWidget
24
25 # Directory used by tests for writing files
26 export TEST_DIR=${ROOT_DIR}/TEST_TMP
27
28 # Directory for files imported in tests
29 export TEST_FILES_DIR=${ROOT_DIR}/shared/testdata
30
31 # Common script dir
32 export COMMON_SCRIPT_DIR=${ROOT_DIR}/shared/scripts