COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_TEST_DIR}/${PROJECT_NAME}-${release_version}/_build ${CMAKE_MAKE_PROGRAM}
COMMAND ${CMAKE_COMMAND} -E echo "XXX Test"
- COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_TEST_DIR}/${PROJECT_NAME}-${release_version}/_build ctest || true
+ COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_TEST_DIR}/${PROJECT_NAME}-${release_version}/_build ctest
COMMAND ${CMAKE_COMMAND} -E echo "XXX Install"
COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_TEST_DIR}/${PROJECT_NAME}-${release_version}/_build ${CMAKE_MAKE_PROGRAM} install
tools. Recompiling the archive should be done in a few lines:
@verbatim
-wget https://gforge.inria.fr/frs/download.php/28674/simgrid-3.8.1.tar.gz
-tar xf simgrid-3.8.1.tar.gz
-cd simgrid-3.8.1
+wget https://gforge.inria.fr/frs/download.php/28674/SimGrid-3.9.tar.gz
+tar xf SimGrid-3.9.tar.gz
+cd SimGrid-3.9
cmake -DCMAKE_INSTALL_PREFIX=/opt/simgrid .
make
make install
+++ /dev/null
-<?xml version='1.0'?>
-<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
-<platform version="3"><!-- For using with chainsend, platform_chainsend.xml -->
-
- <!-- Broadcaster -->
- <process host="host0" function="broadcaster">
- <argument value="8"/> <!-- number of peers -->
- </process>
-
- <!-- Peers -->
- <process host="host1" function="peer">
- <argument value="1"/>
- </process>
- <process host="host2" function="peer">
- <argument value="2"/>
- </process>
- <process host="host3" function="peer">
- <argument value="3"/>
- </process>
- <process host="host4" function="peer">
- <argument value="4"/>
- </process>
- <process host="host5" function="peer">
- <argument value="5"/>
- </process>
- <process host="host6" function="peer">
- <argument value="6"/>
- </process>
- <process host="host7" function="peer">
- <argument value="7"/>
- </process>
- <process host="host8" function="peer">
- <argument value="8"/>
- </process>
- <!--<process host="host9" function="peer">
- <argument value="9"/>
- </process>-->
-</platform>
surf_stat_t content;
while ((read = getline(&line, &len, file)) != -1) {
+ if (read){
content = xbt_new0(s_surf_stat_t,1);
if(sscanf(line,"%s %d %s %s %ld %s %s %s",user_rights,&nb,user,group,&size,date,time,path)==8) {
- content->stat.date = xbt_strdup(date);
- content->stat.group = xbt_strdup(group);
- content->stat.size = size;
- content->stat.time = xbt_strdup(time);
- content->stat.user = xbt_strdup(user);
- content->stat.user_rights = xbt_strdup(user_rights);
- *used_size += content->stat.size;
- xbt_dict_set(parse_content,path,content,NULL);
- } else {
- xbt_die("Be sure of passing a good format for content file.\n");
- // You can generate this kind of file with command line:
- // find /path/you/want -type f -exec ls -l {} \; 2>/dev/null > ./content.txt
+ content->stat.date = xbt_strdup(date);
+ content->stat.group = xbt_strdup(group);
+ content->stat.size = size;
+ content->stat.time = xbt_strdup(time);
+ content->stat.user = xbt_strdup(user);
+ content->stat.user_rights = xbt_strdup(user_rights);
+ *used_size += content->stat.size;
+ xbt_dict_set(parse_content,path,content,NULL);
+ } else {
+ xbt_die("Be sure of passing a good format for content file.\n");
+ // You can generate this kind of file with command line:
+ // find /path/you/want -type f -exec ls -l {} \; 2>/dev/null > ./content.txt
+ }
}
}
if (line)