X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2a5be1efbd30fcf80a06645c196fcec50b19e665..5efe03db9d3a38dc14af6bd0711a5536605c8cd6:/examples/msg/process-suspend/process-suspend.tesh diff --git a/examples/msg/process-suspend/process-suspend.tesh b/examples/msg/process-suspend/process-suspend.tesh new file mode 100644 index 0000000000..41283ec5c5 --- /dev/null +++ b/examples/msg/process-suspend/process-suspend.tesh @@ -0,0 +1,24 @@ +#! ./tesh + +p Testing the suspend/resume feature of MSG + +! output sort 19 +$ $SG_TEST_EXENV ${bindir:=.}/process-suspend ${srcdir:=.}/platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +> [ 0.000000] (1:dream_master@Jacquelin) Let's create a lazy guy. +> [ 0.000000] (1:dream_master@Jacquelin) Let's wait a little bit... +> [ 0.000000] (2:Lazy@Jacquelin) Nobody's watching me ? Let's go to sleep. +> [ 10.000000] (1:dream_master@Jacquelin) Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!! +> [ 10.000000] (2:Lazy@Jacquelin) Uuuh ? Did somebody call me ? +> [ 10.000000] (2:Lazy@Jacquelin) Going to sleep... +> [ 15.000000] (1:dream_master@Jacquelin) Suspend the lazy guy while he's sleeping... +> [ 15.000000] (1:dream_master@Jacquelin) Let him finish his siesta. +> [ 25.000000] (1:dream_master@Jacquelin) Wake up, lazy guy! +> [ 25.000000] (2:Lazy@Jacquelin) Mmm... waking up. +> [ 25.000000] (2:Lazy@Jacquelin) Going to sleep one more time... +> [ 30.000000] (1:dream_master@Jacquelin) Suspend again the lazy guy while he's sleeping... +> [ 30.000000] (1:dream_master@Jacquelin) This time, don't let him finish his siesta. +> [ 32.000000] (1:dream_master@Jacquelin) Wake up, lazy guy! +> [ 32.000000] (1:dream_master@Jacquelin) OK, goodbye now. +> [ 35.000000] (0:maestro@) Simulation time 35 +> [ 35.000000] (2:Lazy@Jacquelin) Waking up once for all! +> [ 35.000000] (2:Lazy@Jacquelin) Mmmh, goodbye now.