From: julie Date: Mon, 20 Dec 2010 22:54:32 +0000 (+0000) Subject: Added a CTestCustom.cmake file to filter unwanted files from code coverage and suppre... X-Git-Tag: accepted/tizen/5.0/unified/20181102.024111~887 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96a5907fbc5787b9b8e45d9acc9033af7a112718;p=platform%2Fupstream%2Flapack.git Added a CTestCustom.cmake file to filter unwanted files from code coverage and suppress harmless warnings on the dashboard. - Chuck Atkins (Kitware) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a9cc47..b25d028 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,13 @@ cmake_minimum_required(VERSION 2.6) project(LAPACK Fortran) +# Configure the warning and code coverage suppression file +configure_file( + "${LAPACK_SOURCE_DIR}/CTestCustom.cmake.in" + "${LAPACK_BINARY_DIR}/CTestCustom.cmake" + COPYONLY +) + # Add the CMake directory for custon CMake modules set(CMAKE_MODULE_PATH "${LAPACK_SOURCE_DIR}/CMAKE" ${CMAKE_MODULE_PATH}) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in new file mode 100644 index 0000000..30240be --- /dev/null +++ b/CTestCustom.cmake.in @@ -0,0 +1,27 @@ +# +# For further details regarding this file, +# see http://www.vtk.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest +# + +SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 50) +SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 50) + +# Files to explicitly exclude from code coverage +SET(CTEST_CUSTOM_COVERAGE_EXCLUDE + ${CTEST_CUSTOM_COVERAGE_EXCLUDE} + + # Exclude the internal BLAS libraries + "/BLAS/" + + # Exclude the testing code itself from code coverage + "/TESTING/" +) + +# Warnings to explicitly ignore +SET(CTEST_CUSTOM_WARNING_EXCEPTION + ${CTEST_CUSTOM_WARNING_EXCEPTION} + + # Common warning when linking ATLAS built with GNU Fortran 4.1 and building + # with GNU Fortran 4.4. It can be safely ignored. + "libgfortran.*may conflict with libgfortran" +)