Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename test to avoid name conflict (for sonarcloud coverage)
[simgrid.git] / examples / smpi / ampi_test / ampi_test.tesh
diff --git a/examples/smpi/ampi_test/ampi_test.tesh b/examples/smpi/ampi_test/ampi_test.tesh
new file mode 100644 (file)
index 0000000..8e4a51a
--- /dev/null
@@ -0,0 +1,35 @@
+# 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 if the load balancing code gets traced correctly
+! timeout 60
+
+$ rm -rf ${bindir:=.}/smpi_trace.trace ${bindir:=.}/smpi_trace.trace_files
+
+$ ../../smpi_script/bin/smpirun -trace-ti --cfg=tracing/filename:${bindir:=.}/smpi_trace.trace --cfg=tracing/smpi/format/ti-one-file:yes -no-privatize -replay ${srcdir:=.}/replay/actions_bcast.txt --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./ampi_test/smpi_ampi_test --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning --cfg=smpi/wtime:0
+
+$ bash -c "cat ${bindir:=.}/smpi_trace.trace_files/*"
+> 0 init
+> 0 iteration_in
+> 0 iteration_out
+> 0 iteration_in
+> 0 iteration_out
+> 0 migrate 0
+> 0 finalize
+> 1 init
+> 1 iteration_in
+> 2 init
+> 2 iteration_in
+> 1 iteration_out
+> 1 iteration_in
+> 2 iteration_out
+> 2 iteration_in
+> 1 iteration_out
+> 1 migrate 400
+> 1 finalize
+> 2 iteration_out
+> 2 migrate 400
+> 2 finalize
+
+$ rm -rf ${bindir:=.}/smpi_trace.trace ${bindir:=.}/smpi_trace.trace_files