From e688bbc5142fbfae83a2c436d5e72dcc9754a473 Mon Sep 17 00:00:00 2001 From: schnorr Date: Tue, 10 Aug 2010 11:32:29 +0000 Subject: [PATCH 1/1] new tesh to check smpi tracing git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8150 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/Cmake/AddTests.cmake | 3 +++ examples/smpi/smpi_traced.tesh | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 examples/smpi/smpi_traced.tesh diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index ff2fb33747..8360a2c224 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -199,6 +199,9 @@ if(enable_smpi) # smpi examples ADD_TEST(smpi-bcast ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_BINARY_DIR}/examples/smpi ${PROJECT_DIRECTORY}/examples/smpi/bcast.tesh) ADD_TEST(smpi-reduce ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_BINARY_DIR}/examples/smpi ${PROJECT_DIRECTORY}/examples/smpi/reduce.tesh) +if(HAVE_TRACING) + ADD_TEST(smpi-tracing-ptp ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_BINARY_DIR}/examples/smpi ${PROJECT_DIRECTORY}/examples/smpi/smpi_traced.tesh) +endif(HAVE_TRACING) endif(enable_smpi) if(HAVE_GTNETS) diff --git a/examples/smpi/smpi_traced.tesh b/examples/smpi/smpi_traced.tesh new file mode 100644 index 0000000000..60c89e54b4 --- /dev/null +++ b/examples/smpi/smpi_traced.tesh @@ -0,0 +1,10 @@ +# use the tested library, not the installed one +# (since we want to pass it to the child, it has to be redefined before each command) +# Go for the first test +p Test instrumentation of SMPI +$ ../../bin/smpirun -trace smpi_traced.trace -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform_with_routers.xml -np 3 ./smpi_traced +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI' +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'TCP_gamma' to '4194304' +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_traced.trace' +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to '1' +> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) -- 2.20.1