X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ed0538958d148f641416687454e0eae197607d65..f26cd6685142f04fd0024837cd5251ceb34dbc41:/examples/java/suspend/suspend.tesh diff --git a/examples/java/suspend/suspend.tesh b/examples/java/suspend/suspend.tesh index 000a4492f3..ec22ec704d 100644 --- a/examples/java/suspend/suspend.tesh +++ b/examples/java/suspend/suspend.tesh @@ -1,15 +1,13 @@ -# compile the example -$ javac -classpath $MSG4JAVA_CLASSPATH$ENV_SEPARATOR. *.java - -# run the comm_time sample -$ java -classpath $MSG4JAVA_CLASSPATH$ENV_SEPARATOR SuspendTest suspend_platform.xml suspend_deployment.xml -> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Hello ! -> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Let's create a lazy guy. -> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Current host name : Jacquelin -> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Let's wait a little bit... -> [Jacquelin:LazyGuy:(2) 0.000000] [jmsg/INFO] Hello ! -> [Jacquelin:LazyGuy:(2) 0.000000] [jmsg/INFO] Nobody's watching me ? Let's go to sleep. -> [Jacquelin:DreamMaster:(1) 10.000000] [jmsg/INFO] Let's wake the lazy guy up! >:) -> [Jacquelin:DreamMaster:(1) 10.000000] [jmsg/INFO] OK, goodbye now. -> [Jacquelin:LazyGuy:(2) 10.000000] [jmsg/INFO] Uuuh ? Did somebody call me ? -> [Jacquelin:LazyGuy:(2) 10.000000] [jmsg/INFO] Mmmh, goodbye now. \ No newline at end of file +#! tesh + +! output sort 19 +$ java -classpath ${classpath:=.} suspend/Suspend ${srcdir:=.}/../platforms/platform.xml ${srcdir:=.}/suspend/suspendDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +> [ 0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up. +> [ 0.000000] (1:suspend.DreamMaster@Jacquelin) Let's create a lazy guy. +> [ 0.000000] (1:suspend.DreamMaster@Jacquelin) Let's wait a little bit... +> [ 0.000000] (2:Lazy@Jacquelin) Nobody's watching me ? Let's go to sleep. +> [ 10.000000] (0:@) MSG_main finished; Cleaning up the simulation... +> [ 10.000000] (1:suspend.DreamMaster@Jacquelin) Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!! +> [ 10.000000] (1:suspend.DreamMaster@Jacquelin) OK, goodbye now. +> [ 10.000000] (2:Lazy@Jacquelin) Uuuh ? Did somebody call me ? +> [ 10.000000] (2:Lazy@Jacquelin) Mmmh, goodbye now.