Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add daemonize for s4u actors too
[simgrid.git] / examples / s4u / actor-daemon / s4u_actor-daemon.tesh
diff --git a/examples/s4u/actor-daemon/s4u_actor-daemon.tesh b/examples/s4u/actor-daemon/s4u_actor-daemon.tesh
new file mode 100644 (file)
index 0000000..bc42237
--- /dev/null
@@ -0,0 +1,11 @@
+#! ./tesh
+
+p Testing the process daemonization feature
+
+$ $SG_TEST_EXENV ${bindir:=.}/s4u_actor-daemon ${srcdir:=.}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%P@%h)%e%m%n"
+> [  0.000000] (worker@Boivin) Let's do some work (for 10 sec on Boivin).
+> [  0.000000] (daemon@Tremblay) Hello from the infinite loop
+> [  3.000000] (daemon@Tremblay) Hello from the infinite loop
+> [  6.000000] (daemon@Tremblay) Hello from the infinite loop
+> [  9.000000] (daemon@Tremblay) Hello from the infinite loop
+> [ 10.000000] (worker@Boivin) I'm done now. I leave even if it makes the daemon die.