Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add the exec-async example to the doc
[simgrid.git] / examples / s4u / exec-async / s4u-exec-async.tesh
diff --git a/examples/s4u/exec-async/s4u-exec-async.tesh b/examples/s4u/exec-async/s4u-exec-async.tesh
new file mode 100644 (file)
index 0000000..86fcf85
--- /dev/null
@@ -0,0 +1,9 @@
+#! ./tesh
+
+! output sort 19
+$ $SG_TEST_EXENV ${bindir:=.}/s4u-exec-async$EXEEXT ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  0.000000] (1:test@Fafard) Hello! Execute 7.6296e+07 flops with priority 1
+> [  0.000000] (2:test@Fafard) Hello! Execute 7.6296e+07 flops with priority 2
+> [  1.500000] (2:test@Fafard) Goodbye now!
+> [  2.000000] (0:maestro@) Simulation time 2
+> [  2.000000] (1:test@Fafard) Goodbye now!