You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CTestCustom.cmake.in 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #######################################################################
  2. # Software License Agreement (AGPL-3 License)
  3. #
  4. # OpenViBE SDK Test Software
  5. # Based on OpenViBE V1.1.0, Copyright (C) Inria, 2006-2015
  6. # Copyright (C) Inria, 2015-2017,V1.0
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU Affero General Public License version 3,
  10. # as published by the Free Software Foundation.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program.
  19. # If not, see <http://www.gnu.org/licenses/>.
  20. #######################################################################
  21. # Define following options here:
  22. # CTEST_CUSTOM_ERROR_MATCH Regular expression for errors during build process
  23. # CTEST_CUSTOM_ERROR_EXCEPTION Regular expression for error exceptions during build process
  24. # CTEST_CUSTOM_WARNING_MATCH Regular expression for warnings during build process
  25. # CTEST_CUSTOM_WARNING_EXCEPTION Regular expression for warning exception during build process
  26. # CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS Maximum number of errors to display
  27. # CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS Maximum number of warnings to display
  28. # CTEST_CUSTOM_TESTS_IGNORE List of tests to ignore during the Test stage
  29. # CTEST_CUSTOM_MEMCHECK_IGNORE List of tests to ignore during the MemCheck stage
  30. # CTEST_CUSTOM_PRE_TEST Command to execute before any tests are run during Test stage
  31. # CTEST_CUSTOM_POST_TEST Command to execute after any tests are run during Test stage
  32. # CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE Maximum size of passed test output
  33. # CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE Maximum size of failed test output
  34. # CTEST_CUSTOM_PRE_MEMCHECK Command to execute before any tests are run during MemCheck stage
  35. # CTEST_CUSTOM_POST_MEMCHECK Command to execute after any tests are run during MemCheck stage
  36. # CTEST_CUSTOM_COVERAGE_EXCLUDE Regular expression for excluding files from coverage testing
  37. # CTEST_CUSTOM_COVERAGE_GLOB Report on uncovered files matching this expression
  38. # -----------------------------
  39. # CTest variable customization
  40. # -----------------------------
  41. SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 100000)
  42. # Warning exception are used to remove warning
  43. # linked with ctest generated files (test runner cpp files)
  44. SET(CTEST_CUSTOM_WARNING_EXCEPTION
  45. ${CTEST_CUSTOM_WARNING_EXCEPTION}
  46. "warning C4996"
  47. )
  48. # Create unit test temporary dir
  49. SET(CTEST_CUSTOM_PRE_TEST "@CMAKE_COMMAND@ -E make_directory @OVT_TEST_TEMPORARY_DIR@")
  50. # Remove unit test temporary dir
  51. SET(CTEST_CUSTOM_POST_TEST "@CMAKE_COMMAND@ -E remove_directory @OVT_TEST_TEMPORARY_DIR@")