Added a CTestCustom.cmake file to filter unwanted files from code coverage and suppre...
authorjulie <julielangou@users.noreply.github.com>
Mon, 20 Dec 2010 22:54:32 +0000 (22:54 +0000)
committerjulie <julielangou@users.noreply.github.com>
Mon, 20 Dec 2010 22:54:32 +0000 (22:54 +0000)
- Chuck Atkins (Kitware)

CMakeLists.txt
CTestCustom.cmake.in [new file with mode: 0644]

index 4a9cc47..b25d028 100644 (file)
@@ -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 (file)
index 0000000..30240be
--- /dev/null
@@ -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"
+)