Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
68c9a595f2ed2d2609eb60cb6fac415c68908c5c
[simgrid.git] / examples / smpi / trace_call_location / trace_call_location.tesh
1 # use the tested library, not the installed one
2 # (since we want to pass it to the child, it has to be redefined before each command)
3 # Go for the first test
4
5 p Test SMPI with call-location tracing. This means that the binary must have
6 p already been compiled with the -trace-call-location switch.
7 $ ../../smpi_script/bin/smpirun -trace -trace-file smpi_trace.trace -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../platforms/small_platform.xml --cfg=smpi/trace-call-location:1 -np 3 ${srcdir:=.}/trace_call_location/smpi_trace_call_location --log=smpi_kernel.thres:warning 
8 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
9 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_trace.trace'
10 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
13 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP-gamma' to '4194304'
14 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/trace-call-location' to '1'
15
16 $ grep --quiet "12 0.000000 2 1 5 .*trace_call_location\.c\" 14$" ${srcdir:=.}/smpi_trace.trace 
17
18 $ rm -f ${srcdir:=.}/smpi_trace.trace