2 # Copyright (C) 2006-2012 CEA/DEN, EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # --- script to execute in SALOME environment (use runSession)
23 # --- launch CORBA server echoSrv for tests (reuse the yacsloader/Test one)
25 ../../yacsloader/Test/echoSrv &
27 echo $pidecho > "/tmp/YACSTEST_PidEcho"
29 python @top_srcdir@/src/yacsloader/Test/waitContainers.py
31 # --- launch unit tests
33 export ROOT_SAMPLES=@ROOT_SRCDIR@/src/yacsloader/samples
34 export TESTCOMPONENT_ROOT_DIR=@top_builddir@/src/runtime/Test
36 export PYTHONPATH=..:../.libs:@top_srcdir@/src/yacsloader_swig:${PYTHONPATH}
37 export PYTHONPATH=../../runtime_swig:../../runtime_swig/.libs:@top_srcdir@/src/runtime_swig:${PYTHONPATH}
38 export PYTHONPATH=../../engine_swig:../../engine_swig/.libs:@top_srcdir@/src/engine_swig:${PYTHONPATH}
39 export PYTHONPATH=../../yacsloader/Test:${PYTHONPATH}
41 python @srcdir@/testExec.py
43 if [ $ret0 -gt 0 ]; then
44 echo "exec status testExec : " $ret0
48 python @srcdir@/testResume.py
50 if [ $ret1 -gt 0 ]; then
51 echo "exec status testResume : " $ret1
55 python @srcdir@/testLoader.py
57 if [ $ret2 -gt 0 ]; then
58 echo "exec status testLoader : " $ret2
62 python @srcdir@/testEdit.py
64 if [ $ret3 -gt 0 ]; then
65 echo "exec status testEdit : " $ret3
69 python @srcdir@/testSave.py
71 if [ $ret4 -gt 0 ]; then
72 echo "exec status testSave : " $ret4
76 python @srcdir@/testRefcount.py
78 if [ $ret5 -gt 0 ]; then
79 echo "exec status testRefcount : " $ret5
83 let ret=$ret0+$ret1+$ret2+$ret3+$ret4+$ret5
85 # --- return unit tests status