Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a new ti-tracing/replay test (in teshsuite) to improve coverage.
[simgrid.git] / teshsuite / smpi / replay / replay.tesh
diff --git a/teshsuite/smpi/replay/replay.tesh b/teshsuite/smpi/replay/replay.tesh
new file mode 100644 (file)
index 0000000..c10da29
--- /dev/null
@@ -0,0 +1,15 @@
+# Replay test with all collectives, and two runs to 
+! output sort
+
+p First test
+$ ${bindir:=.}/../../../smpi_script/bin/smpirun -hostfile ${bindir:=.}/../hostfile_coll -platform ${platfdir}/small_platform.xml -np 4 --log=xbt_cfg.thres:critical --log=smpi_config.thres:warning --log=smpi_coll.thres:error --log=smpi_mpi.thres:error --log=smpi_pmpi.thres:error --cfg=smpi/simulate-computation:false -trace-ti --cfg=tracing/filename:trace1 ${bindir:=.}/replay
+
+p Replay
+$ ${bindir:=.}/../../../smpi_script/bin/smpirun -hostfile ${bindir:=.}/../hostfile_coll -platform ${platfdir}/small_platform.xml -np 4 --log=xbt_cfg.thres:critical --log=smpi_config.thres:warning --log=smpi_coll.thres:error --log=smpi_mpi.thres:error --log=smpi_pmpi.thres:error --cfg=smpi/simulate-computation:false -trace-ti --cfg=tracing/filename:trace2 -replay ${bindir:=.}/trace1
+> [Tremblay:1:(2) 0.173855] [smpi_replay/INFO] Simulation time 0.173855
+
+p Compare traces
+$ sh -c "diff trace1_files/*1.txt trace2_files/*1.txt"
+
+$ sh -c "rm -rf trace1* trace2*"
+