cmCTestMemCheckCommand.cxx 1.2 KB

123456789101112131415161718192021222324252627282930
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmCTestMemCheckCommand.h"
  4. #include "cmCTest.h"
  5. #include "cmCTestGenericHandler.h"
  6. cmCTestGenericHandler* cmCTestMemCheckCommand::InitializeActualHandler()
  7. {
  8. cmCTestGenericHandler* handler =
  9. this->CTest->GetInitializedHandler("memcheck");
  10. this->CTest->SetCTestConfigurationFromCMakeVariable(
  11. this->Makefile, "MemoryCheckType", "CTEST_MEMORYCHECK_TYPE", this->Quiet);
  12. this->CTest->SetCTestConfigurationFromCMakeVariable(
  13. this->Makefile, "MemoryCheckSanitizerOptions",
  14. "CTEST_MEMORYCHECK_SANITIZER_OPTIONS", this->Quiet);
  15. this->CTest->SetCTestConfigurationFromCMakeVariable(
  16. this->Makefile, "MemoryCheckCommand", "CTEST_MEMORYCHECK_COMMAND",
  17. this->Quiet);
  18. this->CTest->SetCTestConfigurationFromCMakeVariable(
  19. this->Makefile, "MemoryCheckCommandOptions",
  20. "CTEST_MEMORYCHECK_COMMAND_OPTIONS", this->Quiet);
  21. this->CTest->SetCTestConfigurationFromCMakeVariable(
  22. this->Makefile, "MemoryCheckSuppressionFile",
  23. "CTEST_MEMORYCHECK_SUPPRESSIONS_FILE", this->Quiet);
  24. handler->SetQuiet(this->Quiet);
  25. return handler;
  26. }