mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 13:22:22 -05:00
ctest: print WORKING_DIRECTORY property with -V
This commit is contained in:
@@ -693,6 +693,14 @@ void cmCTestRunTest::ComputeArguments()
|
|||||||
<< (this->TestHandler->MemCheck ? "MemCheck" : "Test")
|
<< (this->TestHandler->MemCheck ? "MemCheck" : "Test")
|
||||||
<< " command: " << testCommand << std::endl);
|
<< " command: " << testCommand << std::endl);
|
||||||
|
|
||||||
|
// Print any test-specific env vars in verbose mode
|
||||||
|
if (!this->TestProperties->Directory.empty()) {
|
||||||
|
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
|
||||||
|
this->Index << ": "
|
||||||
|
<< "Working Directory: "
|
||||||
|
<< this->TestProperties->Directory << std::endl);
|
||||||
|
}
|
||||||
|
|
||||||
// Print any test-specific env vars in verbose mode
|
// Print any test-specific env vars in verbose mode
|
||||||
if (!this->TestProperties->Environment.empty()) {
|
if (!this->TestProperties->Environment.empty()) {
|
||||||
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
|
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
|
||||||
|
|||||||
@@ -2999,7 +2999,7 @@ if(BUILD_TESTING)
|
|||||||
-C "\${CTestTest_CONFIG}"
|
-C "\${CTestTest_CONFIG}"
|
||||||
)
|
)
|
||||||
set_property(TEST CTestTestVerboseOutput PROPERTY PASS_REGULAR_EXPRESSION
|
set_property(TEST CTestTestVerboseOutput PROPERTY PASS_REGULAR_EXPRESSION
|
||||||
"Environment variables:.*foo=bar.*this=that"
|
"Test command:.*Working Directory:.*Environment variables:.*foo=bar.*this=that"
|
||||||
)
|
)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|||||||
Reference in New Issue
Block a user