Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correct Name of test.
[simgrid.git] / buildtools / Cmake / AddTestsWin.cmake
index bdee1f5..dc9e111 100644 (file)
@@ -1,6 +1,37 @@
+if(enable_memcheck)\r
+       exec_program("valgrind --version " OUTPUT_VARIABLE "VALGRIND_VERSION")\r
+       if(VALGRIND_VERSION AND PERL_EXECUTABLE)\r
+               string(REGEX MATCH "[0-9].[0-9].[0-9]" NEW_VALGRIND_VERSION "${VALGRIND_VERSION}")\r
+               if(NEW_VALGRIND_VERSION)\r
+                       exec_program("${PROJECT_DIRECTORY}/buildtools/Cmake/generate_memcheck_tests.pl ${PROJECT_DIRECTORY} ${PROJECT_DIRECTORY}/buildtools/Cmake/AddTests.cmake > ${PROJECT_DIRECTORY}/buildtools/Cmake/memcheck_tests.cmake")\r
+               else(NEW_VALGRIND_VERSION)\r
+                       set(enable_memcheck false)\r
+                       message("Command valgrind not found --> enable_memcheck autoset to false.")\r
+               endif(NEW_VALGRIND_VERSION)\r
+       else(VALGRIND_VERSION AND PERL_EXECUTABLE)\r
+               set(enable_memcheck false)\r
+               message(FATAL_ERROR "Command valgrind or perl not found --> enable_memcheck autoset to false.")\r
+       endif(VALGRIND_VERSION AND PERL_EXECUTABLE)\r
+endif(enable_memcheck)\r
+\r
+### For code coverage\r
+### Set some variables\r
+SET(UPDATE_TYPE "svn")\r
+SET(DROP_METHOD "http")\r
+SET(DROP_SITE "cdash.inria.fr/CDash")\r
+SET(DROP_LOCATION "/submit.php?project=${PROJECT_NAME}")\r
+SET(DROP_SITE_CDASH TRUE)\r
+SET(TRIGGER_SITE "http://cdash.inria.fr/CDash/cgi-bin/Submit-Random-TestingResults.cgi")\r
+set(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --leak-check=full --show-reachable=yes --track-origins=yes --read-var-info=no")\r
+SET(VALGRIND_COMMAND "${PROJECT_DIRECTORY}/buildtools/Cmake/my_valgrind.pl")\r
+SET(MEMORYCHECK_COMMAND "${PROJECT_DIRECTORY}/buildtools/Cmake/my_valgrind.pl")\r
+#If you use the --read-var-info option Memcheck will run more slowly but may give a more detailed description of any illegal address.\r
+\r
 INCLUDE(CTest)\r
 ENABLE_TESTING()\r
 \r
 INCLUDE(CTest)\r
 ENABLE_TESTING()\r
 \r
+# BEGIN TESH TESTS\r
+\r
 # teshsuite/xbt\r
 IF(${ARCH_32_BITS})\r
   ADD_TEST(tesh-gras-msg_handle-sg-32  perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/msg_handle/test_sg_32)\r
 # teshsuite/xbt\r
 IF(${ARCH_32_BITS})\r
   ADD_TEST(tesh-gras-msg_handle-sg-32  perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/msg_handle/test_sg_32)\r
@@ -31,7 +62,7 @@ ADD_TEST(tesh-simdag-basic6   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl $
 ADD_TEST(tesh-simdag-p2p-1     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency1.tesh)\r
 ADD_TEST(tesh-simdag-p2p-2     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency2.tesh)\r
 ADD_TEST(tesh-simdag-p2p-3     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency3.tesh)\r
 ADD_TEST(tesh-simdag-p2p-1     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency1.tesh)\r
 ADD_TEST(tesh-simdag-p2p-2     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency2.tesh)\r
 ADD_TEST(tesh-simdag-p2p-3     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency3.tesh)\r
-ADD_TEST(tesh-simdag-p2p-3     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency_bound.tesh)\r
+ADD_TEST(tesh-simdag-p2p-4     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency_bound.tesh)\r
 ADD_TEST(tesh-simdag-mxn-1     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_all2all.tesh)\r
 ADD_TEST(tesh-simdag-mxn-2     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_independent_comm.tesh)\r
 ADD_TEST(tesh-simdag-mxn-3     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_scatter.tesh)\r
 ADD_TEST(tesh-simdag-mxn-1     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_all2all.tesh)\r
 ADD_TEST(tesh-simdag-mxn-2     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_independent_comm.tesh)\r
 ADD_TEST(tesh-simdag-mxn-3     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_scatter.tesh)\r