Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a cmake option to disable McMini tests, and rename some existing ones
[simgrid.git] / teshsuite / smpi / mpich3-test / topo / 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 cartcreates cartshift1 cartsuball cartzero)
9     # not compiled files
10     # cartmap1 dgraph_unwgt dims1 dims2 dims3 dims4 distgraph1 graphcr2 graphcr graphmap1 neighb_coll topodup topotest
11     add_executable(${file} EXCLUDE_FROM_ALL ${file}.c)
12     add_dependencies(tests ${file})
13     target_link_libraries(${file} simgrid mtest_c)
14   endforeach()
15 endif()
16
17 foreach(file cartcreates cartshift1 cartsuball cartzero cartmap1 dgraph_unwgt dims1 dims2 dims3 dims4 dims5 distgraph1
18         graphcr2 graphcr graphmap1 neighb_coll topodup topotest)
19   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c)
20 endforeach()
21
22 if (enable_testsuite_smpi_MPICH3 AND HAVE_RAW_CONTEXTS)
23   ADD_TEST(test-smpi-mpich3-topo-raw       ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/teshsuite/smpi/mpich3-test/topo ${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/topo -tests=testlist -execarg=--cfg=contexts/factory:raw)
24   SET_TESTS_PROPERTIES(test-smpi-mpich3-topo-raw PROPERTIES PASS_REGULAR_EXPRESSION "tests passed!")
25 endif()
26
27 set(examples_src  ${examples_src}                                        PARENT_SCOPE)
28 set(txt_files     ${txt_files}     ${CMAKE_CURRENT_SOURCE_DIR}/testlist  PARENT_SCOPE)