Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve handling of dependencies, debug and example
[simgrid.git] / examples / s4u / exec-dependent / s4u-exec-dependent.tesh
index 2c274ff..dab01ae 100644 (file)
@@ -1,21 +1,11 @@
 #!/usr/bin/env tesh
 
-$ ${bindir:=.}/s4u-exec-dependent ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
-> [  0.000000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  0.250000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  0.500000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  0.750000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  1.000000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  1.250000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  1.500000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  1.750000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  2.000000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  2.250000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  2.500000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  2.750000] (2:vetoed_worker@Fafard) child cannot start yet
-> [  3.000000] (2:vetoed_worker@Fafard) child is now in state 2
-> [  3.250000] (2:vetoed_worker@Fafard) child is now in state 2
-> [  3.500000] (2:vetoed_worker@Fafard) child is now in state 2
-> [  3.750000] (2:vetoed_worker@Fafard) child is now in state 2
-> [  4.000000] (2:vetoed_worker@Fafard) Should be okay now, child is in state 5
+! output sort
+$ ${bindir:=.}/s4u-exec-dependent ${platfdir}/small_platform.xml --log=s4u_activity.t:debug "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  2.000000] (1:worker@Fafard) Remove a dependency from 'parent 1' on 'child'
+> [  2.000000] (1:worker@Fafard) Exec 'parent 1' is complete
+> [  3.000000] (1:worker@Fafard) Remove a dependency from 'parent 2' on 'child'
+> [  3.000000] (1:worker@Fafard) All dependencies are solved, let's start 'child'
+> [  3.000000] (1:worker@Fafard) Exec 'parent 2' is complete
+> [  4.000000] (1:worker@Fafard) Exec 'child' is complete
 > [  4.000000] (0:maestro@) Simulation time 4