X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc030fa0846f0336bca44af8688909b6355b0f32..4ef64e60a35cd12020c3a903d5d708bb2eeb3b24:/buildtools/Cmake/AddTests.cmake diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index d510f5d258..acad3b3bd1 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -11,14 +11,54 @@ if(enable_smpi AND NOT WIN32) endif(enable_smpi AND NOT WIN32) -if(${PROCESSOR_x86_64}) - set(HAVE_RAWCTX 1) -endif(${PROCESSOR_x86_64}) -if(${PROCESSOR_i686}) - set(HAVE_RAWCTX 1) -endif(${PROCESSOR_i686}) +IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + message(STATUS "System processor: amd64") + set(HAVE_RAWCTX 1) + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^i386$") + message(STATUS "System processor: i386") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^i686$") + message(STATUS "System processor: i686") + set(HAVE_RAWCTX 1) + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^alpha") + message(STATUS "System processor: alpha") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm") + # Subdir is "arm" for both big-endian (arm) and little-endian (armel). + message(STATUS "System processor: arm") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^mips") + # mips* machines are bi-endian mostly so processor does not tell + # endianess of the underlying system. + message(STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}" "mips" "mipsel" "mipseb") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64") + message(STATUS "System processor: ppc64") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)") + message(STATUS "System processor: ppc") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc") + # Both flavours can run on the same processor + message(STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}" "sparc" "sparcv9") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(parisc|hppa)") + message(STATUS "System processor: parisc" "parisc64") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^s390") + # s390 binaries can run on s390x machines + message(STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}" "s390" "s390x") + +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^sh") + message(STATUS "System processor: sh") + +ELSE(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") #PROCESSOR NOT fIND + message(STATUS "PROCESSOR NOT FIND: ${CMAKE_SYSTEM_PROCESSOR}") + +ENDIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - ### For code coverage ### Set some variables SET(UPDATE_TYPE "svn") @@ -374,7 +414,6 @@ endif(HAVE_GTNETS) IF(HAVE_TRACING) ADD_TEST(tracing-ms ${CMAKE_BINARY_DIR}/bin/tesh --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg --cd ${CMAKE_HOME_DIRECTORY}/examples/msg tracing/ms.tesh) ADD_TEST(tracing-categories ${CMAKE_BINARY_DIR}/bin/tesh --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg --cd ${CMAKE_HOME_DIRECTORY}/examples/msg tracing/categories.tesh) - ADD_TEST(tracing-volume ${CMAKE_BINARY_DIR}/bin/tesh --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg --cd ${CMAKE_HOME_DIRECTORY}/examples/msg tracing/volume.tesh) ADD_TEST(tracing-tasks ${CMAKE_BINARY_DIR}/bin/tesh --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg --cd ${CMAKE_HOME_DIRECTORY}/examples/msg tracing/tasks.tesh) ADD_TEST(tracing-process-migration ${CMAKE_BINARY_DIR}/bin/tesh --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg --cd ${CMAKE_HOME_DIRECTORY}/examples/msg tracing/procmig.tesh) ADD_TEST(graphicator ${CMAKE_BINARY_DIR}/bin/tesh --setenv srcdir=${CMAKE_HOME_DIRECTORY} --setenv bindir=${CMAKE_BINARY_DIR}/bin --cd ${CMAKE_HOME_DIRECTORY}/tools/graphicator graphicator.tesh) @@ -436,19 +475,69 @@ endif(HAVE_MC) # Amok is broken in RL since before v3.3 (should fix it one day) set_tests_properties(amok-bandwidth-rl amok-saturate-rl PROPERTIES WILL_FAIL true) if(${ARCH_32_BITS}) - set_tests_properties(amok-bandwidth-sg-32-thread amok-bandwidth-sg-32-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(amok-saturate-sg-32-thread amok-saturate-sg-32-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(amok-bandwidth-sg-32-thread PROPERTIES WILL_FAIL true) + set_tests_properties(amok-saturate-sg-32-thread PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(amok-bandwidth-sg-32-ucontext amok-saturate-sg-32-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) if(HAVE_RAWCTX) set_tests_properties(amok-bandwidth-sg-32-raw amok-saturate-sg-32-raw PROPERTIES WILL_FAIL true) endif(HAVE_RAWCTX) else(${ARCH_32_BITS}) - set_tests_properties(amok-bandwidth-sg-64-thread amok-bandwidth-sg-64-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(amok-saturate-sg-64-thread amok-saturate-sg-64-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(amok-bandwidth-sg-64-thread PROPERTIES WILL_FAIL true) + set_tests_properties(amok-saturate-sg-64-thread PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(amok-bandwidth-sg-64-ucontext amok-saturate-sg-64-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) if(HAVE_RAWCTX) set_tests_properties(amok-bandwidth-sg-64-raw amok-saturate-sg-64-raw PROPERTIES WILL_FAIL true) endif(HAVE_RAWCTX) endif(${ARCH_32_BITS}) +# Those tests are broken : set to "fail" for release v3.6 +if(release) +if(${ARCH_32_BITS}) + set_tests_properties(gras-rpc-sg-32-thread PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-32-thread PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-32-thread PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(gras-rpc-sg-32-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-32-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-32-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) + if(HAVE_RAWCTX) + set_tests_properties(gras-rpc-sg-32-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-32-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-32-raw PROPERTIES WILL_FAIL true) + endif(HAVE_RAWCTX) +else(${ARCH_32_BITS}) + set_tests_properties(gras-rpc-sg-64-thread PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-64-thread PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-64-thread PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(gras-rpc-sg-64-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-64-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-64-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) + if(HAVE_RAWCTX) + set_tests_properties(gras-rpc-sg-64-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-64-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-64-raw PROPERTIES WILL_FAIL true) + endif(HAVE_RAWCTX) +endif(${ARCH_32_BITS}) +if(HAVE_MC) + set_tests_properties(mc-bugged1-thread PROPERTIES WILL_FAIL true) + set_tests_properties(mc-bugged2-thread PROPERTIES WILL_FAIL true) + set_tests_properties(mc-centralized-thread PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(mc-centralized-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) + if(HAVE_RAWCTX) + set_tests_properties(mc-centralized-raw PROPERTIES WILL_FAIL true) + endif(HAVE_RAWCTX) +endif(HAVE_MC) +endif(release) + endif(NOT enable_memcheck) ADD_TEST(tesh-simdag-full-links01 ${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms/basic_parsing_test ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms/two_clusters.xml FULL_LINK)