blob: 70864337b49d2abc45d90fec6144ed48b1f5392a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
PORT=20001
IORFILE=theior
INVOCATION=sii
start_server()
{
./server -ORBobjrefstyle url -ORBport $PORT -o $IORFILE 2>&1 | sed -e 's/^/SERVER: /' &
}
# Restart the server if we get SIGCHLD, i.e., the server died.
trap "start_server" 17
trap "rm -f $IORFILE" 0
start_server
trap "kill `ps | grep server | awk '{print $1;}'`" 0
TYPES="short ubstring fixed_struct strseq var_struct nested_struct struct_seq objref"
for type in $TYPES
do
echo "BEGIN Testing type $type"
sleep 2 # Give the server a chance to start up
./client -f $IORFILE -i $INVOCATION -t $type 2>&1 | sed -e "s/^/CLIENT($type): /"
echo "END Testing type $type"
done
|