1#----------------------------------------------------------------------
2#
3# For further details regarding this file,
4# see http://www.cmake.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
5#
6# and
7# http://www.kitware.com/blog/home/post/27
8#
9#----------------------------------------------------------------------
10
11set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1000000)
12set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   50)
13set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 2000)
14
15set(CTEST_CUSTOM_COVERAGE_EXCLUDE
16  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
17
18  # Exclude files from the Testing directories
19  ".*/tests/.*"
20
21  # Exclude files from the ThirdParty Utilities directories
22  ".*/thirdparty/.*"
23  )
24
25set(CTEST_CUSTOM_WARNING_EXCEPTION
26  ${CTEST_CUSTOM_WARNING_EXCEPTION}
27
28  # Ignore clang's summary warning, assuming prior text has matched some
29  # other warning expression:
30  "[0-9,]+ warnings? generated."
31  # Suppress warning caused by intentional messages about deprecation
32  ".*warning,.* is deprecated"
33  # java also warns about deprecated API
34  ".*java.*deprecation"
35  ".*deprecation.*"
36  # suppress warnings caused by 3rd party libs:
37  ".*thirdparty.*"
38  "libtiff.*has no symbols"
39  "libpng.*has no symbols"
40  )
41