Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert another teshsuite/simix test into teshsuite/kernel (and fix it)
[simgrid.git] / teshsuite / simix / CMakeLists.txt
1 foreach(x generic-simcalls stack-overflow)
2   add_executable       (${x}  EXCLUDE_FROM_ALL ${x}/${x}.cpp)
3   target_link_libraries(${x}  simgrid)
4   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
5   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
6   add_dependencies(tests ${x})
7 endforeach()
8
9 set(teshsuite_src  ${teshsuite_src}                                                                        PARENT_SCOPE)
10 set(tesh_files     ${tesh_files}     
11     ${CMAKE_CURRENT_SOURCE_DIR}/stack-overflow/stack-overflow.tesh  
12     ${CMAKE_CURRENT_SOURCE_DIR}/generic-simcalls/generic-simcalls.tesh    
13     PARENT_SCOPE)
14
15 if (NOT enable_memcheck AND NOT enable_address_sanitizer AND NOT enable_thread_sanitizer)
16   ADD_TESH_FACTORIES(stack-overflow   "ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simix/stack-overflow --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simix/stack-overflow stack-overflow.tesh)
17   if (WIN32)
18     SET_TESH_PROPERTIES(stack-overflow "ucontext;raw;boost" WILL_FAIL true)
19   endif()
20 endif()
21 ADD_TESH_FACTORIES(generic-simcalls "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simix/generic-simcalls --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simix/generic-simcalls generic-simcalls.tesh)
22