Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the MSG process-kill example to teshsuite
[simgrid.git] / teshsuite / msg / process-kill / process-kill.tesh
diff --git a/teshsuite/msg/process-kill/process-kill.tesh b/teshsuite/msg/process-kill/process-kill.tesh
new file mode 100644 (file)
index 0000000..6c008e5
--- /dev/null
@@ -0,0 +1,14 @@
+#! ./tesh
+
+p Testing a MSG_process_kill function
+
+$ $SG_TEST_EXENV ${bindir:=.}/process-kill ${srcdir:=.}/../../../examples/platforms/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  0.000000] (1:killer@Tremblay) Hello!
+> [  0.000000] (2:victim A@Fafard) Hello!
+> [  0.000000] (2:victim A@Fafard) Suspending myself
+> [  0.000000] (3:victim B@Bourassa) Terminates before being killed
+> [ 10.000000] (1:killer@Tremblay) Resume victimA
+> [ 10.000000] (1:killer@Tremblay) Kill victimA
+> [ 10.000000] (1:killer@Tremblay) Kill victimB, even if it's already dead
+> [ 10.000000] (1:killer@Tremblay) OK, goodbye now. I commit a suicide.
+> [ 10.000000] (0:maestro@) Simulation time 10