Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this was no simdag
[simgrid.git] / teshsuite / s4u / basic-link-test / basic-link-test.tesh
diff --git a/teshsuite/s4u/basic-link-test/basic-link-test.tesh b/teshsuite/s4u/basic-link-test/basic-link-test.tesh
new file mode 100644 (file)
index 0000000..6315198
--- /dev/null
@@ -0,0 +1,24 @@
+#!/usr/bin/env tesh
+
+$ ./basic-link-test ../../simdag/platforms/one_cluster.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  0.000000] (0:maestro@) Link count: 12
+> [  0.000000] (0:maestro@) __loopback__: latency = 0.00002, bandwidth = 498000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_backbone: latency = 0.00050, bandwidth = 2250000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_0_DOWN: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_0_UP: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_2_DOWN: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_2_UP: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_3_DOWN: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_3_UP: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_4_DOWN: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_4_UP: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_6_DOWN: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) bob_cluster_link_6_UP: latency = 0.00005, bandwidth = 125000000.000000
+
+$ ./basic-link-test ../../simdag/platforms/link_attributes.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  0.000000] (0:maestro@) Link count: 5
+> [  0.000000] (0:maestro@) __loopback__: latency = 0.00002, bandwidth = 498000000.000000
+> [  0.000000] (0:maestro@) link1: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) link2: latency = 0.00005, bandwidth = 125000000.000000
+> [  0.000000] (0:maestro@) link3: latency = 0.00010, bandwidth = 80000000.000000
+> [  0.000000] (0:maestro@) link4: latency = 0.00010, bandwidth = 80000000.000000