include teshsuite/msg/platform-properties/platform-properties.c
include teshsuite/msg/platform-properties/platform-properties.tesh
include teshsuite/msg/platform-properties/platform-properties_d.xml
-include teshsuite/msg/task-priority/task-priority.c
-include teshsuite/msg/task-priority/task-priority.tesh
-include teshsuite/msg/task-priority/task-priority_d.xml
include teshsuite/msg/task_destroy_cancel/task_destroy_cancel.cpp
include teshsuite/msg/task_destroy_cancel/task_destroy_cancel.tesh
include teshsuite/msg/task_listen_from/task_listen_from.cpp
get_sender
platform-properties
io-file
- task-priority
trace_integration)
if(enable_msg)
add_executable (${x} EXCLUDE_FROM_ALL ${x}/${x}.c)
set(bin_files ${bin_files} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/generate.py PARENT_SCOPE)
set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/app-bittorrent_d.xml
${CMAKE_CURRENT_SOURCE_DIR}/platform-properties/platform-properties_d.xml
- ${CMAKE_CURRENT_SOURCE_DIR}/task-priority/task-priority_d.xml
${CMAKE_CURRENT_SOURCE_DIR}/trace_integration/test-hbp1.0-hbp1.0-hbp1.0.xml
${CMAKE_CURRENT_SOURCE_DIR}/trace_integration/test-hbp1.0-hbp3.0-hbp4.0.xml
${CMAKE_CURRENT_SOURCE_DIR}/trace_integration/test-hbp1.5-hbp1.5.xml
task_destroy_cancel task_listen_from task_progress
io-file
platform-properties
- task-priority
trace_integration)
ADD_TESH_FACTORIES(tesh-msg-${x} "raw"
+++ /dev/null
-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include "simgrid/msg.h"
-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
-
-static int test(int argc, char* argv[])
-{
- xbt_assert(argc == 3);
- double computation_amount = xbt_str_parse_double(argv[1], "Invalid argument: %s");
- double priority = xbt_str_parse_double(argv[2], "Invalid argument: %s");
-
- XBT_INFO("Hello! Running a task of size %g with priority %g", computation_amount, priority);
- msg_task_t task = MSG_task_create("Task", computation_amount, 0.0, NULL);
- MSG_task_set_priority(task, priority);
-
- MSG_task_execute(task);
- MSG_task_destroy(task);
-
- XBT_INFO("Goodbye now!");
- return 0;
-}
-
-int main(int argc, char* argv[])
-{
- 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]);
-
- MSG_create_environment(argv[1]);
- MSG_function_register("test", test);
- MSG_launch_application(argv[2]);
-
- msg_error_t res = MSG_main();
-
- XBT_INFO("Simulation time %g", MSG_get_clock());
-
- return res != MSG_OK;
-}
+++ /dev/null
-#!/usr/bin/env tesh
-
-! output sort 19
-$ ${bindir:=.}/task-priority ${platfdir}/small_platform.xml ${srcdir:=.}/task-priority_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
-> [ 0.000000] (1:test@Fafard) Hello! Running a task of size 7.6296e+07 with priority 1
-> [ 0.000000] (2:test@Fafard) Hello! Running a task of size 7.6296e+07 with priority 2
-> [ 1.500000] (2:test@Fafard) Goodbye now!
-> [ 2.000000] (0:maestro@) Simulation time 2
-> [ 2.000000] (1:test@Fafard) Goodbye now!
+++ /dev/null
-<?xml version='1.0'?>
-<!DOCTYPE platform SYSTEM "https://simgrid.org/simgrid.dtd">
-<platform version="4.1">
- <actor host="Fafard" function="test">
- <argument value="76296000"/>
- <argument value="1.0"/>
- </actor>
- <actor host="Fafard" function="test">
- <argument value="76296000"/>
- <argument value="2.0"/>
- </actor>
-</platform>