Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement a disk attachment check and add a tesh test to detect invalid platform...
[simgrid.git] / teshsuite / simdag / platforms / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
4
5 add_executable(basic_parsing_test basic_parsing_test.c)
6 add_executable(is_router_test is_router_test.c)
7 add_executable(flatifier flatifier.c)
8 add_executable(basic_tracing basic_tracing.c)
9 add_executable(basic_link_test basic_link_test.c)
10
11 ### Add definitions for compile
12 if(NOT WIN32)
13   add_executable(evaluate_parse_time Evaluate_parse_time.c)
14   add_executable(evaluate_get_route_time Evaluate_get_route_time.c)
15   target_link_libraries(evaluate_get_route_time simgrid m)
16   target_link_libraries(evaluate_parse_time simgrid m)
17   target_link_libraries(basic_parsing_test simgrid m)
18   target_link_libraries(is_router_test simgrid m)
19   target_link_libraries(flatifier simgrid m)
20   target_link_libraries(basic_tracing simgrid m)
21   target_link_libraries(basic_link_test simgrid m)
22 else()
23   target_link_libraries(basic_parsing_test simgrid)
24   target_link_libraries(is_router_test simgrid)
25   target_link_libraries(flatifier simgrid)
26   target_link_libraries(basic_tracing simgrid)
27   target_link_libraries(basic_link_test simgrid)
28 endif()
29
30 set(tesh_files
31   ${tesh_files}
32   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_failing.tesh
33   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_sym_full.tesh
34   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test.tesh
35   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_bypass.tesh
36   ${CMAKE_CURRENT_SOURCE_DIR}/basic_link_test.tesh
37   ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.tesh
38   ${CMAKE_CURRENT_SOURCE_DIR}/get_full_link.tesh
39   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric.tesh
40   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_gateway.tesh
41   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_disk_attachment.tesh
42   PARENT_SCOPE
43   )
44 set(xml_files
45   ${xml_files}
46   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_Dijkstra_ns3.xml
47   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd_bis.xml
48   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd_ns3.xml
49   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd.xml
50   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_multi_hop.xml
51   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_file.xml
52   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_foreach.xml
53   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_fullduplex.xml
54   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_one_host_random.xml
55   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_one_host.xml
56   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_properties_foreach.xml
57   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_properties_override.xml
58   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_router_id.xml
59   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster.xml
60   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_availability.xml
61   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_properties.xml
62   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_state_file.xml
63   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_state_off.xml
64   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_state_on.xml
65   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_trace_file.xml
66   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_trace_inside.xml
67   ${CMAKE_CURRENT_SOURCE_DIR}/one_host.xml
68   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_availability.xml
69   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_fatpipe.xml
70   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_shared.xml
71   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_state_file.xml
72   ${CMAKE_CURRENT_SOURCE_DIR}/platform_include.xml
73   ${CMAKE_CURRENT_SOURCE_DIR}/properties.xml
74   ${CMAKE_CURRENT_SOURCE_DIR}/random.xml
75   ${CMAKE_CURRENT_SOURCE_DIR}/route_override.xml
76   ${CMAKE_CURRENT_SOURCE_DIR}/test_of_is_router.xml
77   ${CMAKE_CURRENT_SOURCE_DIR}/three_hosts_non_symmetric_route.xml
78   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters_one_name.xml
79   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters_router_id.xml
80   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters_symmetric.xml
81   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters.xml
82   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_src_gateway.xml
83   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_dst_gateway.xml
84   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric.xml
85   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric-2.xml
86   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_one_link_fullduplex.xml
87   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_one_link_symmetrical.xml
88   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_one_link.xml
89   ${CMAKE_CURRENT_SOURCE_DIR}/clusterA.xml
90   ${CMAKE_CURRENT_SOURCE_DIR}/clusterB.xml
91   ${CMAKE_CURRENT_SOURCE_DIR}/Dijkstra.xml
92   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_disk_attachment.xml
93   PARENT_SCOPE
94   )
95 set(teshsuite_src
96   ${teshsuite_src}
97   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test.c
98   ${CMAKE_CURRENT_SOURCE_DIR}/basic_tracing.c
99   ${CMAKE_CURRENT_SOURCE_DIR}/basic_link_test.c
100   ${CMAKE_CURRENT_SOURCE_DIR}/Evaluate_get_route_time.c
101   ${CMAKE_CURRENT_SOURCE_DIR}/Evaluate_parse_time.c
102   ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.c
103   ${CMAKE_CURRENT_SOURCE_DIR}/is_router_test.c
104   PARENT_SCOPE
105   )
106 set(bin_files
107   ${bin_files}
108   PARENT_SCOPE
109   )
110 set(txt_files
111   ${txt_files}
112   ${CMAKE_CURRENT_SOURCE_DIR}/bob0_availability_file.trace
113   ${CMAKE_CURRENT_SOURCE_DIR}/bob0_state_file.trace
114   ${CMAKE_CURRENT_SOURCE_DIR}/bob2_availability_file.trace
115   ${CMAKE_CURRENT_SOURCE_DIR}/bob2_state_file.trace
116   ${CMAKE_CURRENT_SOURCE_DIR}/bob.fail
117   ${CMAKE_CURRENT_SOURCE_DIR}/bob.trace
118   ${CMAKE_CURRENT_SOURCE_DIR}/link1.bw
119   ${CMAKE_CURRENT_SOURCE_DIR}/link1.fail
120   ${CMAKE_CURRENT_SOURCE_DIR}/link1.lat
121   PARENT_SCOPE
122   )