Salome HOME
Fix test HPDecorator.
[modules/yacs.git] / src / yacsloader_swig / Test / YacsLoaderInSessionTest.sh.in
1 #!/bin/bash
2 # Copyright (C) 2006-2016  CEA/DEN, EDF R&D
3 #
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.
8 #
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.
13 #
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
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 # --- script to execute in SALOME environment (use runSession)
22
23 # --- launch CORBA server echoSrv for tests (reuse the yacsloader/Test one)
24
25 ../../yacsloader/Test/echoSrv &
26 pidecho=$!
27 echo $pidecho > "/tmp/YACSTEST_PidEcho"
28
29 python @CMAKE_SOURCE_DIR@/src/yacsloader/Test/waitContainers.py
30
31 # --- launch unit tests
32
33 export ROOT_SAMPLES=@CMAKE_SOURCE_DIR@/src/yacsloader/samples
34 export TESTCOMPONENT_ROOT_DIR=@CMAKE_BINARY_DIR@/src/runtime/Test
35
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
41
42 python  @CMAKE_CURRENT_SOURCE_DIR@/testExec.py
43 ret0=$?
44 if [ $ret0 -gt 0 ]; then
45   echo "exec status testExec : " $ret0
46   exit $ret0
47 fi
48
49 python  @CMAKE_CURRENT_SOURCE_DIR@/testResume.py
50 ret1=$?
51 if [ $ret1 -gt 0 ]; then
52   echo "exec status testResume : " $ret1
53   exit $ret1
54 fi
55
56 python  @CMAKE_CURRENT_SOURCE_DIR@/testLoader.py
57 ret2=$?
58 if [ $ret2 -gt 0 ]; then
59   echo "exec status testLoader : " $ret2
60   exit $ret2
61 fi
62
63 python  @CMAKE_CURRENT_SOURCE_DIR@/testEdit.py
64 ret3=$?
65 if [ $ret3 -gt 0 ]; then
66   echo "exec status testEdit : " $ret3
67   exit $ret3
68 fi
69
70 python  @CMAKE_CURRENT_SOURCE_DIR@/testSave.py
71 ret4=$?
72 if [ $ret4 -gt 0 ]; then
73   echo "exec status testSave : " $ret4
74   exit $ret4
75 fi
76
77 python  @CMAKE_CURRENT_SOURCE_DIR@/testRefcount.py
78 ret5=$?
79 if [ $ret5 -gt 0 ]; then
80   echo "exec status testRefcount : " $ret5
81   exit $ret5
82 fi
83
84 python  @CMAKE_CURRENT_SOURCE_DIR@/testSaveLoadRun.py
85 ret6=$?
86 if [ $ret6 -gt 0 ]; then
87   echo "exec status testSaveLoadRun : " $ret6
88   exit $ret6
89 fi
90
91 python  @CMAKE_CURRENT_SOURCE_DIR@/testProgress.py
92 ret7=$?
93 if [ $ret7 -gt 0 ]; then
94   echo "exec status testProgress : " $ret7
95   exit $ret7
96 fi
97
98 python  @CMAKE_CURRENT_SOURCE_DIR@/testHPDecorator.py
99 ret8=$?
100 if [ $ret8 -gt 0 ]; then
101   echo "exec status testProgress : " $ret8
102   exit $ret8
103 fi
104
105 let ret=$ret0+$ret1+$ret2+$ret3+$ret4+$ret5+$ret6+$ret7+$ret8
106
107 # --- return unit tests status
108
109 exit $ret