Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tesh: Use 0 as a default sorting prefix
[simgrid.git] / examples / java / suspend / suspend.tesh
index 000a449..ec22ec7 100644 (file)
@@ -1,15 +1,13 @@
-# compile the example\r
-$ javac -classpath $MSG4JAVA_CLASSPATH$ENV_SEPARATOR. *.java\r
-\r
-# run the comm_time sample\r
-$ java -classpath $MSG4JAVA_CLASSPATH$ENV_SEPARATOR SuspendTest suspend_platform.xml suspend_deployment.xml\r
-> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Hello !\r
-> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Let's create a lazy guy.\r
-> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Current host  name : Jacquelin\r
-> [Jacquelin:DreamMaster:(1) 0.000000] [jmsg/INFO] Let's wait a little bit...\r
-> [Jacquelin:LazyGuy:(2) 0.000000] [jmsg/INFO] Hello !\r
-> [Jacquelin:LazyGuy:(2) 0.000000] [jmsg/INFO] Nobody's watching me ? Let's go to sleep.\r
-> [Jacquelin:DreamMaster:(1) 10.000000] [jmsg/INFO] Let's wake the lazy guy up! >:) \r
-> [Jacquelin:DreamMaster:(1) 10.000000] [jmsg/INFO] OK, goodbye now.\r
-> [Jacquelin:LazyGuy:(2) 10.000000] [jmsg/INFO] Uuuh ? Did somebody call me ?\r
-> [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.