X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/756b82fad06ba482ed401f3ed35c31874f367e8a..bace8e5a6ff160e200f799250796c5303dc487ba:/teshsuite/smpi/mpich3-test/group/CMakeLists.txt diff --git a/teshsuite/smpi/mpich3-test/group/CMakeLists.txt b/teshsuite/smpi/mpich3-test/group/CMakeLists.txt index 0f890fe4d7..b0814b8754 100644 --- a/teshsuite/smpi/mpich3-test/group/CMakeLists.txt +++ b/teshsuite/smpi/mpich3-test/group/CMakeLists.txt @@ -9,31 +9,21 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite) include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi") include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/") - add_executable(groupcreate groupcreate.c) -# add_executable(groupnullincl groupnullincl.c) - add_executable(grouptest2 grouptest2.c) - add_executable(grouptest grouptest.c) - add_executable(gtranks gtranks.c) - add_executable(gtranksperf gtranksperf.c) + foreach(file groupcreate grouptest2 grouptest gtranks gtranksperf) #groupnullincl + add_executable(${file} ${file}.c) + target_link_libraries(${file} simgrid mtest_c) + endforeach() +endif() - target_link_libraries(groupcreate simgrid mtest_c) -# target_link_libraries(groupnullincl simgrid mtest_c) - target_link_libraries(grouptest2 simgrid mtest_c) - target_link_libraries(grouptest simgrid mtest_c) - target_link_libraries(gtranks simgrid mtest_c) - target_link_libraries(gtranksperf simgrid mtest_c) +if (enable_smpi_MPICH3_testsuite AND HAVE_RAW_CONTEXTS) + ADD_TEST(test-smpi-mpich3-group-raw ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/teshsuite/smpi/mpich3-test/group ${PERL_EXECUTABLE} ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/runtests -mpiexec=${CMAKE_BINARY_DIR}/smpi_script/bin/smpirun -srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/group -tests=testlist -execarg=--cfg=contexts/factory:raw) + SET_TESTS_PROPERTIES(test-smpi-mpich3-group-raw PROPERTIES PASS_REGULAR_EXPRESSION "tests passed!") endif() -set(examples_src - ${examples_src} - ${CMAKE_CURRENT_SOURCE_DIR}/groupcreate.c - ${CMAKE_CURRENT_SOURCE_DIR}/groupnullincl.c - ${CMAKE_CURRENT_SOURCE_DIR}/grouptest2.c - ${CMAKE_CURRENT_SOURCE_DIR}/grouptest.c - ${CMAKE_CURRENT_SOURCE_DIR}/gtranks.c - ${CMAKE_CURRENT_SOURCE_DIR}/gtranksperf.c - PARENT_SCOPE) -set(txt_files - ${txt_files} - ${CMAKE_CURRENT_SOURCE_DIR}/testlist - PARENT_SCOPE) +foreach(file groupcreate grouptest2 grouptest gtranks gtranksperf groupnullincl) + set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c) +endforeach() + +set(examples_src ${examples_src} PARENT_SCOPE) +set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/testlist PARENT_SCOPE) +