Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use format precision modifier in date outputs, since some of the GRAS messages are...
[simgrid.git] / examples / gras / ping / test_sg.in
index e4e99c2..c31acbe 100755 (executable)
@@ -1,5 +1,21 @@
-#! @BASH@
-if test -x ./ping_simulator ; then
-  exec ./ping_simulator @top_srcdir@/examples/msg/small_platform.xml @srcdir@/ping_deployment.xml
-fi
-exit 77
+
+p Runs the 'ping' test within the simulator
+
+$ ./ping_simulator@EXEEXT@ @top_srcdir@/examples/msg/small_platform.xml @srcdir@/ping.xml  --log=root.fmt:"'[%h:%t:(%i) %.2r] [%c/%p] %m%n'"
+> [Tremblay:server:(1) 0.00] [Ping/INFO] Launch server (port=4000)
+> [Tremblay:server:(1) 0.00] [Ping/INFO] Messages registered
+> [Tremblay:server:(1) 0.00] [Ping/INFO] Messages registered
+> [Tremblay:server:(1) 0.00] [Ping/INFO] >>>>>>>> Listening on port 4000 <<<<<<<<
+> [Fafard:client:(2) 0.00] [Ping/INFO] Launch client (server on Tremblay:4000)
+> [Fafard:client:(2) 1.00] [Ping/INFO] Connected to Tremblay:4000.
+> [Fafard:client:(2) 1.00] [Ping/INFO] Messages registered
+> [Fafard:client:(2) 1.00] [Ping/INFO] >>>>>>>> Connected to server which is on Tremblay:4000 <<<<<<<<
+> [Fafard:client:(2) 1.00] [Ping/INFO] >>>>>>>> Message PING(1234) sent to Tremblay:4000 <<<<<<<<
+> [Tremblay:server:(1) 1.00] [Ping/INFO] >>>>>>>> Got message PING(1234) from Fafard:0 <<<<<<<<
+> [Tremblay:server:(1) 1.00] [Ping/INFO] >>>>>>>> Answered with PONG(4321) <<<<<<<<
+> [Tremblay:server:(1) 1.00] [Ping/INFO] Done.
+> [Tremblay:server:(1) 1.00] [gras/INFO] Exiting GRAS
+> [Fafard:client:(2) 1.00] [Ping/INFO] >>>>>>>> Got PONG(4321) from Tremblay:4000 <<<<<<<<
+> [Fafard:client:(2) 1.00] [Ping/INFO] Done.
+> [Fafard:client:(2) 1.00] [gras/INFO] Exiting GRAS
+