2 # Copyright (C) 2006-2015 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, or (at your option) any later version.
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 @CMAKE_SOURCE_DIR@/src/yacsloader/Test/waitContainers.py
31 # --- launch unit tests
33 export ROOT_SAMPLES=@CMAKE_SOURCE_DIR@/src/yacsloader/samples
34 export TESTCOMPONENT_ROOT_DIR=@CMAKE_BINARY_DIR@/src/runtime/Test
36 export PYTHONPATH=@CMAKE_BINARY_DIR@/src/yacsloader_swig:$PYTHONPATH
37 export PYTHONPATH=@CMAKE_BINARY_DIR@/src/runtime_swig:$PYTHONPATH
38 export PYTHONPATH=@CMAKE_BINARY_DIR@/src/engine_swig:$PYTHONPATH
39 export PYTHONPATH=@CMAKE_CURRENT_SOURCE_DIR@:$PYTHONPATH
40 export PYTHONPATH=@CMAKE_SOURCE_DIR@/src/yacsloader/Test:$PYTHONPATH
42 python @CMAKE_CURRENT_SOURCE_DIR@/testExec.py
44 if [ $ret0 -gt 0 ]; then
45 echo "exec status testExec : " $ret0
49 python @CMAKE_CURRENT_SOURCE_DIR@/testResume.py
51 if [ $ret1 -gt 0 ]; then
52 echo "exec status testResume : " $ret1
56 python @CMAKE_CURRENT_SOURCE_DIR@/testLoader.py
58 if [ $ret2 -gt 0 ]; then
59 echo "exec status testLoader : " $ret2
63 python @CMAKE_CURRENT_SOURCE_DIR@/testEdit.py
65 if [ $ret3 -gt 0 ]; then
66 echo "exec status testEdit : " $ret3
70 python @CMAKE_CURRENT_SOURCE_DIR@/testSave.py
72 if [ $ret4 -gt 0 ]; then
73 echo "exec status testSave : " $ret4
77 python @CMAKE_CURRENT_SOURCE_DIR@/testRefcount.py
79 if [ $ret5 -gt 0 ]; then
80 echo "exec status testRefcount : " $ret5
84 python @CMAKE_CURRENT_SOURCE_DIR@/testSaveLoadRun.py
86 if [ $ret6 -gt 0 ]; then
87 echo "exec status testSaveLoadRun : " $ret6
91 python @CMAKE_CURRENT_SOURCE_DIR@/testProgress.py
93 if [ $ret7 -gt 0 ]; then
94 echo "exec status testProgress : " $ret7
98 let ret=$ret0+$ret1+$ret2+$ret3+$ret4+$ret5+$ret6+$ret7
100 # --- return unit tests status