Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add example to kill a process.
[simgrid.git] / examples / msg / masterslave / masterslave_kill.tesh
diff --git a/examples/msg/masterslave/masterslave_kill.tesh b/examples/msg/masterslave/masterslave_kill.tesh
new file mode 100644 (file)
index 0000000..2db6f37
--- /dev/null
@@ -0,0 +1,12 @@
+#! ./tesh
+
+p Testing a simple master/slave example application
+
+$ $SG_TEST_EXENV masterslave/masterslave_kill$EXEEXT ${srcdir:=.}/masterslave/platform_kill.xml ${srcdir:=.}/masterslave/deployment_masterslave_kill.xml
+> [alice:master:(1) 0.000000] [msg_test/INFO] Hello!
+> [bob:slave:(2) 0.000000] [msg_test/INFO] Hello!
+> [bob:slave:(2) 0.000000] [msg_test/INFO] Suspend process
+> [alice:master:(1) 10.000000] [msg_test/INFO] Resume process
+> [alice:master:(1) 10.000000] [msg_test/INFO] Kill process
+> [alice:master:(1) 10.000000] [msg_test/INFO] OK, goodbye now.
+> [10.000000] [msg_test/INFO] Simulation time 10
\ No newline at end of file