Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update tesh files for gras-rpc tests.
[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 > Asked to die by 127.0.0.1:5002
9 > Done.
10 > Exiting GRAS
11
12 & $SG_TEST_EXENV ./rpc_forwarder$EXEEXT 4203 127.0.0.1 4202 --log=root.fmt:%m%n $@
13 > Launch forwarder (port=4203)
14 > Forward a request
15 > Forward a request
16 > Forward a request
17 > Forward a request
18 > Forward a request
19 > Asked to die by 127.0.0.1:5002
20 > Done.
21 > Exiting GRAS
22
23 # give the server and the forwarder  a chance to acquire the expected port numbers
24 $ $SG_TEST_EXENV sleep 1
25
26 & $SG_TEST_EXENV ./rpc_client$EXEEXT 127.0.0.1 4202 127.0.0.1 4203 --log=root.fmt:%m%n $@
27 > Launch client (server on 127.0.0.1:4202)
28 > Connected to 127.0.0.1:4202.
29 > Connected to server which is on 127.0.0.1:4202
30 > The answer to PING(1234) on 127.0.0.1:4202 is PONG(4321)
31 > Call the exception raising RPC
32 > Got the expected exception when calling the exception raising RPC
33 > Called the exception raising RPC
34 > Call the exception raising RPC (i=0)
35 > Call the exception raising RPC (i=1)
36 > Call the exception raising RPC (i=2)
37 > Call the exception raising RPC (i=3)
38 > Call the exception raising RPC (i=4)
39 > Call the exception raising RPC on the forwarder (i=0)
40 > Got the expected exception when calling the exception raising RPC
41 > Call the exception raising RPC on the forwarder (i=1)
42 > Got the expected exception when calling the exception raising RPC
43 > Call the exception raising RPC on the forwarder (i=2)
44 > Got the expected exception when calling the exception raising RPC
45 > Call the exception raising RPC on the forwarder (i=3)
46 > Got the expected exception when calling the exception raising RPC
47 > Call the exception raising RPC on the forwarder (i=4)
48 > Got the expected exception when calling the exception raising RPC
49 > Ask 127.0.0.1:4203 to die
50 > Ask 127.0.0.1:4202 to die
51 > Done.
52 > Exiting GRAS