Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Jenkins::Flag2: use ninja if avail; verbose builds
[simgrid.git] / examples / cpp / exec-failure / s4u-exec-failure.tesh
1 #!/usr/bin/env tesh
2
3 $ ${bindir:=.}/s4u-exec-failure "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
4 > [  0.000000] (1:Dispatcher@Host3) Initiating asynchronous exec on Host1
5 > [  0.000000] (1:Dispatcher@Host3) Initiating asynchronous exec on Host2
6 > [  0.000000] (1:Dispatcher@Host3) Initiating asynchronous exec on Host3
7 > [  0.000000] (1:Dispatcher@Host3) ---------------------------------
8 > [  0.000000] (1:Dispatcher@Host3) Wait on the first exec, which host is turned off at t=10 by the another actor.
9 > [ 10.000000] (2:HostKiller@Host3) HostKiller turns off the host 'Host1'.
10 > [ 10.000000] (1:Dispatcher@Host3) Dispatcher has experienced a host failure exception, so it knows that something went wrong.
11 > [ 10.000000] (1:Dispatcher@Host3) State of each exec:
12 > [ 10.000000] (1:Dispatcher@Host3)   Exec on Host1 has state: FAILED
13 > [ 10.000000] (1:Dispatcher@Host3)   Exec on Host2 has state: STARTED
14 > [ 10.000000] (1:Dispatcher@Host3)   Exec on Host3 has state: STARTED
15 > [ 10.000000] (1:Dispatcher@Host3) ---------------------------------
16 > [ 10.000000] (1:Dispatcher@Host3) Wait on the second exec, which host is turned off at t=12 by the state profile.
17 > [ 12.000000] (1:Dispatcher@Host3) Dispatcher has experienced a host failure exception, so it knows that something went wrong.
18 > [ 12.000000] (1:Dispatcher@Host3) State of each exec:
19 > [ 12.000000] (1:Dispatcher@Host3)   Exec on Host1 has state: FAILED
20 > [ 12.000000] (1:Dispatcher@Host3)   Exec on Host2 has state: FAILED
21 > [ 12.000000] (1:Dispatcher@Host3)   Exec on Host3 has state: STARTED
22 > [ 12.000000] (1:Dispatcher@Host3) ---------------------------------
23 > [ 12.000000] (1:Dispatcher@Host3) Wait on the third exec, which should succeed.
24 > [ 20.000000] (1:Dispatcher@Host3) No exception occured.
25 > [ 20.000000] (1:Dispatcher@Host3) State of each exec:
26 > [ 20.000000] (1:Dispatcher@Host3)   Exec on Host1 has state: FAILED
27 > [ 20.000000] (1:Dispatcher@Host3)   Exec on Host2 has state: FAILED
28 > [ 20.000000] (1:Dispatcher@Host3)   Exec on Host3 has state: FINISHED