run a specific script
| 299 | |
| 300 | // run a specific script |
| 301 | int 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 | |
| 324 | bool cmCTestScriptHandler::RunScript(cmCTest* ctest, cmMakefile* mf, |
| 325 | std::string const& sname, bool InProcess, |
no test coverage detected