Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a0eb9f6c1ba8d2d9cdd23f4ad5cdf1248af9dbfe
[simgrid.git] / teshsuite / s4u / CMakeLists.txt
1 foreach(x actor actor-autorestart actor-migration
2         comm-pt2pt
3         cloud-interrupt-migration
4         concurrent_rw storage_client_server host_on_off_wait listen_async pid )
5   add_executable       (${x}  ${x}/${x}.cpp)
6   target_link_libraries(${x}  simgrid)
7   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
8
9   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
10 endforeach()
11
12 ## Add the tests.
13 ## Some need to be run with all factories, some need not tesh to run
14 foreach(x actor actor-autorestart actor-migration cloud-interrupt-migration concurrent_rw) # TODO: actor-autorestart is disabled for now
15   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
16   ADD_TESH_FACTORIES(tesh-s4u-${x} "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/s4u/${x} --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_BINARY_DIR}/teshsuite/s4u/${x} ${CMAKE_HOME_DIRECTORY}/teshsuite/s4u/${x}/${x}.tesh)
17 endforeach()
18
19 # Manually add this file, but the test is broken and must be disabled for now (TODO)
20 set(tesh_files    ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/actor-autorestart/actor-autorestart.tesh)
21
22
23 foreach(x host_on_off_wait listen_async pid storage_client_server)
24   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
25   ADD_TESH(tesh-s4u-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/s4u/${x} --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_BINARY_DIR}/teshsuite/s4u/${x} ${CMAKE_HOME_DIRECTORY}/teshsuite/s4u/${x}/${x}.tesh)
26 endforeach()
27
28 # The output is not relevant
29 ADD_TEST(tesh-s4u-comm-pt2pt   ${CMAKE_BINARY_DIR}/teshsuite/s4u/comm-pt2pt/comm-pt2pt     ${CMAKE_HOME_DIRECTORY}/examples/platforms/cluster.xml)
30
31
32
33 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
34 set(tesh_files    ${tesh_files}     PARENT_SCOPE)
35 set(xml_files     ${xml_files}      PARENT_SCOPE)