MCPcopy Index your code
hub / github.com/Kitware/CMake / RunConfigurationScript

Method RunConfigurationScript

Source/CTest/cmCTestScriptHandler.cxx:301–322  ·  view source on GitHub ↗

run a specific script

Source from the content-addressed store, hash-verified

299
300// run a specific script
301int cmCTestScriptHandler::RunConfigurationScript(
302 std::string const& total_script_arg, bool pscope)
303{
304#ifndef CMAKE_BOOTSTRAP
305 cmSystemTools::SaveRestoreEnvironment sre;
306#endif
307
308 int result;
309
310 // read in the script
311 if (pscope) {
312 cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
313 "Reading Script: " << total_script_arg << std::endl);
314 result = this->ReadInScript(total_script_arg);
315 } else {
316 cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
317 "Executing Script: " << total_script_arg << std::endl);
318 result = this->ExecuteScript(total_script_arg);
319 }
320
321 return result;
322}
323
324bool cmCTestScriptHandler::RunScript(cmCTest* ctest, cmMakefile* mf,
325 std::string const& sname, bool InProcess,

Callers 1

ProcessHandlerMethod · 0.95

Calls 2

ReadInScriptMethod · 0.95
ExecuteScriptMethod · 0.95

Tested by

no test coverage detected