cmCTestMemCheckCommand.cxx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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(
  18. this->Makefile, "MemoryCheckType", "CTEST_MEMORYCHECK_TYPE", this->Quiet);
  19. this->CTest->SetCTestConfigurationFromCMakeVariable(
  20. this->Makefile, "MemoryCheckSanitizerOptions",
  21. "CTEST_MEMORYCHECK_SANITIZER_OPTIONS", this->Quiet);
  22. this->CTest->SetCTestConfigurationFromCMakeVariable(
  23. this->Makefile, "MemoryCheckCommand", "CTEST_MEMORYCHECK_COMMAND",
  24. this->Quiet);
  25. this->CTest->SetCTestConfigurationFromCMakeVariable(
  26. this->Makefile, "MemoryCheckCommandOptions",
  27. "CTEST_MEMORYCHECK_COMMAND_OPTIONS", this->Quiet);
  28. this->CTest->SetCTestConfigurationFromCMakeVariable(
  29. this->Makefile, "MemoryCheckSuppressionFile",
  30. "CTEST_MEMORYCHECK_SUPPRESSIONS_FILE", this->Quiet);
  31. handler->SetQuiet(this->Quiet);
  32. return handler;
  33. }