cmCTestMemCheckCommand.cxx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmCTestMemCheckCommand.h"
  11. #include "cmCTest.h"
  12. #include "cmCTestGenericHandler.h"
  13. cmCTestGenericHandler* cmCTestMemCheckCommand::InitializeActualHandler()
  14. {
  15. cmCTestGenericHandler* handler
  16. = this->CTest->GetInitializedHandler("memcheck");
  17. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  18. "MemoryCheckType", "CTEST_MEMORYCHECK_TYPE", this->Quiet);
  19. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  20. "MemoryCheckSanitizerOptions", "CTEST_MEMORYCHECK_SANITIZER_OPTIONS",
  21. this->Quiet);
  22. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  23. "MemoryCheckCommand", "CTEST_MEMORYCHECK_COMMAND", this->Quiet);
  24. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  25. "MemoryCheckCommandOptions", "CTEST_MEMORYCHECK_COMMAND_OPTIONS",
  26. this->Quiet);
  27. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  28. "MemoryCheckSuppressionFile", "CTEST_MEMORYCHECK_SUPPRESSIONS_FILE",
  29. this->Quiet);
  30. handler->SetQuiet(this->Quiet);
  31. return handler;
  32. }