Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / teshsuite / msg / host_on_off_processes / host_on_off_processes.tesh
1
2 $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_processes_d.xml 1 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error
3 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 1:
4 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO]   Create a process on Jupiter
5 > [Jupiter:process_daemon:(2) 0.000000] [msg_test/INFO]   Execute deamon
6 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO]   Turn off Jupiter
7 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO] Test 1 seems ok, cool !(number of Process : 1, it should be 1 (i.e. the Test one))
8 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Test done. See you!
9 > [10.000000] [msg_test/INFO] Simulation time 10
10
11 $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_processes_d.xml 2 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error
12 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 2:
13 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO]   Turn off Jupiter
14 > [0.000000] [simix_process/WARNING] Cannot launch process 'process_daemon' on failed host 'Jupiter'
15 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Test 2 does not crash, WTF ?!(number of Process : 1, it should be 1)
16 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Ok so let's turn on/off the node to see whether the process is correctly bound to Jupiter
17 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Turn off
18 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   sleep
19 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] number of Process : 1 it should be 1. The daemon that has been created for test2 has been correctly destroyed....ok at least it looks rigorous, cool ! You just have to disallow the possibility to create a new process on a node when the node is off.)
20 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
21 > [20.000000] [msg_test/INFO] Simulation time 20
22
23 $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_processes_d.xml 3 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error
24 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 3:
25 > [Jupiter:process_sleep:(2) 0.000000] [msg_test/INFO]   I'm alive but I should sleep
26 > [Jupiter:process_sleep:(2) 10.000000] [msg_test/INFO]   I'm alive but I should sleep
27 > [Jupiter:process_sleep:(2) 20.000000] [msg_test/INFO]   I'm alive but I should sleep
28 > [Jupiter:process_sleep:(2) 30.000000] [msg_test/INFO]   I'm alive but I should sleep
29 > [Jupiter:process_sleep:(2) 40.000000] [msg_test/INFO]   I'm alive but I should sleep
30 > [Jupiter:process_sleep:(2) 50.000000] [msg_test/INFO]   I'm alive but I should sleep
31 > [Jupiter:process_sleep:(2) 60.000000] [msg_test/INFO]   I'm alive but I should sleep
32 > [Jupiter:process_sleep:(2) 70.000000] [msg_test/INFO]   I'm alive but I should sleep
33 > [Jupiter:process_sleep:(2) 80.000000] [msg_test/INFO]   I'm alive but I should sleep
34 > [Jupiter:process_sleep:(2) 90.000000] [msg_test/INFO]   I'm alive but I should sleep
35 > [Tremblay:test_launcher:(1) 100.000000] [msg_test/INFO]   Turn off
36 > [Jupiter:process_sleep:(2) 100.000000] [msg_test/INFO]   I'm alive but I should sleep
37 > [Tremblay:test_launcher:(1) 100.000000] [msg_test/INFO]   sleep for 10 seconds
38 > [Tremblay:test_launcher:(1) 10100.000000] [msg_test/INFO] number of Process : 1 it should be 1 (i.e. the Test one))
39 > [Tremblay:test_launcher:(1) 10100.000000] [msg_test/INFO]   Test done. See you!
40 > [10100.000000] [msg_test/INFO] Simulation time 10100
41
42 $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_processes_d.xml 4 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error
43 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 4 (turn off src during a communication) : Create a Process/task to make a communication between Jupiter and Tremblay and turn off Jupiter during the communication
44 > [Tremblay:commRX:(2) 10.000000] [msg_test/INFO]   Start RX
45 > [Jupiter:commTX:(3) 10.000000] [msg_test/INFO]   Start TX
46 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   number of processes: 3
47 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Turn Jupiter off
48 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] Test 4 seems ok  (number of Process : 2, it should be 1 or 2 if RX has not been satisfied) cool, you can now turn off a node that has a process paused by a sleep call
49 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
50 > [Tremblay:commRX:(2) 20.000000] [msg_test/INFO]   Receive message: TRANSFERT_FAILURE
51 > [Tremblay:commRX:(2) 20.000000] [msg_test/INFO]   RX Done
52 > [20.000000] [msg_test/INFO] Simulation time 20
53
54 $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_processes_d.xml 5 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error
55 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 5 (turn off dest during a communication : Create a Process/task to make a communication between Tremblay and Jupiter and turn off Jupiter during the communication
56 > [Jupiter:commRX:(2) 10.000000] [msg_test/INFO]   Start RX
57 > [Tremblay:commTX:(3) 10.000000] [msg_test/INFO]   Start TX
58 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   number of processes: 3
59 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Turn Jupiter off
60 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] Test 4 seems ok, cool !(number of Process : 2, it should be 2
61 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
62 > [Tremblay:commTX:(3) 40.000000] [msg_test/INFO]   TX done
63 > [40.000000] [msg_test/INFO] Simulation time 40