Logo AND Algorithmique Numérique Distribuée

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