Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a test in teshsuite for Comm::wait_all_for.
[simgrid.git] / teshsuite / s4u / wait-all-for / wait-all-for.tesh
1 #!/usr/bin/env tesh
2
3 p Testing the wait_all_for feature of S4U
4
5 ! output sort 19
6 $ ${bindir:=.}/wait-all-for ${platfdir:=.}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
7 > [  0.000000] (1:worker@Tremblay) Sending and receiving 42 and 51 asynchronously
8 > [  0.000000] (1:worker@Tremblay) All comms have started
9 > [  0.500000] (1:worker@Tremblay) wait_all_for: Timeout reached
10 > [  0.500000] (1:worker@Tremblay) wait_all_for: 0 comms finished (#comms=4)
11 > [  1.000000] (1:worker@Tremblay) wait_all_for: Timeout reached
12 > [  1.000000] (1:worker@Tremblay) wait_all_for: 0 comms finished (#comms=4)
13 > [  1.500000] (1:worker@Tremblay) wait_all_for: Timeout reached
14 > [  1.500000] (1:worker@Tremblay) wait_all_for: 1 comms finished (#comms=4)
15 > [  2.000000] (1:worker@Tremblay) wait_all_for: Timeout reached
16 > [  2.000000] (1:worker@Tremblay) wait_all_for: 0 comms finished (#comms=3)
17 > [  2.070331] (1:worker@Tremblay) wait_all_for: 3 comms finished (#comms=3)
18 > [  2.070331] (1:worker@Tremblay) All comms have finished
19 > [  2.070331] (1:worker@Tremblay) Got 42 and 51