Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't use reserved keywords.
[simgrid.git] / examples / gras / rpc / test_rl.tesh
1 ! timeout 10
2
3 & $SG_TEST_EXENV ./rpc_server$EXEEXT 4202 --log=root.fmt:%m%n $@
4 > Launch server (port=4202)
5 > Listening on port 4202
6 > Got message PING(1234) from 127.0.0.1:5002
7 > Answered with PONG(4321)
8 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:5002
9 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:5002
10 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:5002
11 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:5002
12 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:5002
13 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:5002
14 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:4203
15 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:4203
16 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:4203
17 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:4203
18 > Propagate local exception ('Error for the client') from 'raise exception' RPC cb back to 127.0.0.1:4203
19 > Asked to die by 127.0.0.1:5002
20 > Done.
21 > Exiting GRAS
22
23 & $SG_TEST_EXENV ./rpc_forwarder$EXEEXT 4203 127.0.0.1 4202 --log=root.fmt:%m%n $@
24 > Launch forwarder (port=4203)
25 > Forward a request
26 > Propagate remote exception ('Error for the client') from 'forward exception' RPC cb back to 127.0.0.1:5002
27 > Forward a request
28 > Propagate remote exception ('Error for the client') from 'forward exception' RPC cb back to 127.0.0.1:5002
29 > Forward a request
30 > Propagate remote exception ('Error for the client') from 'forward exception' RPC cb back to 127.0.0.1:5002
31 > Forward a request
32 > Propagate remote exception ('Error for the client') from 'forward exception' RPC cb back to 127.0.0.1:5002
33 > Forward a request
34 > Propagate remote exception ('Error for the client') from 'forward exception' RPC cb back to 127.0.0.1:5002
35 > Asked to die by 127.0.0.1:5002
36 > Done.
37 > Exiting GRAS
38
39 # give the server and the forwarder  a chance to acquire the expected port numbers
40 $ $SG_TEST_EXENV sleep 1
41
42 & $SG_TEST_EXENV ./rpc_client$EXEEXT 127.0.0.1 4202 127.0.0.1 4203 --log=root.fmt:%m%n $@
43 > Launch client (server on 127.0.0.1:4202)
44 > Connected to 127.0.0.1:4202.
45 > Connected to server which is on 127.0.0.1:4202
46 > The answer to PING(1234) on 127.0.0.1:4202 is PONG(4321)
47 > Call the exception raising RPC
48 > Got the expected exception when calling the exception raising RPC
49 > Called the exception raising RPC
50 > Call the exception raising RPC (i=0)
51 > Call the exception raising RPC (i=1)
52 > Call the exception raising RPC (i=2)
53 > Call the exception raising RPC (i=3)
54 > Call the exception raising RPC (i=4)
55 > Call the exception raising RPC on the forwarder (i=0)
56 > Got the expected exception when calling the exception raising RPC
57 > Call the exception raising RPC on the forwarder (i=1)
58 > Got the expected exception when calling the exception raising RPC
59 > Call the exception raising RPC on the forwarder (i=2)
60 > Got the expected exception when calling the exception raising RPC
61 > Call the exception raising RPC on the forwarder (i=3)
62 > Got the expected exception when calling the exception raising RPC
63 > Call the exception raising RPC on the forwarder (i=4)
64 > Got the expected exception when calling the exception raising RPC
65 > Ask 127.0.0.1:4203 to die
66 > Ask 127.0.0.1:4202 to die
67 > Done.
68 > Exiting GRAS