Logo AND Algorithmique Numérique Distribuée

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