# smpi examples
ADD_TEST(smpi-bcast-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/bcast.tesh)
ADD_TEST(smpi-reduce-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/reduce.tesh)
+ ADD_TEST(smpi-vector-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/vector.tesh)
if(HAVE_RAWCTX)
ADD_TEST(smpi-bcast-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/bcast.tesh)
ADD_TEST(smpi-reduce-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/reduce.tesh)
+ ADD_TEST(smpi-vector-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/vector.tesh)
endif(HAVE_RAWCTX)
if(CONTEXT_UCONTEXT)
ADD_TEST(smpi-bcast-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/bcast.tesh)
ADD_TEST(smpi-reduce-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/reduce.tesh)
+ ADD_TEST(smpi-vector-ucontex ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/vector.tesh)
endif(CONTEXT_UCONTEXT)
if(HAVE_TRACING)
ADD_TEST(smpi-tracing-ptp ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cd ${CMAKE_BINARY_DIR}/examples/smpi ${CMAKE_HOME_DIRECTORY}/examples/smpi/tracing/smpi_traced.tesh)
--- /dev/null
+p Test vector
+! setenv LD_LIBRARY_PATH=../../lib
+! output sort
+$ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 2 ./vector_test -q
+> [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
+> [rank 0] -> Tremblay
+> [rank 1] -> Jupiter
+> rank= 0, a[0][0]=0.000000
+> rank= 0, a[0][1]=1.000000
+> rank= 0, a[0][2]=2.000000
+> rank= 0, a[0][3]=3.000000
+> rank= 0, a[1][0]=4.000000
+> rank= 0, a[1][1]=5.000000
+> rank= 0, a[1][2]=6.000000
+> rank= 0, a[1][3]=7.000000
+> rank= 0, a[2][0]=8.000000
+> rank= 0, a[2][1]=9.000000
+> rank= 0, a[2][2]=10.000000
+> rank= 0, a[2][3]=11.000000
+> rank= 0, a[3][0]=12.000000
+> rank= 0, a[3][1]=13.000000
+> rank= 0, a[3][2]=14.000000
+> rank= 0, a[3][3]=15.000000
+> rank= 1, a[0][0]=0.000000
+> rank= 1, a[0][1]=0.000000
+> rank= 1, a[0][2]=0.000000
+> rank= 1, a[0][3]=0.000000
+> rank= 1, a[1][0]=4.000000
+> rank= 1, a[1][1]=0.000000
+> rank= 1, a[1][2]=0.000000
+> rank= 1, a[1][3]=0.000000
+> rank= 1, a[2][0]=8.000000
+> rank= 1, a[2][1]=0.000000
+> rank= 1, a[2][2]=0.000000
+> rank= 1, a[2][3]=0.000000
+> rank= 1, a[3][0]=12.000000
+> rank= 1, a[3][1]=0.000000
+> rank= 1, a[3][2]=0.000000
+> rank= 1, a[3][3]=0.000000