CTestCustom.cmake.in 3.75 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#
# Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
#     https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#
# Note that the OTB/CMakeLists.txt file configures this file
#
#               CMake/CTestCustom.cmake.in
#
# to this file
#
#       ${OTB_BINARY_DIR}/CTestCustom.cmake
#
#----------------------------------------------------------------------
#
# For further details regarding this file,
# see http://www.cmake.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
#
# and
# http://www.kitware.com/blog/home/post/27
#
#----------------------------------------------------------------------

set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1000000)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 50)

43 44 45
if(NOT DEFINED CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS)
  set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 300)
endif()
46 47 48 49 50 51 52 53 54 55

set(CTEST_CUSTOM_COVERAGE_EXCLUDE
 ${CTEST_CUSTOM_COVERAGE_EXCLUDE}

 # Exclude try_compile sources from coverage results:
 "/CMakeFiles/CMakeTmp/"

 # Exclude files from the Examples directories
 #".*/Examples/.*"

56 57 58 59
 # Exclude files from the Testing directories
 ".*/test/.*"
 ".*/Testing/.*"

60
 # Exclude files from the ThirdParty Utilities directories
61
 ".*/Modules/ThirdParty/.*"
62 63 64
 ".*/Utilities/.*"

 # Exclude SWIG wrappers files
65 66 67
 ".*/Modules/Wrappers/SWIG/src/python/otbApplicationPYTHON_wrap.*"
 ".*/Modules/Wrappers/SWIG/src/python3/otbApplicationPYTHON_wrap.*"
 ".*/Modules/Wrappers/SWIG/src/java/otbApplicationJAVA_wrap.*"
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

 # Exclude Qt moc file
 ".*moc_.*"
 )

set(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  "backward_warning"
  "warning LNK4221"
  "ranlib:.*file:.*has no symbols"
  "ranlib: file: .+ has no symbols"
  "ranlib:.*warning for library:.*the table of contents is empty.*no object file members in the library define global symbols.*"
  "libtool:.*file:.*has no symbols"
  "warning -.: directory name .* does not exist"
  "ld.*warning.*duplicate dylib.*"
  "WARNING non-zero return value in ctest"
  ".*Microsoft.*include.*.h.*[Ww]arning.*"
  ".*gdal_priv.h.*[Ww]arning.*"
  ".*cpl_string.h.*[Ww]arning.*"
87
  ".*ogr_feature.h.*[Ww]arning.*"
88 89 90 91

  # Ignore clang's summary warning, assuming prior text has matched some
  # other warning expression:
  "[0-9,]+ warnings? generated."
92
  "cl...Command.line.warning.D9025"
93
  ".*include.opencv2.*warning.*"
94
  ".*include.opencv2.*note.*"
95 96
  ".*include.kml.*warning.*"
  ".*include.ogr_feature.*warning.*"
97
  ".*include.ogr_feature.*note.*"
98 99
  ".*itksys.SharedForward.h.*warning.*"
  ".*vcl_deprecated_header.h.*"
100 101 102 103
  ".*otbCurlHelper.cxx:.*warning.*maxConnect.*"
  ".*include.ITK-4.*warning.*"
  ".*include.curl.curl.h.*warning.*"
  ".*include.ossim.*warning.*"
104
  ".*include.ossim.*note.*"
105 106 107 108 109 110 111 112
  ".*include.ogr_core.h.*warning.*"
  ".*include.ogr_srs_api.h.*warning.*"
  ".*include.ogrsf_frmts.h.*warning.*"
  ".*include.ogr_geometry.h.*warning.*"
  ".*include.ogr_spatialref.h.*warning.*"
  ".*include.cpl_error.h.*warning.*"
  ".*vnl.vnl_numeric_traits.h.*warning.*"
  ".*vcl_config_compiler.h.*warning.*"
113
  ".*boost.move.unique_ptr.hpp:.*"
114
  ".*include.mpValue.h.*[Ww]arning.*\\[-Wc\\+\\+11-extensions\\]"
115
  ".*itksys.SharedForward.h.*warning.*itksys_shared_forward_to_real.*"
116
  ".*include.mpi_portable_platform.h.*warning.*invalid.suffix.on.literal.*"
117
  )