#! ./tesh

p Tracing master/slave application
$ $SG_TEST_EXENV ${bindir:=.}/tracing/ms$EXEEXT --cfg=tracing:yes --cfg=tracing/buffer:yes --cfg=tracing/filename:tracing/ms.trace --cfg=tracing/categorized:yes --cfg=tracing/uncategorized:yes --cfg=viva/categorized:tracing/ms.cat.plist --cfg=viva/uncategorized:tracing/ms.uncat.plist ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.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 'tracing/ms.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 'tracing/ms.cat.plist'
> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/uncategorized' to 'tracing/ms.uncat.plist'
> [4.214759] [msg_test/INFO] Declared tracing categories:
> [4.214759] [msg_test/INFO] request
> [4.214759] [msg_test/INFO] finalize
> [4.214759] [msg_test/INFO] report
> [4.214759] [msg_test/INFO] compute
> [4.214759] [msg_test/INFO] Declared marks:
> [4.214759] [msg_test/INFO] msmark

p Not tracing master/slave application
$ $SG_TEST_EXENV ${bindir:=.}/tracing/ms$EXEEXT ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml

p Testing tracing by process
$ $SG_TEST_EXENV ${bindir:=.}/tracing/ms$EXEEXT --cfg=tracing:yes --cfg=tracing/msg/process:yes --cfg=tracing/buffer:yes --cfg=tracing/filename:tracing/ms.trace --cfg=tracing/categorized:yes --cfg=tracing/uncategorized:yes --cfg=viva/categorized:tracing/ms.cat.plist --cfg=viva/uncategorized:tracing/ms.uncat.plist ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.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 'tracing/ms.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 'tracing/ms.cat.plist'
> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'viva/uncategorized' to 'tracing/ms.uncat.plist'
> [4.214759] [msg_test/INFO] Declared tracing categories:
> [4.214759] [msg_test/INFO] request
> [4.214759] [msg_test/INFO] finalize
> [4.214759] [msg_test/INFO] report
> [4.214759] [msg_test/INFO] compute
> [4.214759] [msg_test/INFO] Declared marks:
> [4.214759] [msg_test/INFO] msmark

$ $SG_TEST_EXENV cat tracing/ms.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 tracing/ms.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 tracing/ms.trace tracing/ms.cat.plist tracing/ms.uncat.plist
