Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / teshsuite / smpi / mpich3-test / comm / 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
8   foreach(file cmfree cmfree2 cmsplit2 cmsplit cmsplit_type commcreate1 comm_create_group comm_group_half comm_group_rand
9           comm_info comm_info2 ctxalloc ctxsplit dup dup_with_info commname)
10     # not compiled files
11     # comm_idup comm_idup_mul comm_idup_overlap  dupic ic1 ic2 iccreate icgroup icm icsplit probe-intercomm
12     add_executable(${file} EXCLUDE_FROM_ALL ${file}.c)
13     add_dependencies(tests ${file})
14     target_link_libraries(${file} simgrid mtest_c)
15   endforeach()
16 endif()
17
18 if (enable_testsuite_smpi_MPICH3 AND HAVE_RAW_CONTEXTS)
19   ADD_TEST(test-smpi-mpich3-comm-raw       ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/teshsuite/smpi/mpich3-test/comm ${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/comm -tests=testlist -execarg=--cfg=contexts/factory:raw)
20   SET_TESTS_PROPERTIES(test-smpi-mpich3-comm-raw PROPERTIES PASS_REGULAR_EXPRESSION "tests passed!")
21 endif()
22
23 foreach(file cmfree cmfree2 cmsplit2 cmsplit cmsplit_type commcreate1 comm_create_group comm_group_half comm_group_rand
24         comm_info comm_info2 commname ctxalloc ctxsplit dup dupic dup_with_info ic1 ic2
25         iccreate icgroup icm icsplit probe-intercomm comm_create_group_idup comm_idup_comm comm_idup_mul comm_idup comm_idup_iallreduce comm_idup_nb comm_idup_comm2 comm_idup_isend comm_idup_overlap
26 )
27   set(examples_src ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c)
28 endforeach()
29
30 set(examples_src ${examples_src}                                         PARENT_SCOPE)
31 set(txt_files    ${txt_files}     ${CMAKE_CURRENT_SOURCE_DIR}/testlist   PARENT_SCOPE)