From af27fb75907728d97b7b4fec7aea8203f2fc095a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 8 Jan 2009 11:53:21 +0000 Subject: Add cdash.org support: * the dashboard is there: http://my.cdash.org/index.php?project=Eigen * now you can run the tests from the top build dir and submit report like that (from the top build dir): ctest -D Experimental * todo: - add some nighlty builds (I'll add a few on my computer) - add valgrind memory checks, performances tests, compilation time tests, etc. --- CMakeLists.txt | 1 + CTestConfig.cmake | 13 +++++++++++++ test/CMakeLists.txt | 1 - test/vectorization_logic.cpp | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 CTestConfig.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index df050b4bd..41d30c1c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) add_subdirectory(Eigen) if(EIGEN_BUILD_TESTS) + include(CTest) add_subdirectory(test) endif(EIGEN_BUILD_TESTS) diff --git a/CTestConfig.cmake b/CTestConfig.cmake new file mode 100644 index 000000000..8c8e7e4ef --- /dev/null +++ b/CTestConfig.cmake @@ -0,0 +1,13 @@ +## This file should be placed in the root directory of your project. +## Then modify the CMakeLists.txt file in the root directory of your +## project to incorporate the testing dashboard. +## # The following are required to uses Dart and the Cdash dashboard +## ENABLE_TESTING() +## INCLUDE(Dart) +set(CTEST_PROJECT_NAME "Eigen") +set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") + +set(CTEST_DROP_METHOD "http") +set(CTEST_DROP_SITE "www.cdash.org") +set(CTEST_DROP_LOCATION "/CDashPublic/submit.php?project=Eigen") +set(CTEST_DROP_SITE_CDASH TRUE) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 706ff7e1a..377193289 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -146,7 +146,6 @@ macro(ei_add_test testname) endmacro(ei_add_test) - enable_testing() if(TEST_LIB) diff --git a/test/vectorization_logic.cpp b/test/vectorization_logic.cpp index 2f54189a9..d1b5b4916 100644 --- a/test/vectorization_logic.cpp +++ b/test/vectorization_logic.cpp @@ -81,6 +81,9 @@ void test_vectorization_logic() LinearVectorization,NoUnrolling)); VERIFY(test_sum(Matrix(), + NoVectorization,CompleteUnrolling)); + + VERIFY(test_sum(Matrix(), LinearVectorization,CompleteUnrolling)); VERIFY(test_sum(Matrix(), -- cgit v1.2.3