diff options
| author | Luis Ibanez <luis.ibanez@gmail.com> | 2010-05-26 23:40:46 +0000 |
|---|---|---|
| committer | Luis Ibanez <luis.ibanez@gmail.com> | 2010-05-26 23:40:46 +0000 |
| commit | 04c131a315a6bb16430a028a1957ede3e90d280d (patch) | |
| tree | d08c7eca568186181c188f2ef1487e713fd6fbd3 | |
| parent | 40c092bbc3c9ed38c1b15b71af49f6236181d7ee (diff) | |
ENH: Added custom configuration for CTest. This allows to filter out
files for Code Coverage, and to filter out acceptable warnings
messages.
| -rw-r--r-- | CMakeLists.txt | 8 | ||||
| -rw-r--r-- | CTestCustom.cmake.in | 21 |
2 files changed, 29 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 38928452..e22dd3bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,14 @@ SET(OPENJPEG_LIBRARY_PROPERTIES INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityC.cmake) #----------------------------------------------------------------------------- +# Setup file for setting custom ctest vars +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake + @ONLY + ) + +#----------------------------------------------------------------------------- # OpenJPEG build configuration options. OPTION(BUILD_SHARED_LIBS "Build OpenJPEG with shared libraries." OFF) OPTION(ENABLE_PROFILING "Enable profiling for the library" OFF) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in new file mode 100644 index 00000000..00ad6670 --- /dev/null +++ b/CTestCustom.cmake.in @@ -0,0 +1,21 @@ +# +# 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) + +SET(CTEST_CUSTOM_COVERAGE_EXCLUDE + ${CTEST_CUSTOM_COVERAGE_EXCLUDE} + + # Exclude files from the Testing directories + ".*/Testing/.*" + ) + +SET(CTEST_CUSTOM_WARNING_EXCEPTION + ${CTEST_CUSTOM_WARNING_EXCEPTION} + + # Suppress warning caused by intentional messages about deprecation + ".*warning,.* is deprecated" +) |
