Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
slave2worker cont'd
[simgrid.git] / examples / msg / trace-masterworker / trace-masterworker.tesh
diff --git a/examples/msg/trace-masterworker/trace-masterworker.tesh b/examples/msg/trace-masterworker/trace-masterworker.tesh
new file mode 100644 (file)
index 0000000..2e6686c
--- /dev/null
@@ -0,0 +1,88 @@
+#! ./tesh
+
+p Tracing master/worker application
+$ $SG_TEST_EXENV ${bindir:=.}/trace-masterworker$EXEEXT --cfg=tracing:yes --cfg=tracing/buffer:yes --cfg=tracing/filename:trace-masterworker.trace --cfg=tracing/categorized:yes --cfg=tracing/uncategorized:yes --cfg=viva/categorized:trace-masterworker.cat.plist --cfg=viva/uncategorized:trace-masterworker.uncat.plist ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/masterworker-mailbox/masterworker-mailbox_d.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/buffer' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'trace-masterworker.trace'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/categorized' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/uncategorized' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/categorized' to 'trace-masterworker.cat.plist'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/uncategorized' to 'trace-masterworker.uncat.plist'
+> [4.214821] [msg_test/INFO] Declared tracing categories:
+> [4.214821] [msg_test/INFO] request
+> [4.214821] [msg_test/INFO] finalize
+> [4.214821] [msg_test/INFO] report
+> [4.214821] [msg_test/INFO] compute
+> [4.214821] [msg_test/INFO] Declared marks:
+> [4.214821] [msg_test/INFO] msmark
+
+p Tracing master/worker application with xml config
+$ $SG_TEST_EXENV ${bindir:=.}/trace-masterworker$EXEEXT ${srcdir:=.}/config_tracing.xml ${srcdir:=.}/../msg/masterworker-mailbox/masterworker-mailbox_d.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/uncategorized' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/buffer' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/categorized' to 'trace-masterworker.cat.plist'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'trace-masterworker.trace'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/uncategorized' to 'trace-masterworker.uncat.plist'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/categorized' to 'yes'
+> [4.214821] [msg_test/INFO] Declared tracing categories:
+> [4.214821] [msg_test/INFO] request
+> [4.214821] [msg_test/INFO] finalize
+> [4.214821] [msg_test/INFO] report
+> [4.214821] [msg_test/INFO] compute
+> [4.214821] [msg_test/INFO] Declared marks:
+> [4.214821] [msg_test/INFO] msmark
+
+p Not tracing master/worker application
+$ $SG_TEST_EXENV ${bindir:=.}/trace-masterworker$EXEEXT ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/masterworker-mailbox/masterworker-mailbox_d.xml
+
+p Testing tracing by process
+$ $SG_TEST_EXENV ${bindir:=.}/trace-masterworker$EXEEXT --cfg=tracing:yes --cfg=tracing/msg/process:yes --cfg=tracing/buffer:yes --cfg=tracing/filename:trace-masterworker.trace --cfg=tracing/categorized:yes --cfg=tracing/uncategorized:yes --cfg=viva/categorized:trace-masterworker.cat.plist --cfg=viva/uncategorized:trace-masterworker.uncat.plist ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/masterworker-mailbox/masterworker-mailbox_d.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/msg/process' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/buffer' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'trace-masterworker.trace'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/categorized' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/uncategorized' to 'yes'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/categorized' to 'trace-masterworker.cat.plist'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/uncategorized' to 'trace-masterworker.uncat.plist'
+> [4.214821] [msg_test/INFO] Declared tracing categories:
+> [4.214821] [msg_test/INFO] request
+> [4.214821] [msg_test/INFO] finalize
+> [4.214821] [msg_test/INFO] report
+> [4.214821] [msg_test/INFO] compute
+> [4.214821] [msg_test/INFO] Declared marks:
+> [4.214821] [msg_test/INFO] msmark
+
+$ $SG_TEST_EXENV cat trace-masterworker.uncat.plist
+>   node = ("HOST","LINK");
+>   edge = ("0-LINK13-LINK13","0-LINK13-HOST1","0-HOST1-LINK13");
+> 
+>   host = {
+>     type = "square";
+>     size = "power";
+>     values = ("power_used");
+>   };
+>   link = {
+>     type = "rhombus";
+>     size = "bandwidth";
+>     values = ("bandwidth_used");
+>   };
+
+$ $SG_TEST_EXENV cat trace-masterworker.cat.plist
+>   node = ("HOST","LINK");
+>   edge = ("0-LINK13-LINK13","0-LINK13-HOST1","0-HOST1-LINK13");
+> 
+>   host = {
+>     type = "square";
+>     size = "power";
+>     values = ("pcompute","preport","pfinalize","prequest");
+>   };
+>   link = {
+>     type = "rhombus";
+>     size = "bandwidth";
+>     values = ("bcompute","breport","bfinalize","brequest");
+>   };
+
+$ rm -rf trace-masterworker.trace trace-masterworker.cat.plist trace-masterworker.uncat.plist