Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / teshsuite / s4u / CMakeLists.txt
1 foreach(x actor
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 cloud-interrupt-migration concurrent_rw)
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 foreach(x host_on_off_wait listen_async pid storage_client_server)
20   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
21   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)
22 endforeach()
23
24 # The output is not relevant
25 ADD_TEST(tesh-s4u-comm-pt2pt   ${CMAKE_BINARY_DIR}/teshsuite/s4u/comm-pt2pt/comm-pt2pt     ${CMAKE_HOME_DIRECTORY}/examples/platforms/cluster.xml)
26
27
28
29 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
30 set(tesh_files    ${tesh_files}     PARENT_SCOPE)
31 set(xml_files     ${xml_files}      PARENT_SCOPE)