Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
implement Exec::wait_for()
[simgrid.git] / examples / s4u / exec-waitfor / s4u-exec-waitfor.tesh
1 #!/usr/bin/env tesh
2
3 $ ${bindir:=.}/s4u-exec-waitfor ${platfdir}/multicore_machine.xml "--log=root.fmt:[%10.6r]%e[%14P]%e%m%n"
4 > [  0.000000] [        worker] Create an activity that should run for 5 seconds
5 > [  0.000000] [        worker] But let it end after 3 seconds
6 > [  3.000000] [        worker] Execution Timeout!
7 > [  3.000000] [        worker] Create another activity that should run for 5 seconds and wait for it for 6 seconds
8 > [  8.000000] [        worker] Execution complete
9 > [  8.000000] [        worker] Finally test with a parallel execution
10 > [ 10.000000] [        worker] Parallel Execution Timeout!