Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / teshsuite / smpi / mpich3-test / init / CMakeLists.txt
1 if(enable_smpi AND enable_testsuite_smpi_MPICH3)
2   set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
3   set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
4
5   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
6   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
7   foreach(file exitst1 exitst2 finalized initstat library_version version)
8     # not compiled files: attrself exitst3 timeout
9     add_executable(${file} EXCLUDE_FROM_ALL ${file}.c)
10     add_dependencies(tests ${file})
11     target_link_libraries(${file} simgrid mtest_c)
12   endforeach()
13 endif()
14
15 if (enable_testsuite_smpi_MPICH3 AND HAVE_RAW_CONTEXTS)
16   ADD_TEST(test-smpi-mpich3-init-raw       ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/teshsuite/smpi/mpich3-test/init ${PERL_EXECUTABLE} ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/runtests "-wrapper=${VALGRIND_WRAPPER}" -mpiexec=${CMAKE_BINARY_DIR}/smpi_script/bin/smpirun -srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/init -tests=testlist -execarg=--cfg=contexts/factory:raw)
17   SET_TESTS_PROPERTIES(test-smpi-mpich3-init-raw PROPERTIES PASS_REGULAR_EXPRESSION "tests passed!")
18 endif()
19
20 foreach(file attrself exitst1 exitst2 exitst3 finalized initstat library_version timeout version)
21   set(examples_src ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c)
22 endforeach()
23
24 set(examples_src ${examples_src}                                         PARENT_SCOPE)
25 set(txt_files    ${txt_files}     ${CMAKE_CURRENT_SOURCE_DIR}/testlist   PARENT_SCOPE)