Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ad118023093fc22efb11c135c681bb1285080ab9
[simgrid.git] / examples / msg / async-wait / async-wait.tesh
1 #! ./tesh
2
3 p Test1 MSG_comm_test() with Sleep_sender > Sleep_receiver
4
5 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
6 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 5.000000 , sleep_test_time : 0.100000
7 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 1.000000 , sleep_test_time : 0.100000
8 > [  1.000000] (2:receiver@Ruby) Wait to receive a task
9 > [  5.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
10 > [  5.100000] (2:receiver@Ruby) Received "Task_0"
11 > [  5.100000] (2:receiver@Ruby) Processing "Task_0"
12 > [  5.100000] (1:sender@Tremblay) Send to receiver-0 Task_1
13 > [  5.609710] (2:receiver@Ruby) "Task_0" done
14 > [  5.609710] (2:receiver@Ruby) Wait to receive a task
15 > [  5.700000] (1:sender@Tremblay) Send to receiver-0 Task_2
16 > [  5.709710] (2:receiver@Ruby) Received "Task_1"
17 > [  5.709710] (2:receiver@Ruby) Processing "Task_1"
18 > [  6.219420] (2:receiver@Ruby) "Task_1" done
19 > [  6.219420] (2:receiver@Ruby) Wait to receive a task
20 > [  6.300000] (1:sender@Tremblay) Send to receiver-0 finalize
21 > [  6.319420] (2:receiver@Ruby) Received "Task_2"
22 > [  6.319420] (2:receiver@Ruby) Processing "Task_2"
23 > [  6.829130] (2:receiver@Ruby) "Task_2" done
24 > [  6.829130] (2:receiver@Ruby) Wait to receive a task
25 > [  6.900000] (1:sender@Tremblay) Goodbye now!
26 > [  6.929130] (2:receiver@Ruby) Received "finalize"
27 > [  6.929130] (2:receiver@Ruby) I'm done. See you!
28 > [  6.929130] (0:maestro@) Simulation time 6.92913
29
30 p Test2 MSG_comm_test() with Sleep_sender < Sleep_receiver
31
32 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait2_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
33 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 1.000000 , sleep_test_time : 0.100000
34 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 5.000000 , sleep_test_time : 0.100000
35 > [  1.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
36 > [  5.000000] (2:receiver@Ruby) Wait to receive a task
37 > [  5.100000] (2:receiver@Ruby) Received "Task_0"
38 > [  5.100000] (2:receiver@Ruby) Processing "Task_0"
39 > [  5.100000] (1:sender@Tremblay) Send to receiver-0 Task_1
40 > [  5.609710] (2:receiver@Ruby) "Task_0" done
41 > [  5.609710] (2:receiver@Ruby) Wait to receive a task
42 > [  5.700000] (1:sender@Tremblay) Send to receiver-0 Task_2
43 > [  5.709710] (2:receiver@Ruby) Received "Task_1"
44 > [  5.709710] (2:receiver@Ruby) Processing "Task_1"
45 > [  6.219420] (2:receiver@Ruby) "Task_1" done
46 > [  6.219420] (2:receiver@Ruby) Wait to receive a task
47 > [  6.300000] (1:sender@Tremblay) Send to receiver-0 finalize
48 > [  6.319420] (2:receiver@Ruby) Received "Task_2"
49 > [  6.319420] (2:receiver@Ruby) Processing "Task_2"
50 > [  6.829130] (2:receiver@Ruby) "Task_2" done
51 > [  6.829130] (2:receiver@Ruby) Wait to receive a task
52 > [  6.900000] (1:sender@Tremblay) Goodbye now!
53 > [  6.929130] (2:receiver@Ruby) Received "finalize"
54 > [  6.929130] (2:receiver@Ruby) I'm done. See you!
55 > [  6.929130] (0:maestro@) Simulation time 6.92913
56
57 p Test1 MSG_comm_wait() with Sleep_sender > Sleep_receiver
58
59 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait3_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
60 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 5.000000 , sleep_test_time : 0.000000
61 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 1.000000 , sleep_test_time : 0.000000
62 > [  1.000000] (2:receiver@Ruby) Wait to receive a task
63 > [  5.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
64 > [  5.004022] (2:receiver@Ruby) Received "Task_0"
65 > [  5.004022] (2:receiver@Ruby) Processing "Task_0"
66 > [  5.004022] (1:sender@Tremblay) Send to receiver-0 Task_1
67 > [  5.513732] (2:receiver@Ruby) "Task_0" done
68 > [  5.513732] (2:receiver@Ruby) Wait to receive a task
69 > [  5.517753] (2:receiver@Ruby) Received "Task_1"
70 > [  5.517753] (2:receiver@Ruby) Processing "Task_1"
71 > [  5.517753] (1:sender@Tremblay) Send to receiver-0 Task_2
72 > [  6.027463] (2:receiver@Ruby) "Task_1" done
73 > [  6.027463] (2:receiver@Ruby) Wait to receive a task
74 > [  6.031485] (2:receiver@Ruby) Received "Task_2"
75 > [  6.031485] (2:receiver@Ruby) Processing "Task_2"
76 > [  6.031485] (1:sender@Tremblay) Send to receiver-0 finalize
77 > [  6.541195] (2:receiver@Ruby) "Task_2" done
78 > [  6.541195] (2:receiver@Ruby) Wait to receive a task
79 > [  6.543146] (1:sender@Tremblay) Goodbye now!
80 > [  6.543146] (2:receiver@Ruby) Received "finalize"
81 > [  6.543146] (2:receiver@Ruby) I'm done. See you!
82 > [  6.543146] (0:maestro@) Simulation time 6.54315
83
84
85 p Test2 MSG_comm_wait() with Sleep_sender < Sleep_receiver
86
87 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait4_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
88 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 1.000000 , sleep_test_time : 0.000000
89 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 5.000000 , sleep_test_time : 0.000000
90 > [  1.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
91 > [  5.000000] (2:receiver@Ruby) Wait to receive a task
92 > [  5.004022] (2:receiver@Ruby) Received "Task_0"
93 > [  5.004022] (2:receiver@Ruby) Processing "Task_0"
94 > [  5.004022] (1:sender@Tremblay) Send to receiver-0 Task_1
95 > [  5.513732] (2:receiver@Ruby) "Task_0" done
96 > [  5.513732] (2:receiver@Ruby) Wait to receive a task
97 > [  5.517753] (2:receiver@Ruby) Received "Task_1"
98 > [  5.517753] (2:receiver@Ruby) Processing "Task_1"
99 > [  5.517753] (1:sender@Tremblay) Send to receiver-0 Task_2
100 > [  6.027463] (2:receiver@Ruby) "Task_1" done
101 > [  6.027463] (2:receiver@Ruby) Wait to receive a task
102 > [  6.031485] (2:receiver@Ruby) Received "Task_2"
103 > [  6.031485] (2:receiver@Ruby) Processing "Task_2"
104 > [  6.031485] (1:sender@Tremblay) Send to receiver-0 finalize
105 > [  6.541195] (2:receiver@Ruby) "Task_2" done
106 > [  6.541195] (2:receiver@Ruby) Wait to receive a task
107 > [  6.543146] (1:sender@Tremblay) Goodbye now!
108 > [  6.543146] (2:receiver@Ruby) Received "finalize"
109 > [  6.543146] (2:receiver@Ruby) I'm done. See you!
110 > [  6.543146] (0:maestro@) Simulation time 6.54315