| | include(EigenTesting) |
| | include(CheckCXXSourceCompiles) |
| |
|
| | |
| | ei_set_sitename() |
| |
|
| | |
| | ei_set_build_string() |
| |
|
| | add_custom_target(buildtests) |
| | add_custom_target(check COMMAND "ctest" ${EIGEN_CTEST_ARGS}) |
| | add_dependencies(check buildtests) |
| |
|
| | |
| | add_custom_target(buildtests_gpu) |
| | add_custom_target(check_gpu COMMAND "ctest" "--output-on-failure" |
| | "--no-compress-output" |
| | "--build-no-clean" |
| | "-T" "test" |
| | "-L" "gpu") |
| | add_dependencies(check_gpu buildtests_gpu) |
| |
|
| | |
| | |
| |
|
| | |
| | include(CTest) |
| |
|
| | set(EIGEN_TEST_BUILD_FLAGS "" CACHE STRING "Options passed to the build command of unit tests") |
| | set(EIGEN_DASHBOARD_BUILD_TARGET "buildtests" CACHE STRING "Target to be built in dashboard mode, default is buildtests") |
| | set(EIGEN_CTEST_ERROR_EXCEPTION "" CACHE STRING "Regular expression for build error messages to be filtered out") |
| |
|
| | |
| | |
| | |
| | file(READ "${CMAKE_CURRENT_BINARY_DIR}/DartConfiguration.tcl" EIGEN_DART_CONFIG_FILE) |
| | |
| | string(REGEX MATCH "MakeCommand:.*-- (.*)\nDefaultCTestConfigurationType" EIGEN_DUMMY ${EIGEN_DART_CONFIG_FILE}) |
| | if(NOT CMAKE_MATCH_1) |
| | string(REGEX MATCH "MakeCommand:.*[^c]make (.*)\nDefaultCTestConfigurationType" EIGEN_DUMMY ${EIGEN_DART_CONFIG_FILE}) |
| | endif() |
| | string(REGEX REPLACE "MakeCommand:.*DefaultCTestConfigurationType" "MakeCommand: ${CMAKE_COMMAND} --build . --target ${EIGEN_DASHBOARD_BUILD_TARGET} --config \"\${CTEST_CONFIGURATION_TYPE}\" -- ${CMAKE_MATCH_1} ${EIGEN_TEST_BUILD_FLAGS}\nDefaultCTestConfigurationType" |
| | EIGEN_DART_CONFIG_FILE2 ${EIGEN_DART_CONFIG_FILE}) |
| | file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/DartConfiguration.tcl" ${EIGEN_DART_CONFIG_FILE2}) |
| |
|
| | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake.in ${CMAKE_BINARY_DIR}/CTestCustom.cmake) |
| |
|
| | |
| | ei_init_testing() |
| |
|
| | |
| | option(EIGEN_NO_ASSERTION_CHECKING "Disable checking of assertions using exceptions" OFF) |
| | option(EIGEN_DEBUG_ASSERTS "Enable advanced debugging of assertions" OFF) |
| |
|
| | if(CMAKE_COMPILER_IS_GNUCXX) |
| | option(EIGEN_COVERAGE_TESTING "Enable/disable gcov" OFF) |
| | if(EIGEN_COVERAGE_TESTING) |
| | set(COVERAGE_FLAGS "-fprofile-arcs -ftest-coverage") |
| | set(CTEST_CUSTOM_COVERAGE_EXCLUDE "/test/") |
| | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COVERAGE_FLAGS}") |
| | endif() |
| | |
| | elseif(MSVC) |
| | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS") |
| | endif() |
| |
|
| |
|
| |
|