From: Frederic Suter Date: Wed, 16 Mar 2016 12:04:37 +0000 (+0100) Subject: get rid of some useless deployment files X-Git-Tag: v3_13~405 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a4ba3ac3908eb9bf0f321f354e3f331491f79539 get rid of some useless deployment files we can create processes after all --- diff --git a/teshsuite/msg/get_sender/CMakeLists.txt b/teshsuite/msg/get_sender/CMakeLists.txt index 87fa87338e..27ac80de83 100644 --- a/teshsuite/msg/get_sender/CMakeLists.txt +++ b/teshsuite/msg/get_sender/CMakeLists.txt @@ -3,6 +3,5 @@ target_link_libraries(get_sender simgrid) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/get_sender.tesh PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/get_sender.c PARENT_SCOPE) -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/get_sender_d.xml PARENT_SCOPE) ADD_TESH_FACTORIES(tesh-msg-get-sender "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/get_sender --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/get_sender ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/get_sender/get_sender.tesh) diff --git a/teshsuite/msg/get_sender/get_sender.c b/teshsuite/msg/get_sender/get_sender.c index 75e816f0e0..8cdab2f534 100644 --- a/teshsuite/msg/get_sender/get_sender.c +++ b/teshsuite/msg/get_sender/get_sender.c @@ -36,10 +36,9 @@ int main(int argc, char *argv[]) MSG_create_environment(argv[1]); - MSG_function_register("send", &sender_fun); - MSG_function_register("receive", &receiver_fun); - MSG_launch_application(argv[2]); - res = MSG_main(); + MSG_process_create("send", sender_fun, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("receive", receiver_fun, NULL, MSG_get_host_by_name("Tremblay")); + res = MSG_main(); return res != MSG_OK; } diff --git a/teshsuite/msg/get_sender/get_sender.tesh b/teshsuite/msg/get_sender/get_sender.tesh index d6a0c952af..a7a540808e 100644 --- a/teshsuite/msg/get_sender/get_sender.tesh +++ b/teshsuite/msg/get_sender/get_sender.tesh @@ -1,5 +1,5 @@ ! output sort -$ ./get_sender ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/get_sender_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +$ ./get_sender ${srcdir:=.}/../../../examples/platforms/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (1:send@Tremblay) Sending > [ 0.000000] (2:receive@Tremblay) Receiving > [ 0.000195] (2:receive@Tremblay) Got a message sent by 'send' diff --git a/teshsuite/msg/get_sender/get_sender_d.xml b/teshsuite/msg/get_sender/get_sender_d.xml deleted file mode 100644 index 2437d64f05..0000000000 --- a/teshsuite/msg/get_sender/get_sender_d.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/teshsuite/msg/host_on_off/CMakeLists.txt b/teshsuite/msg/host_on_off/CMakeLists.txt index 542313e0b9..8349a2d587 100644 --- a/teshsuite/msg/host_on_off/CMakeLists.txt +++ b/teshsuite/msg/host_on_off/CMakeLists.txt @@ -8,6 +8,5 @@ foreach(x host_on_off host_on_off_wait host_on_off_recv) ADD_TESH_FACTORIES(tesh-msg-${x} "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/host_on_off --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/host_on_off ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/host_on_off/${x}.tesh) endforeach() -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_d.xml PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} PARENT_SCOPE) set(tesh_files ${tesh_files} PARENT_SCOPE) diff --git a/teshsuite/msg/host_on_off/host_on_off.c b/teshsuite/msg/host_on_off/host_on_off.c index fa7b228322..fe7a4fd977 100644 --- a/teshsuite/msg/host_on_off/host_on_off.c +++ b/teshsuite/msg/host_on_off/host_on_off.c @@ -94,14 +94,12 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); - xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n" - "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); + xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("master", master); - MSG_function_register("slave", slave); - MSG_launch_application(argv[2]); + MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("slave", slave, NULL, MSG_get_host_by_name("Jupiter")); res = MSG_main(); diff --git a/teshsuite/msg/host_on_off/host_on_off.tesh b/teshsuite/msg/host_on_off/host_on_off.tesh index 536e5ccb86..9b66f6589a 100644 --- a/teshsuite/msg/host_on_off/host_on_off.tesh +++ b/teshsuite/msg/host_on_off/host_on_off.tesh @@ -1,13 +1,13 @@ -$ ./host_on_off ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_d.xml +$ ./host_on_off ${srcdir:=.}/../../../examples/platforms/small_platform.xml > [Tremblay:master:(1) 0.000000] [msg_test/INFO] Sending "task on" > [Jupiter:slave:(2) 0.824497] [msg_test/INFO] Task "task on" done > [Tremblay:master:(1) 1.169155] [msg_test/INFO] Sending "task off" > [Tremblay:master:(1) 2.169155] [msg_test/INFO] Sending "task on without proc" > [Tremblay:master:(1) 3.169155] [msg_test/INFO] Sending "task on with proc" > [Tremblay:master:(1) 3.338309] [msg_test/INFO] Sending "finalize" -> [Jupiter:slave:(4) 3.993652] [msg_test/INFO] Task "task on with proc" done +> [Jupiter:slave:(3) 3.993652] [msg_test/INFO] Task "task on with proc" done > [Tremblay:master:(1) 4.012666] [msg_test/INFO] Goodbye now! -> [Jupiter:slave:(4) 4.012666] [msg_test/INFO] I'm done. See you! +> [Jupiter:slave:(3) 4.012666] [msg_test/INFO] I'm done. See you! > [4.012666] [msg_test/INFO] Simulation time 4.01267 diff --git a/teshsuite/msg/host_on_off/host_on_off_d.xml b/teshsuite/msg/host_on_off/host_on_off_d.xml deleted file mode 100644 index 8ff8862c63..0000000000 --- a/teshsuite/msg/host_on_off/host_on_off_d.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/teshsuite/msg/host_on_off/host_on_off_recv.c b/teshsuite/msg/host_on_off/host_on_off_recv.c index 121d0b9a3e..92e4ec083a 100644 --- a/teshsuite/msg/host_on_off/host_on_off_recv.c +++ b/teshsuite/msg/host_on_off/host_on_off_recv.c @@ -70,14 +70,12 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); - xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n" - "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); + xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("master", master); - MSG_function_register("slave", slave); - MSG_launch_application(argv[2]); + MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("slave", slave, NULL, MSG_get_host_by_name("Jupiter")); res = MSG_main(); diff --git a/teshsuite/msg/host_on_off/host_on_off_recv.tesh b/teshsuite/msg/host_on_off/host_on_off_recv.tesh index 782ee41518..271bae320e 100644 --- a/teshsuite/msg/host_on_off/host_on_off_recv.tesh +++ b/teshsuite/msg/host_on_off/host_on_off_recv.tesh @@ -1,4 +1,4 @@ -$ ./host_on_off_recv ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_d.xml +$ ./host_on_off_recv ${srcdir:=.}/../../../examples/platforms/small_platform.xml > [Tremblay:master:(1) 0.000000] [msg_test/INFO] Master starting > [Jupiter:slave:(2) 0.000000] [msg_test/INFO] Slave receiving > [Tremblay:master:(1) 1.000000] [msg_test/INFO] Turning off the slave host diff --git a/teshsuite/msg/host_on_off/host_on_off_wait.c b/teshsuite/msg/host_on_off/host_on_off_wait.c index 2bf8558029..3b84c4d35b 100644 --- a/teshsuite/msg/host_on_off/host_on_off_wait.c +++ b/teshsuite/msg/host_on_off/host_on_off_wait.c @@ -49,14 +49,12 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); - xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n" - "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); + xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("master", master); - MSG_function_register("slave", slave); - MSG_launch_application(argv[2]); + MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("slave", slave, NULL, MSG_get_host_by_name("Jupiter")); res = MSG_main(); diff --git a/teshsuite/msg/host_on_off/host_on_off_wait.tesh b/teshsuite/msg/host_on_off/host_on_off_wait.tesh index 4071020e3e..dd378f5627 100644 --- a/teshsuite/msg/host_on_off/host_on_off_wait.tesh +++ b/teshsuite/msg/host_on_off/host_on_off_wait.tesh @@ -1,4 +1,4 @@ -$ ./host_on_off_wait ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_d.xml +$ ./host_on_off_wait ${srcdir:=.}/../../../examples/platforms/small_platform.xml > [Tremblay:master:(1) 0.000000] [msg_test/INFO] Master waiting > [Jupiter:slave:(2) 0.000000] [msg_test/INFO] Slave waiting > [Tremblay:master:(1) 1.000000] [msg_test/INFO] Turning off the slave host diff --git a/teshsuite/msg/host_on_off_processes/CMakeLists.txt b/teshsuite/msg/host_on_off_processes/CMakeLists.txt index 1077205679..274fa31442 100644 --- a/teshsuite/msg/host_on_off_processes/CMakeLists.txt +++ b/teshsuite/msg/host_on_off_processes/CMakeLists.txt @@ -2,7 +2,6 @@ add_executable (host_on_off_processes host_on_off_processes.c) target_link_libraries(host_on_off_processes simgrid) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_processes.tesh PARENT_SCOPE) -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_processes_d.xml PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_processes.c PARENT_SCOPE) ADD_TESH_FACTORIES(tesh-msg-host-on-off-processes "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/host_on_off_processes --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/host_on_off_processes ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh) diff --git a/teshsuite/msg/host_on_off_processes/host_on_off_processes.c b/teshsuite/msg/host_on_off_processes/host_on_off_processes.c index 740a95ceb7..537e596c9d 100644 --- a/teshsuite/msg/host_on_off_processes/host_on_off_processes.c +++ b/teshsuite/msg/host_on_off_processes/host_on_off_processes.c @@ -217,8 +217,7 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); - xbt_assert(argc > 3,"Usage: %s platform_file deployment_file test_number\n" - "\tExample: %s msg_platform.xml msg_deployment.xml 1\n", argv[0], argv[0]); + xbt_assert(argc == 3,"Usage: %s platform_file test_number\n\tExample: %s msg_platform.xml 1\n", argv[0], argv[0]); unsigned int iter; char *groups; @@ -233,11 +232,7 @@ int main(int argc, char *argv[]) MSG_create_environment(argv[1]); - MSG_function_register("test_launcher", test_launcher); - MSG_function_register("process_daemon", process_daemon); - MSG_function_register("process_sleep", process_sleep); - - MSG_launch_application(argv[2]); + MSG_process_create("test_launcher", test_launcher, NULL, MSG_get_host_by_name("Tremblay")); res = MSG_main(); diff --git a/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh b/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh index 1f4b5830f7..e0e98d7388 100644 --- a/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh +++ b/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh @@ -1,5 +1,5 @@ -$ ./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 +$ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml 1 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 1: > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Create a process on Jupiter > [Jupiter:process_daemon:(2) 0.000000] [msg_test/INFO] Start daemon on Jupiter (76296000.000000) @@ -12,7 +12,7 @@ $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platfor > [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO] Test done. See you! > [13.000000] [msg_test/INFO] Simulation time 13 -$ ./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 +$ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml 2 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 2: > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Turn off Jupiter > [0.000000] [simix_process/WARNING] Cannot launch process 'process_daemon' on failed host 'Jupiter' @@ -24,7 +24,7 @@ $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platfor > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] Test done. See you! > [20.000000] [msg_test/INFO] Simulation time 20 -$ ./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 +$ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml 3 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 3: > [Jupiter:process_sleep:(2) 0.000000] [msg_test/INFO] I'm alive but I should sleep > [Jupiter:process_sleep:(2) 10.000000] [msg_test/INFO] I'm alive but I should sleep @@ -43,7 +43,7 @@ $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platfor > [Tremblay:test_launcher:(1) 10100.000000] [msg_test/INFO] Test done. See you! > [10100.000000] [msg_test/INFO] Simulation time 10100 -$ ./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 +$ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml 4 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error > [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 > [Tremblay:commRX:(2) 10.000000] [msg_test/INFO] Start RX > [Jupiter:commTX:(3) 10.000000] [msg_test/INFO] Start TX @@ -55,7 +55,7 @@ $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platfor > [Tremblay:commRX:(2) 20.000000] [msg_test/INFO] RX Done > [20.000000] [msg_test/INFO] Simulation time 20 -$ ./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 +$ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml 5 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error > [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 > [Jupiter:commRX:(2) 10.000000] [msg_test/INFO] Start RX > [Tremblay:commTX:(3) 10.000000] [msg_test/INFO] Start TX @@ -66,7 +66,7 @@ $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platfor > [Tremblay:commTX:(3) 40.000000] [msg_test/INFO] TX done > [40.000000] [msg_test/INFO] Simulation time 40 -$ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_processes_d.xml 6 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error +$ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml 6 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error > [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 > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO] Start daemon on vm0 (76296000.000000) > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO] Execute daemon diff --git a/teshsuite/msg/host_on_off_processes/host_on_off_processes_d.xml b/teshsuite/msg/host_on_off_processes/host_on_off_processes_d.xml deleted file mode 100644 index a9a6559925..0000000000 --- a/teshsuite/msg/host_on_off_processes/host_on_off_processes_d.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/teshsuite/msg/pid/CMakeLists.txt b/teshsuite/msg/pid/CMakeLists.txt index 1f5477ae3d..7b0b4d9e07 100644 --- a/teshsuite/msg/pid/CMakeLists.txt +++ b/teshsuite/msg/pid/CMakeLists.txt @@ -2,7 +2,6 @@ add_executable (pid pid.c) target_link_libraries(pid simgrid) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/pid.tesh PARENT_SCOPE) -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/pid_d.xml PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/pid.c PARENT_SCOPE) ADD_TESH_FACTORIES(tesh-msg-pid "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/pid --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/pid ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/pid/pid.tesh) diff --git a/teshsuite/msg/pid/pid.c b/teshsuite/msg/pid/pid.c index 081d8c0604..f47aa0741b 100644 --- a/teshsuite/msg/pid/pid.c +++ b/teshsuite/msg/pid/pid.c @@ -50,13 +50,14 @@ int main(int argc, char *argv[]) MSG_init(&argc, argv); - MSG_function_register("sendpid", &sendpid); - MSG_function_register("killall", &killall); - - MSG_process_killall(atoi(argv[3])); + MSG_process_killall(atoi(argv[2])); MSG_create_environment(argv[1]); - MSG_launch_application(argv[2]); + MSG_process_create("sendpid", sendpid, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("sendpid", sendpid, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("sendpid", sendpid, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("killall", killall, NULL, MSG_get_host_by_name("Tremblay")); + res = MSG_main(); return res != MSG_OK; diff --git a/teshsuite/msg/pid/pid.tesh b/teshsuite/msg/pid/pid.tesh index 54c1a3d1c1..6752d80733 100644 --- a/teshsuite/msg/pid/pid.tesh +++ b/teshsuite/msg/pid/pid.tesh @@ -1,4 +1,4 @@ -$ ./pid ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/pid_d.xml 0 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +$ ./pid ${srcdir:=.}/../../../examples/platforms/small_platform.xml 0 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (1:sendpid@Tremblay) Sending pid of "1". > [ 0.000000] (2:sendpid@Tremblay) Sending pid of "2". > [ 0.000000] (3:sendpid@Tremblay) Sending pid of "3". @@ -12,7 +12,7 @@ $ ./pid ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.} > [ 0.001206] (4:killall@Tremblay) Killing process "3". > [ 0.001206] (3:sendpid@Tremblay) Process "3" killed. -$ ./pid ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/pid_d.xml 2 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +$ ./pid ${srcdir:=.}/../../../examples/platforms/small_platform.xml 2 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (2:sendpid@Tremblay) Sending pid of "2". > [ 0.000000] (3:sendpid@Tremblay) Sending pid of "3". > [ 0.000000] (4:sendpid@Tremblay) Sending pid of "4". diff --git a/teshsuite/msg/pid/pid_d.xml b/teshsuite/msg/pid/pid_d.xml deleted file mode 100644 index e2ae5a4160..0000000000 --- a/teshsuite/msg/pid/pid_d.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/teshsuite/msg/process/CMakeLists.txt b/teshsuite/msg/process/CMakeLists.txt index 530bb37350..28187bb21c 100644 --- a/teshsuite/msg/process/CMakeLists.txt +++ b/teshsuite/msg/process/CMakeLists.txt @@ -3,6 +3,5 @@ target_link_libraries(process simgrid) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/process.tesh PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/process.c PARENT_SCOPE) -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/process_d.xml PARENT_SCOPE) ADD_TESH_FACTORIES(tesh-msg-process "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/process --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/process ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/process/process.tesh) diff --git a/teshsuite/msg/process/process.c b/teshsuite/msg/process/process.c index e29a615adf..57a7fdbf15 100644 --- a/teshsuite/msg/process/process.c +++ b/teshsuite/msg/process/process.c @@ -58,15 +58,12 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); - xbt_assert(argc == 3, "Usage: %s platform_file deployment_file\n" - "\n Example: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); + xbt_assert(argc == 2, "Usage: %s platform_file\n\t Example: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("master", master); - MSG_function_register("slave", slave); - - MSG_launch_application(argv[2]); + MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("slave", slave, NULL, MSG_get_host_by_name("Tremblay")); res = MSG_main(); diff --git a/teshsuite/msg/process/process.tesh b/teshsuite/msg/process/process.tesh index f45ddb707c..ddcc6a997a 100644 --- a/teshsuite/msg/process/process.tesh +++ b/teshsuite/msg/process/process.tesh @@ -1,5 +1,5 @@ -$ ./process ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/process_d.xml +$ ./process ${srcdir:=.}/../../../examples/platforms/small_platform.xml > [Tremblay:slave:(2) 0.500000] [msg_test/INFO] Slave started (PID:2, PPID:0) > [Tremblay:slave:(2) 0.500000] [msg_test/INFO] Plop i am not suspended > [Tremblay:master:(1) 1.000000] [msg_test/INFO] Process(pid=1, ppid=0, name=master) diff --git a/teshsuite/msg/process/process_d.xml b/teshsuite/msg/process/process_d.xml deleted file mode 100644 index 2b4aabc675..0000000000 --- a/teshsuite/msg/process/process_d.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/teshsuite/msg/process_join/CMakeLists.txt b/teshsuite/msg/process_join/CMakeLists.txt index 17b581f0d8..91cbae7744 100644 --- a/teshsuite/msg/process_join/CMakeLists.txt +++ b/teshsuite/msg/process_join/CMakeLists.txt @@ -3,6 +3,5 @@ target_link_libraries(process_join simgrid) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/process_join.tesh PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/process_join.c PARENT_SCOPE) -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/process_join_d.xml PARENT_SCOPE) ADD_TESH_FACTORIES(tesh-msg-process-join "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/process_join --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/process_join ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/process_join/process_join.tesh) diff --git a/teshsuite/msg/process_join/process_join.c b/teshsuite/msg/process_join/process_join.c index 87f5245cd4..67cb1ad4e0 100644 --- a/teshsuite/msg/process_join/process_join.c +++ b/teshsuite/msg/process_join/process_join.c @@ -48,14 +48,11 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); - xbt_assert(argc == 3, "Usage: %s platform_file deployment_file\n" - "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); + xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("master", master); - MSG_function_register("slave", slave); - MSG_launch_application(argv[2]); + MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay")); res = MSG_main(); diff --git a/teshsuite/msg/process_join/process_join.tesh b/teshsuite/msg/process_join/process_join.tesh index 1afe5644cd..1eb59c74d8 100644 --- a/teshsuite/msg/process_join/process_join.tesh +++ b/teshsuite/msg/process_join/process_join.tesh @@ -1,5 +1,5 @@ -$ ./process_join$EXEEXT ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/process_join_d.xml +$ ./process_join$EXEEXT ${srcdir:=.}/../../../examples/platforms/small_platform.xml > [Tremblay:master:(1) 0.000000] [msg_test/INFO] Start slave > [Tremblay:slave from master:(2) 0.000000] [msg_test/INFO] Slave started > [Tremblay:master:(1) 0.000000] [msg_test/INFO] Join the slave (timeout 2) diff --git a/teshsuite/msg/process_join/process_join_d.xml b/teshsuite/msg/process_join/process_join_d.xml deleted file mode 100644 index ea69ac8dc1..0000000000 --- a/teshsuite/msg/process_join/process_join_d.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/teshsuite/msg/storage/CMakeLists.txt b/teshsuite/msg/storage/CMakeLists.txt index b756abf448..04e147d173 100644 --- a/teshsuite/msg/storage/CMakeLists.txt +++ b/teshsuite/msg/storage/CMakeLists.txt @@ -10,5 +10,4 @@ endforeach() set(tesh_files ${tesh_files} PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} PARENT_SCOPE) -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/deployment.xml PARENT_SCOPE) diff --git a/teshsuite/msg/storage/deployment.xml b/teshsuite/msg/storage/deployment.xml deleted file mode 100644 index d3dc3b385b..0000000000 --- a/teshsuite/msg/storage/deployment.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/teshsuite/msg/storage/storage_basic.c b/teshsuite/msg/storage/storage_basic.c index cb41712279..dcccb93717 100644 --- a/teshsuite/msg/storage/storage_basic.c +++ b/teshsuite/msg/storage/storage_basic.c @@ -190,13 +190,12 @@ int main(int argc, char *argv[]) MSG_init(&argc, argv); /* Check the arguments */ - xbt_assert(argc > 2,"Usage: %s platform_file deployment_file \n", argv[0]); + xbt_assert(argc == 2,"Usage: %s platform_file\n", argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("client", client); - MSG_function_register("server", server); - MSG_launch_application(argv[2]); + MSG_process_create("server", server, NULL, MSG_get_host_by_name("alice")); + MSG_process_create("client", client, NULL, MSG_get_host_by_name("bob")); msg_error_t res = MSG_main(); XBT_INFO("Simulated time: %g", MSG_get_clock()); diff --git a/teshsuite/msg/storage/storage_basic.tesh b/teshsuite/msg/storage/storage_basic.tesh index d42b9ce74e..2aa51a38f4 100644 --- a/teshsuite/msg/storage/storage_basic.tesh +++ b/teshsuite/msg/storage/storage_basic.tesh @@ -1,5 +1,4 @@ -$ ./storage_basic$EXEEXT --cfg=path:${srcdir:=.} ${srcdir:=.}/../../../examples/platforms/storage/storage.xml ${srcdir:=.}/deployment.xml 0 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" -> [ 0.000000] (0:maestro@) The custom configuration 'path' is already defined by user! +$ ./storage_basic$EXEEXT ${srcdir:=.}/../../../examples/platforms/storage/storage.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (1:server@alice) *** Storage info on alice *** > [ 0.000000] (1:server@alice) Storage name: Disk2, mount name: c: > [ 0.000000] (1:server@alice) Free size: 534479374867 bytes diff --git a/teshsuite/msg/task_destroy_cancel/CMakeLists.txt b/teshsuite/msg/task_destroy_cancel/CMakeLists.txt index 645bb7f57e..ad57cd7d78 100644 --- a/teshsuite/msg/task_destroy_cancel/CMakeLists.txt +++ b/teshsuite/msg/task_destroy_cancel/CMakeLists.txt @@ -3,6 +3,5 @@ target_link_libraries(task_destroy_cancel simgrid) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/task_destroy_cancel.tesh PARENT_SCOPE) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/task_destroy_cancel.c PARENT_SCOPE) -set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/task_destroy_cancel_d.xml PARENT_SCOPE) ADD_TESH_FACTORIES(tesh-msg-task-destroy-cancel "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/task_destroy_cancel --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/task_destroy_cancel ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.tesh) diff --git a/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c b/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c index 2115622106..020e7777e1 100644 --- a/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c +++ b/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c @@ -126,15 +126,12 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); - xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n" - "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); + xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("master", master); - MSG_function_register("slave", slave); - - MSG_launch_application(argv[2]); + MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("slave", slave, NULL, MSG_get_host_by_name("Jupiter")); res = MSG_main(); diff --git a/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.tesh b/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.tesh index 9687b08012..3a672ec53b 100644 --- a/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.tesh +++ b/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.tesh @@ -1,5 +1,5 @@ -$ ./task_destroy_cancel ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/task_destroy_cancel_d.xml +$ ./task_destroy_cancel ${srcdir:=.}/../../../examples/platforms/small_platform.xml > [Tremblay:master:(1) 0.000000] [msg_test/INFO] Sending task: "normal" > [Jupiter:slave:(2) 0.169155] [msg_test/INFO] Handling task "normal" > [Tremblay:master:(1) 0.169155] [msg_test/INFO] Canceling task "cancel directly" directly diff --git a/teshsuite/msg/task_destroy_cancel/task_destroy_cancel_d.xml b/teshsuite/msg/task_destroy_cancel/task_destroy_cancel_d.xml deleted file mode 100644 index 8ff8862c63..0000000000 --- a/teshsuite/msg/task_destroy_cancel/task_destroy_cancel_d.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/teshsuite/msg/trace/CMakeLists.txt b/teshsuite/msg/trace/CMakeLists.txt index b9413eba73..f04058dabc 100644 --- a/teshsuite/msg/trace/CMakeLists.txt +++ b/teshsuite/msg/trace/CMakeLists.txt @@ -1,22 +1,19 @@ add_executable (test_trace_integration test_trace_integration.c) target_link_libraries(test_trace_integration simgrid) -set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/trace.tesh PARENT_SCOPE) -set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/test_trace_integration.c PARENT_SCOPE) -set(xml_files - ${xml_files} - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1.0-hbp1.0-hbp1.0.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1.0-hbp3.0-hbp4.0.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1.5-hbp1.5.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s0-c0s1.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s0-c1s0.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s1-c0s2.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s1-c2s2.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s2-c1s0.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s2-c1s1.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c1s1-c1s2.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c1s1-c3s2.xml - ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp2.5-hbp1.5.xml - PARENT_SCOPE) +set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/trace.tesh PARENT_SCOPE) +set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/test_trace_integration.c PARENT_SCOPE) +set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1.0-hbp1.0-hbp1.0.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1.0-hbp3.0-hbp4.0.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1.5-hbp1.5.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s0-c0s1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s0-c1s0.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s1-c0s2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s1-c2s2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s2-c1s0.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c0s2-c1s1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c1s1-c1s2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp1-c1s1-c3s2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/test-hbp2.5-hbp1.5.xml PARENT_SCOPE) ADD_TESH_FACTORIES(tesh-msg-trace "thread;ucontext;raw" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/msg/trace --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/trace ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/trace/trace.tesh)