Salome HOME
Update copyrights
[modules/yacs.git] / src / runtime / Test / standaloneTest.sh
1 #!/bin/sh
2 # Copyright (C) 2006-2019  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 killall -9 omniNames echoSrv
22
23 BASEREP=`pwd`
24 OMNIORB_CONFIG=${BASEREP}/omniorb.cfg
25 OMNINAMES_LOGDIR=${BASEREP}/omnilog
26
27 export BASEREP
28 export OMNIORB_CONFIG
29 export OMNINAMES_LOGDIR
30
31 echo ${BASEREP}
32 echo ${OMNIORB_CONFIG}
33
34 # do not use the default port 2810 for omninames (to improve, cf. SALOME)
35 echo "InitRef = NameService=corbaname::localhost:2910" > ${OMNIORB_CONFIG}
36
37 rm -rf ${OMNINAMES_LOGDIR}
38 mkdir  ${OMNINAMES_LOGDIR}
39
40 mkdir -p /tmp/${USER}
41 \rm -f /tmp/${USER}/UnitTestsResult
42
43 echo $$
44
45 omniNames -start 2910 &
46 pidomni=$!
47 echo $pidomni
48
49 ./runtimeTestEchoSrv &
50 pidecho=$!
51 echo $pidecho
52
53 export PYTHONPATH=${BASEREP}:${PYTHONPATH}
54 ./TestStandAlone
55 ret=$?
56
57 # kill -9 $pidecho $pidomni
58 cat /tmp/${USER}/UnitTestsResult
59 exit $ret