Add new mechanism for cppcheck
[openjpeg.git] / CMake / CTestCustom.cmake.in
1 # For further details regarding this file,
2 # see http://www.cmake.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
3 #
4 # and
5 # http://www.kitware.com/blog/home/post/27
6 #
7 #----------------------------------------------------------------------
8
9 SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1000000)
10 SET(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   50)
11 SET(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 2000)
12
13 SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
14  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
15
16  # Exclude files from the Testing directories
17  ".*/tests/.*"
18  
19   # Exclude files from the ThirdParty Utilities directories
20  ".*/thirdparty/.*"
21  )
22
23 SET(CTEST_CUSTOM_WARNING_EXCEPTION
24   ${CTEST_CUSTOM_WARNING_EXCEPTION}
25   
26   # Suppress warning caused by intentional messages about deprecation
27   ".*warning,.* is deprecated"
28 )
29
30
31 # Custom mechanism to catch cppcheck reports:
32 #set(CTEST_CUSTOM_ERROR_MATCH
33 # "error"
34 #)
35
36 # don't ask
37 SET(CTEST_CUSTOM_WARNING_MATCH
38  "error"
39 )