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;
- xbt_dynar_t s_tests = xbt_str_split(argv[3], ",");
+ xbt_dynar_t s_tests = xbt_str_split(argv[2], ",");
int tmp_test = 0;
tests = xbt_dynar_new(sizeof(int), NULL);
xbt_dynar_foreach(s_tests, iter, groups) {
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();