Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert kademlia example to s4u
[simgrid.git] / examples / s4u / dht-kademlia / s4u-dht-kademlia.tesh
diff --git a/examples/s4u/dht-kademlia/s4u-dht-kademlia.tesh b/examples/s4u/dht-kademlia/s4u-dht-kademlia.tesh
new file mode 100644 (file)
index 0000000..ec1a873
--- /dev/null
@@ -0,0 +1,33 @@
+#! ./tesh
+
+p Testing the Kademlia implementation with MSG
+
+! output sort 19
+$ $SG_TEST_EXENV ${bindir:=.}/s4u-dht-kademlia ${platfdir}/cluster.xml ${srcdir:=.}/s4u-dht-kademlia_d.xml "--log=root.fmt:[%10.6r]%e(%02i:%P@%h)%e%m%n"
+> [  0.000000] ( 1:node@node-0.acme.org) Hi, I'm going to create the network with id 0
+> [  0.000000] ( 2:node@node-1.acme.org) Hi, I'm going to join the network with id 1
+> [  0.000000] ( 3:node@node-2.acme.org) Hi, I'm going to join the network with id 3
+> [  0.000000] ( 4:node@node-3.acme.org) Hi, I'm going to join the network with id 7
+> [  0.000000] ( 5:node@node-4.acme.org) Hi, I'm going to join the network with id 15
+> [  0.000000] ( 6:node@node-5.acme.org) Hi, I'm going to join the network with id 31
+> [  0.000000] ( 7:node@node-6.acme.org) Hi, I'm going to join the network with id 63
+> [  0.000000] ( 8:node@node-7.acme.org) Hi, I'm going to join the network with id 127
+> [  0.000000] ( 9:node@node-8.acme.org) Hi, I'm going to join the network with id 255
+> [  0.000000] (10:node@node-9.acme.org) Hi, I'm going to join the network with id 511
+> [  0.000000] (11:node@node-10.acme.org) Hi, I'm going to join the network with id 1023
+> [  0.000000] (12:node@node-11.acme.org) Hi, I'm going to join the network with id 2047
+> [  0.000000] (13:node@node-12.acme.org) Hi, I'm going to join the network with id 4095
+> [780.000000] ( 7:node@node-6.acme.org) 5/5 FIND_NODE have succeeded
+> [780.000000] ( 9:node@node-8.acme.org) 6/6 FIND_NODE have succeeded
+> [780.000000] ( 3:node@node-2.acme.org) 5/5 FIND_NODE have succeeded
+> [780.000000] ( 2:node@node-1.acme.org) 6/6 FIND_NODE have succeeded
+> [780.000000] (11:node@node-10.acme.org) 6/6 FIND_NODE have succeeded
+> [780.000000] ( 1:node@node-0.acme.org) 7/7 FIND_NODE have succeeded
+> [780.000000] ( 5:node@node-4.acme.org) 6/6 FIND_NODE have succeeded
+> [780.000000] (13:node@node-12.acme.org) 6/6 FIND_NODE have succeeded
+> [780.000000] ( 8:node@node-7.acme.org) 5/5 FIND_NODE have succeeded
+> [780.000000] ( 6:node@node-5.acme.org) 5/5 FIND_NODE have succeeded
+> [780.000000] (10:node@node-9.acme.org) 5/5 FIND_NODE have succeeded
+> [780.000000] (12:node@node-11.acme.org) 6/6 FIND_NODE have succeeded
+> [780.000000] ( 4:node@node-3.acme.org) 5/5 FIND_NODE have succeeded
+> [780.000000] ( 0:maestro@) Simulated time: 780