From 76a435e03badf34e47f18a338eade603bf119fd4 Mon Sep 17 00:00:00 2001 From: navarro Date: Thu, 29 Mar 2012 14:59:22 +0200 Subject: [PATCH] Try to clean platform files containing in examples/platform/ . --- buildtools/Cmake/AddTests.cmake | 6 +- examples/msg/chord/chord.tesh | 2 +- examples/msg/chord/chord_crosstraffic.tesh | 2 +- examples/msg/ns3/One_cluster.xml | 19 - examples/msg/ns3/Two_clusters.xml | 44 -- examples/msg/ns3/ns3.tesh | 10 +- examples/platforms/Two_clusters.xml | 26 - .../{One_cluster.xml => cluster.xml} | 0 ..._one_host.xml => cluster_and_one_host.xml} | 2 +- ...o_backbone.xml => cluster_no_backbone.xml} | 0 ...{gdx.xml => cluster_routing_rulebased.xml} | 0 examples/platforms/clusters_routing_full.xml | 43 ++ .../platforms/{tag_config.xml => config.xml} | 0 .../{ => content}/storage_content.txt | 0 examples/platforms/g5k.xml | 132 +++- examples/platforms/g5k_cabinets.xml | 565 ------------------ examples/platforms/nancy.xml | 106 ---- examples/platforms/storage.xml | 6 +- .../platforms/Evaluate_get_route_time.c | 2 +- 19 files changed, 181 insertions(+), 784 deletions(-) delete mode 100644 examples/msg/ns3/One_cluster.xml delete mode 100644 examples/msg/ns3/Two_clusters.xml delete mode 100644 examples/platforms/Two_clusters.xml rename examples/platforms/{One_cluster.xml => cluster.xml} (100%) rename examples/platforms/{One_cluster_one_host.xml => cluster_and_one_host.xml} (94%) rename examples/platforms/{One_cluster_no_backbone.xml => cluster_no_backbone.xml} (100%) rename examples/platforms/{gdx.xml => cluster_routing_rulebased.xml} (100%) create mode 100644 examples/platforms/clusters_routing_full.xml rename examples/platforms/{tag_config.xml => config.xml} (100%) rename examples/platforms/{ => content}/storage_content.txt (100%) delete mode 100644 examples/platforms/g5k_cabinets.xml delete mode 100644 examples/platforms/nancy.xml diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index 4ef863a4ba..7737a2e9e7 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -382,9 +382,9 @@ endif(HAVE_RAWCTX) endif(HAVE_GTNETS) if(HAVE_NS3) -ADD_TEST(msg-ns3-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh) -ADD_TEST(msg-ns3-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh) -ADD_TEST(msg-ns3-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh) +ADD_TEST(msg-ns3-thread ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh) +ADD_TEST(msg-ns3-ucontext ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:ucontext --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh) +ADD_TEST(msg-ns3-raw ${CMAKE_BINARY_DIR}/bin/tesh ${TESH_OPTION} --cfg contexts/factory:raw --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh) endif(HAVE_NS3) IF(HAVE_TRACING) diff --git a/examples/msg/chord/chord.tesh b/examples/msg/chord/chord.tesh index 5de61ff503..5409bf62f0 100644 --- a/examples/msg/chord/chord.tesh +++ b/examples/msg/chord/chord.tesh @@ -439,7 +439,7 @@ $ $SG_TEST_EXENV ${bindir:=.}/chord$EXEEXT -nb_bits=6 ${srcdir:=.}/../msg_platfo > [652.548539] (0:@) Simulated time: 652.549 ! output sort -$ $SG_TEST_EXENV ${bindir:=.}/chord$EXEEXT ${srcdir:=.}/../../platforms/One_cluster.xml ${srcdir:=.}/chord10.xml --cfg=network/crosstraffic:0 --log=msg_chord.thres:verbose "--log=root.fmt:[%11.6r]%e(%i:%P@%h)%e%m%n" --cfg=network/model:Constant +$ $SG_TEST_EXENV ${bindir:=.}/chord$EXEEXT ${srcdir:=.}/../../platforms/cluster.xml ${srcdir:=.}/chord10.xml --cfg=network/crosstraffic:0 --log=msg_chord.thres:verbose "--log=root.fmt:[%11.6r]%e(%i:%P@%h)%e%m%n" --cfg=network/model:Constant > [ 0.000000] (0:@) Configuration change: Set 'network/crosstraffic' to '0' > [ 0.000000] (0:@) Configuration change: Set 'network/model' to 'Constant' > [ 0.000000] (0:@) Switching workstation model to compound since you changed the network and/or cpu model(s) diff --git a/examples/msg/chord/chord_crosstraffic.tesh b/examples/msg/chord/chord_crosstraffic.tesh index 6cd2c1e400..e778dbc281 100644 --- a/examples/msg/chord/chord_crosstraffic.tesh +++ b/examples/msg/chord/chord_crosstraffic.tesh @@ -438,7 +438,7 @@ $ $SG_TEST_EXENV ${bindir:=.}/chord$EXEEXT -nb_bits=6 ${srcdir:=.}/../msg_platfo > [652.548539] (0:@) Simulated time: 652.549 ! output sort -$ $SG_TEST_EXENV ${bindir:=.}/chord$EXEEXT ${srcdir:=.}/../../platforms/One_cluster.xml ${srcdir:=.}/chord10.xml --log=msg_chord.thres:verbose "--log=root.fmt:[%11.6r]%e(%i:%P@%h)%e%m%n" --cfg=network/model:Constant +$ $SG_TEST_EXENV ${bindir:=.}/chord$EXEEXT ${srcdir:=.}/../../platforms/cluster.xml ${srcdir:=.}/chord10.xml --log=msg_chord.thres:verbose "--log=root.fmt:[%11.6r]%e(%i:%P@%h)%e%m%n" --cfg=network/model:Constant > [ 0.000000] (0:@) Configuration change: Set 'network/model' to 'Constant' > [ 0.000000] (0:@) Switching workstation model to compound since you changed the network and/or cpu model(s) > [ 0.000000] (10:node@c-9.me) Joining the ring with id 2015253, knowing node 1319738 diff --git a/examples/msg/ns3/One_cluster.xml b/examples/msg/ns3/One_cluster.xml deleted file mode 100644 index 51716429d1..0000000000 --- a/examples/msg/ns3/One_cluster.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/examples/msg/ns3/Two_clusters.xml b/examples/msg/ns3/Two_clusters.xml deleted file mode 100644 index efc5e100df..0000000000 --- a/examples/msg/ns3/Two_clusters.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/examples/msg/ns3/ns3.tesh b/examples/msg/ns3/ns3.tesh index f9770e3ec5..d1e4bc55d5 100644 --- a/examples/msg/ns3/ns3.tesh +++ b/examples/msg/ns3/ns3.tesh @@ -2,14 +2,14 @@ p 3hosts 2links -$ ns3/ns3 ${srcdir:=.}/ns3/3hosts_2links_p.xml ${srcdir:=.}/ns3/3hosts_2links_d.xml --cfg=network/model:NS3 +$ ns3/ns3 ${srcdir:=.}/examples/msg/ns3/3hosts_2links_p.xml ${srcdir:=.}/examples/msg/ns3/3hosts_2links_d.xml --cfg=network/model:NS3 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'NS3' > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) > [c:slave:(2) 0.700000] [msg_test/INFO] FLOW[1] : Receive 100 bytes from a to c p 6hosts 3links -$ ns3/ns3 ${srcdir:=.}/ns3/3links-p.xml ${srcdir:=.}/ns3/3links-d.xml --cfg=network/model:NS3 +$ ns3/ns3 ${srcdir:=.}/examples/msg/ns3/3links-p.xml ${srcdir:=.}/examples/msg/ns3/3links-d.xml --cfg=network/model:NS3 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'NS3' > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) > [C1:slave:(2) 0.104428] [msg_test/INFO] FLOW[1] : Receive 100000 bytes from S1 to C1 @@ -17,7 +17,7 @@ $ ns3/ns3 ${srcdir:=.}/ns3/3links-p.xml ${srcdir:=.}/ns3/3links-d.xml --cfg=netw > [C3:slave:(6) 2.082380] [msg_test/INFO] FLOW[3] : Receive 2000000 bytes from S3 to C3 -$ ns3/ns3 ${srcdir:=.}/ns3/3links-p.xml ${srcdir:=.}/ns3/3links-d-timer.xml --cfg=network/model:NS3 +$ ns3/ns3 ${srcdir:=.}/examples/msg/ns3/3links-p.xml ${srcdir:=.}/examples/msg/ns3/3links-d-timer.xml --cfg=network/model:NS3 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'NS3' > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) > [C1:slave:(2) 0.104428] [msg_test/INFO] FLOW[1] : Receive 100000 bytes from S1 to C1 @@ -28,14 +28,14 @@ $ ns3/ns3 ${srcdir:=.}/ns3/3links-p.xml ${srcdir:=.}/ns3/3links-d-timer.xml --cf p One cluster -$ ns3/ns3 ${srcdir:=.}/ns3/One_cluster.xml ${srcdir:=.}/ns3/One_cluster-d.xml --cfg=network/model:NS3 +$ ns3/ns3 ${srcdir:=.}/examples/platforms/cluster.xml ${srcdir:=.}/examples/msg/ns3/One_cluster-d.xml --cfg=network/model:NS3 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'NS3' > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) > [c-6.me:slave:(2) 0.006614] [msg_test/INFO] FLOW[1] : Receive 100 bytes from c-2.me to c-6.me p Two clusters -$ ns3/ns3 ${srcdir:=.}/ns3/Two_clusters.xml ${srcdir:=.}/ns3/Two_clusters-d.xml --cfg=network/model:NS3 +$ ns3/ns3 ${srcdir:=.}/examples/platforms/clusters_routing_full.xml ${srcdir:=.}/examples/msg/ns3/Two_clusters-d.xml --cfg=network/model:NS3 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'NS3' > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) > [c-16.me:slave:(2) 0.012453] [msg_test/INFO] FLOW[1] : Receive 100 bytes from c-3.me to c-16.me diff --git a/examples/platforms/Two_clusters.xml b/examples/platforms/Two_clusters.xml deleted file mode 100644 index fc63a075a1..0000000000 --- a/examples/platforms/Two_clusters.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/examples/platforms/One_cluster.xml b/examples/platforms/cluster.xml similarity index 100% rename from examples/platforms/One_cluster.xml rename to examples/platforms/cluster.xml diff --git a/examples/platforms/One_cluster_one_host.xml b/examples/platforms/cluster_and_one_host.xml similarity index 94% rename from examples/platforms/One_cluster_one_host.xml rename to examples/platforms/cluster_and_one_host.xml index 1966d43694..a789fcb9ab 100644 --- a/examples/platforms/One_cluster_one_host.xml +++ b/examples/platforms/cluster_and_one_host.xml @@ -2,7 +2,7 @@ - + + + + + + + + + + + + + + + + + + diff --git a/examples/platforms/tag_config.xml b/examples/platforms/config.xml similarity index 100% rename from examples/platforms/tag_config.xml rename to examples/platforms/config.xml diff --git a/examples/platforms/storage_content.txt b/examples/platforms/content/storage_content.txt similarity index 100% rename from examples/platforms/storage_content.txt rename to examples/platforms/content/storage_content.txt diff --git a/examples/platforms/g5k.xml b/examples/platforms/g5k.xml index 664ae30233..9d20e6c973 100644 --- a/examples/platforms/g5k.xml +++ b/examples/platforms/g5k.xml @@ -211,14 +211,75 @@ - + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + @@ -250,9 +311,62 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/platforms/nancy.xml b/examples/platforms/nancy.xml deleted file mode 100644 index f21a9b160a..0000000000 --- a/examples/platforms/nancy.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/platforms/storage.xml b/examples/platforms/storage.xml index 91ef5077c1..db881dc33e 100644 --- a/examples/platforms/storage.xml +++ b/examples/platforms/storage.xml @@ -9,19 +9,19 @@ - + - + - + diff --git a/teshsuite/simdag/platforms/Evaluate_get_route_time.c b/teshsuite/simdag/platforms/Evaluate_get_route_time.c index 02720c58d4..0994999f34 100644 --- a/teshsuite/simdag/platforms/Evaluate_get_route_time.c +++ b/teshsuite/simdag/platforms/Evaluate_get_route_time.c @@ -4,7 +4,7 @@ /* 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. */ -//for i in $(seq 1 100); do teshsuite/simdag/platforms/evaluate_get_route_time ../examples/platforms/One_cluster.xml 1 2> /tmp/null ; done +//for i in $(seq 1 100); do teshsuite/simdag/platforms/evaluate_get_route_time ../examples/platforms/cluster.xml 1 2> /tmp/null ; done #include -- 2.20.1