Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revalidate tests, now that detached sends are not cancelled anymore.
[simgrid.git] / teshsuite / msg / host_on_off_processes / host_on_off_processes.tesh
1
2 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 1 --log=no_loc
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]   Start daemon on Jupiter (76296000.000000)
6 > [Jupiter:process_daemon:(2) 0.000000] [msg_test/INFO]   Execute daemon
7 > [Jupiter:process_daemon:(2) 1.000000] [msg_test/INFO]   Execute daemon
8 > [Jupiter:process_daemon:(2) 2.000000] [msg_test/INFO]   Execute daemon
9 > [Tremblay:test_launcher:(1) 3.000000] [msg_test/INFO]   Turn off Jupiter
10 > [Jupiter:process_daemon:(2) 3.000000] [msg_test/INFO]   Execute daemon
11 > [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO] Test 1 seems ok, cool !(#Processes: 1, it should be 1; #tasks: 3)
12 > [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO]   Test done. See you!
13 > [13.000000] [msg_test/INFO] Simulation time 13
14
15 ! expect signal SIGIOT
16 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 2 --log=no_loc
17 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 2:
18 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO]   Turn off Jupiter
19 > [0.000000] [simix_process/WARNING] Cannot launch actor 'process_daemon' on failed host 'Jupiter'
20 > [Tremblay:test_launcher:(1) 0.000000] [xbt/CRITICAL] Could not launch a new process on failed host Jupiter.
21
22 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 4 --log=no_loc
23 > [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
24 > [Tremblay:commRX:(2) 10.000000] [msg_test/INFO]   Start RX
25 > [Jupiter:commTX:(3) 10.000000] [msg_test/INFO]   Start TX
26 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   number of processes: 3
27 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Turn Jupiter off
28 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] Test 4 is ok.  (number of Process : 2, it should be 1 or 2 if RX has not been satisfied). An exception is raised when we turn off a node that has a process sleeping
29 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
30 > [Tremblay:commRX:(2) 25.033047] [msg_test/INFO]   Receive message: COMM
31 > [Tremblay:commRX:(2) 25.033047] [msg_test/INFO]   RX Done
32 > [25.033047] [msg_test/INFO] Simulation time 25.033
33
34 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 5 --log=no_loc
35 > [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
36 > [Jupiter:commRX:(2) 10.000000] [msg_test/INFO]   Start RX
37 > [Tremblay:commTX:(3) 10.000000] [msg_test/INFO]   Start TX
38 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   number of processes: 3
39 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Turn Jupiter off
40 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] Test 5 seems ok (number of Process: 2, it should be 2)
41 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
42 > [Tremblay:commTX:(3) 40.000000] [msg_test/INFO]   TX done
43 > [40.000000] [msg_test/INFO] Simulation time 40
44
45 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 6 --log=no_loc
46 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 6: Turn on Jupiter, assign a VM on Jupiter, launch a process inside the VM, and turn off the node
47 > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO]   Start daemon on vm0 (76296000.000000)
48 > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO]   Execute daemon
49 > [Jupiter:process_daemonJUPI:(3) 0.000000] [msg_test/INFO]   Start daemon on Jupiter (76296000.000000)
50 > [Jupiter:process_daemonJUPI:(3) 0.000000] [msg_test/INFO]   Execute daemon
51 > [Jupiter:process_daemonJUPI:(3) 1.000001] [msg_test/INFO]   Execute daemon
52 > [Jupiter:process_daemonJUPI:(3) 2.000002] [msg_test/INFO]   Execute daemon
53 > [Jupiter:process_daemonJUPI:(3) 3.000004] [msg_test/INFO]   Execute daemon
54 > [Jupiter:process_daemonJUPI:(3) 4.000005] [msg_test/INFO]   Execute daemon
55 > [Jupiter:process_daemonJUPI:(3) 5.000006] [msg_test/INFO]   Execute daemon
56 > [Jupiter:process_daemonJUPI:(3) 6.000007] [msg_test/INFO]   Execute daemon
57 > [Jupiter:process_daemonJUPI:(3) 7.000008] [msg_test/INFO]   Execute daemon
58 > [Jupiter:process_daemonJUPI:(3) 8.000009] [msg_test/INFO]   Execute daemon
59 > [Jupiter:process_daemonJUPI:(3) 9.000011] [msg_test/INFO]   Execute daemon
60 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Turn Jupiter off
61 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Shutdown vm0
62 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Destroy vm0
63 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO] Test 6 is also weird: when the node Jupiter is turned off once again, the VM and its daemon are not killed. However, the issue regarding the shutdown of hosted VMs can be seen a feature not a bug ;)
64 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Test done. See you!
65 > [10.000000] [msg_test/INFO] Simulation time 10