Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix distcheck
[simgrid.git] / teshsuite / simdag / CMakeLists.txt
1 foreach(x availability basic0 basic1 basic3 basic4 basic5 comm-p2p-latency-bound incomplete)
2   add_executable       (${x}  EXCLUDE_FROM_ALL ${x}/${x}.c)
3   target_link_libraries(${x}  simgrid)
4   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
5   add_dependencies(tests ${x})
6
7   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
8   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
9 endforeach()
10
11 foreach(x flatifier)
12   add_executable       (${x} EXCLUDE_FROM_ALL ${x}/${x}.cpp)
13   target_link_libraries(${x}  simgrid)
14   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
15   set_property(TARGET ${x} APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}")
16   add_dependencies(tests ${x})
17
18   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
19   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
20 endforeach()
21
22 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
23 set(tesh_files    ${tesh_files}     ${CMAKE_CURRENT_SOURCE_DIR}/flatifier/bogus_two_hosts_asymetric.tesh
24                                     ${CMAKE_CURRENT_SOURCE_DIR}/flatifier/bogus_missing_gateway.tesh
25                                     PARENT_SCOPE)
26 set(xml_files     ${xml_files}      ${CMAKE_CURRENT_SOURCE_DIR}/platforms/four_hosts_floyd.xml
27                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/two_hosts_multi_hop.xml
28                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/host_attributes.xml
29                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/link_attributes.xml
30                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/one_cluster_multicore.xml
31                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/one_cluster_splitduplex.xml
32                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/one_cluster_router_id.xml
33                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/one_cluster.xml
34                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/properties.xml
35                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/test_of_is_router.xml
36                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/three_hosts_non_symmetric_route.xml
37                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/two_clusters_one_name.xml
38                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/two_clusters_router_id.xml
39                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/two_clusters.xml
40                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/bogus_missing_src_gateway.xml
41                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/bogus_missing_dst_gateway.xml
42                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/bogus_two_hosts_asymetric.xml
43                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/two_hosts_one_link_splitduplex.xml
44                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/two_hosts_one_link.xml
45                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/Dijkstra.xml
46                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/platform_2p_1bb.xml              PARENT_SCOPE)
47 set(txt_files     ${txt_files}      ${CMAKE_CURRENT_SOURCE_DIR}/platforms/carol.fail
48                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/bob.trace
49                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/erin.avail
50                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/link.bw
51                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/link.fail
52                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/link.lat                         PARENT_SCOPE)
53
54 foreach(x availability basic0 basic1 basic3 basic4 basic5 flatifier comm-p2p-latency-bound incomplete)
55   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)
56 endforeach()
57
58 if(enable_debug)
59   # these tests need assertions
60   ADD_TESH(tesh-parser-bogus-symmetric         --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/flatifier --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier/bogus_two_hosts_asymetric.tesh)
61   ADD_TESH(tesh-parser-bogus-missing-gw        --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/flatifier --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier/bogus_missing_gateway.tesh)
62
63    #These tests fail on Windows as the signal returned is not the same as Unix would send.
64   if(WIN32)
65     set_property(TEST tesh-parser-bogus-symmetric PROPERTY WILL_FAIL TRUE)
66     set_property(TEST tesh-parser-bogus-missing-gw PROPERTY WILL_FAIL TRUE)
67   endif()
68 endif()