Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mv is-router and flatifier to their own dir
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 17 Mar 2016 11:11:46 +0000 (12:11 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 17 Mar 2016 11:15:19 +0000 (12:15 +0100)
.gitignore
teshsuite/simdag/CMakeLists.txt
teshsuite/simdag/flatifier/flatifier.cpp [moved from teshsuite/simdag/platforms/flatifier.cpp with 100% similarity]
teshsuite/simdag/flatifier/flatifier.tesh [moved from teshsuite/simdag/platforms/flatifier.tesh with 98% similarity]
teshsuite/simdag/is-router/is-router.cpp [moved from teshsuite/simdag/platforms/is_router_test.cpp with 100% similarity]
teshsuite/simdag/is-router/is-router.tesh [new file with mode: 0644]
teshsuite/simdag/platforms/CMakeLists.txt
teshsuite/simdag/platforms/basic_parsing_test.tesh
tools/cmake/Tests.cmake

index ee1cfbf..89a9d75 100644 (file)
@@ -285,7 +285,7 @@ teshsuite/simdag/basic/basic3
 teshsuite/simdag/basic/basic4
 teshsuite/simdag/basic/basic5
 teshsuite/simdag/basic/basic6
-teshsuite/simdag/incomplete/incomplete
+teshsuite/simdag/basic-link-test/basic-link-test
 teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all
 teshsuite/simdag/comm-mxn-independent/comm-mxn-independent
 teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter
@@ -293,17 +293,16 @@ teshsuite/simdag/comm-p2p-latency-1/comm-p2p-latency-1
 teshsuite/simdag/comm-p2p-latency-2/comm-p2p-latency-2
 teshsuite/simdag/comm-p2p-latency-3/comm-p2p-latency-3
 teshsuite/simdag/comm-p2p-latency-bound/comm-p2p-latency-bound
-teshsuite/simdag/network/test_reinit_costs
 teshsuite/simdag/comp-only-par/comp-only-par
 teshsuite/simdag/comp-only-seq/comp-only-seq
-teshsuite/simdag/platforms/basic_link_test
+teshsuite/simdag/incomplete/incomplete
 teshsuite/simdag/platforms/basic_parsing_test
 teshsuite/simdag/platforms/basic_tracing
 teshsuite/simdag/platforms/evaluate_get_route_time
 teshsuite/simdag/platforms/evaluate_parse_time
-teshsuite/simdag/platforms/flatifier
+teshsuite/simdag/flatifier/flatifier
 teshsuite/simdag/platforms/graphicator
-teshsuite/simdag/platforms/is_router_test
+teshsuite/simdag/is-router/is-router
 teshsuite/simix/check_defaults/check_defaults
 teshsuite/simix/stack_overflow/stack_overflow
 teshsuite/smpi/bug-17132/bug-17132
index 704726c..edffd4c 100644 (file)
@@ -10,6 +10,16 @@ foreach(x availability basic-link-test comm-mxn-all2all comm-mxn-independent com
   ADD_TESH(tesh-simdag-${x} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/${x} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/${x} ${x}.tesh)
 endforeach()
 
+foreach(x flatifier is-router)
+  add_executable       (${x}  ${x}/${x}.cpp)
+  target_link_libraries(${x}  simgrid)
+  set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
+
+  set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
+  set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
+
+  ADD_TESH(tesh-simdag-${x} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/${x} ${x}.tesh)
+endforeach()
+
 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
 set(tesh_files    ${tesh_files}     PARENT_SCOPE)
-
similarity index 98%
rename from teshsuite/simdag/platforms/flatifier.tesh
rename to teshsuite/simdag/flatifier/flatifier.tesh
index fcab6a7..656bd27 100644 (file)
@@ -1,6 +1,6 @@
 #! ./tesh
 
-$ ${bindir:=.}/flatifier$EXEEXT one_cluster.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/one_cluster.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
@@ -135,7 +135,7 @@ $ ${bindir:=.}/flatifier$EXEEXT one_cluster.xml "--log=root.fmt:[%10.6r]%e[%i:%P
 > </AS>
 > </platform>
 
-$ ${bindir:=.}/flatifier$EXEEXT one_cluster_multicore.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/one_cluster_multicore.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
@@ -269,7 +269,7 @@ $ ${bindir:=.}/flatifier$EXEEXT one_cluster_multicore.xml "--log=root.fmt:[%10.6
 > </AS>
 > </platform>
 
-$ ${bindir:=.}/flatifier$EXEEXT host_attributes.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/host_attributes.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
@@ -303,7 +303,7 @@ $ ${bindir:=.}/flatifier$EXEEXT host_attributes.xml "--log=root.fmt:[%10.6r]%e[%
 > </AS>
 > </platform>
 
-$ ${bindir:=.}/flatifier$EXEEXT link_attributes.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/link_attributes.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
@@ -321,7 +321,7 @@ $ ${bindir:=.}/flatifier$EXEEXT link_attributes.xml "--log=root.fmt:[%10.6r]%e[%
 > </AS>
 > </platform>
 
-$ ${bindir:=.}/flatifier$EXEEXT three_hosts_non_symmetric_route.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/three_hosts_non_symmetric_route.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
@@ -364,7 +364,7 @@ $ ${bindir:=.}/flatifier$EXEEXT three_hosts_non_symmetric_route.xml "--log=root.
 > </AS>
 > </platform>
 
-$ ${bindir:=.}/flatifier$EXEEXT two_clusters.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/two_clusters.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
@@ -499,7 +499,7 @@ $ ${bindir:=.}/flatifier$EXEEXT two_clusters.xml "--log=root.fmt:[%10.6r]%e[%i:%
 > </AS>
 > </platform>
 
-$ ${bindir:=.}/flatifier$EXEEXT two_hosts_multi_hop.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/two_hosts_multi_hop.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
@@ -526,7 +526,7 @@ $ ${bindir:=.}/flatifier$EXEEXT two_hosts_multi_hop.xml "--log=root.fmt:[%10.6r]
 > </AS>
 > </platform>
 
-$ ${bindir:=.}/flatifier$EXEEXT two_hosts_one_link.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+$ ${bindir:=.}/flatifier$EXEEXT ../platforms/two_hosts_one_link.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
 > [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
 > <?xml version='1.0'?>
 > <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
diff --git a/teshsuite/simdag/is-router/is-router.tesh b/teshsuite/simdag/is-router/is-router.tesh
new file mode 100644 (file)
index 0000000..4e1eaea
--- /dev/null
@@ -0,0 +1,26 @@
+#! ./tesh
+
+$ ${bindir:=.}/is-router ../platforms/test_of_is_router.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+> [  0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
+> Host number: 10, link number: 1, elmts number: 21
+>    - Seen: "host01". Type: host
+>    - Seen: "host02". Type: host
+>    - Seen: "host03". Type: host
+>    - Seen: "host04". Type: host
+>    - Seen: "host05". Type: host
+>    - Seen: "host06". Type: host
+>    - Seen: "host07". Type: host
+>    - Seen: "host08". Type: host
+>    - Seen: "host09". Type: host
+>    - Seen: "host10". Type: host
+>    - Seen: "router1". Type: router
+>    - Seen: "router2". Type: router
+>    - Seen: "router3". Type: router
+>    - Seen: "router4". Type: router
+>    - Seen: "router5". Type: router
+>    - Seen: "AS0". Type: AS
+>    - Seen: "AS1". Type: AS
+>    - Seen: "AS2". Type: AS
+>    - Seen: "AS3". Type: AS
+>    - Seen: "AS4". Type: AS
+>    - Seen: "AS". Type: AS
index 5aede5b..317a1f1 100644 (file)
@@ -5,16 +5,10 @@ foreach(x basic_parsing_test evaluate_parse_time evaluate_get_route_time)
   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}.c)
 endforeach()
 
-add_executable       (is_router_test          is_router_test.cpp)
-target_link_libraries(is_router_test          simgrid)
-add_executable       (flatifier               flatifier.cpp)
-target_link_libraries(flatifier               simgrid)
-
 set(tesh_files    ${tesh_files}     ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_failing.tesh
                                     ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_sym_full.tesh
                                     ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test.tesh
                                     ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_bypass.tesh
-                                    ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.tesh
                                     ${CMAKE_CURRENT_SOURCE_DIR}/get_full_link.tesh
                                     ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric.tesh
                                     ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_gateway.tesh
@@ -53,11 +47,10 @@ set(xml_files     ${xml_files}      ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_Dijks
                                     ${CMAKE_CURRENT_SOURCE_DIR}/platform_2p_1sl_hetero.xml
                                     ${CMAKE_CURRENT_SOURCE_DIR}/platform_2p_1switch.xml
                                     ${CMAKE_CURRENT_SOURCE_DIR}/bogus_disk_attachment.xml                  PARENT_SCOPE)
-set(teshsuite_src ${teshsuite_src}  ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.cpp
-                                    ${CMAKE_CURRENT_SOURCE_DIR}/is_router_test.cpp                         PARENT_SCOPE)
 set(txt_files     ${txt_files}      ${CMAKE_CURRENT_SOURCE_DIR}/carol.fail
                                     ${CMAKE_CURRENT_SOURCE_DIR}/bob.trace
                                     ${CMAKE_CURRENT_SOURCE_DIR}/erin.avail
                                     ${CMAKE_CURRENT_SOURCE_DIR}/link.bw
                                     ${CMAKE_CURRENT_SOURCE_DIR}/link.fail
                                     ${CMAKE_CURRENT_SOURCE_DIR}/link.lat                                   PARENT_SCOPE)
+set(teshsuite_src ${teshsuite_src}                                                                         PARENT_SCOPE)
\ No newline at end of file
index b41132b..52a9949 100644 (file)
@@ -55,29 +55,3 @@ $ ${bindir:=.}/basic_parsing_test ./one_cluster_file.xml
 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
 > Workstation number: 2, link number: 6
 $ rm -f ./bob0_availability_file.trace ./bob2_availability_file.trace ./bob0_state_file.trace ./bob2_state_file.trace
-
-$ ${bindir:=.}/is_router_test ./test_of_is_router.xml
-> [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
-> Host number: 10, link number: 1, elmts number: 21
->    - Seen: "host01". Type: host
->    - Seen: "host02". Type: host
->    - Seen: "host03". Type: host
->    - Seen: "host04". Type: host
->    - Seen: "host05". Type: host
->    - Seen: "host06". Type: host
->    - Seen: "host07". Type: host
->    - Seen: "host08". Type: host
->    - Seen: "host09". Type: host
->    - Seen: "host10". Type: host
->    - Seen: "router1". Type: router
->    - Seen: "router2". Type: router
->    - Seen: "router3". Type: router
->    - Seen: "router4". Type: router
->    - Seen: "router5". Type: router
->    - Seen: "AS0". Type: AS
->    - Seen: "AS1". Type: AS
->    - Seen: "AS2". Type: AS
->    - Seen: "AS3". Type: AS
->    - Seen: "AS4". Type: AS
->    - Seen: "AS". Type: AS
-
index 00ef0d2..4e6c7c2 100644 (file)
@@ -101,7 +101,6 @@ IF(NOT enable_memcheck)
     ENDIF()
   ENDIF()
   ADD_TESH(tesh-simdag-bypass                    --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms basic_parsing_test_bypass.tesh)
-  ADD_TESH(tesh-simdag-flatifier                 --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms flatifier.tesh)
   ADD_TESH(tesh-simdag-parser                    --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms basic_parsing_test.tesh)
   ADD_TESH(tesh-simdag-parser-sym-full           --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms basic_parsing_test_sym_full.tesh)
   ADD_TESH(tesh-simdag-full-links                --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms get_full_link.tesh)