diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2015-03-15 17:00:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-17 14:11:33 (GMT) |
commit | 874fdd914a646d25096c34b97caafe43e2a77748 (patch) | |
tree | 977f364db95e1200a4607777282a9d04511579a6 /Tests/CMakeLists.txt | |
parent | 607131bf8c806b6227e56089eab9252537bd31d8 (diff) | |
download | CMake-874fdd914a646d25096c34b97caafe43e2a77748.zip CMake-874fdd914a646d25096c34b97caafe43e2a77748.tar.gz CMake-874fdd914a646d25096c34b97caafe43e2a77748.tar.bz2 |
CTest: Output test-specific env vars in verbose mode (#15446)
Any environment vars that were configured for a test via the
ENVIRONMENT property will now be output when the test is run
with verbose logging enabled.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 703c548..c755651 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -2561,6 +2561,17 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release --output-log "${CMake_BINARY_DIR}/Tests/CTestTestParallel/testOutput.log" ) + configure_file("${CMake_SOURCE_DIR}/Tests/CTestTestVerboseOutput/test.cmake.in" + "${CMake_BINARY_DIR}/Tests/CTestTestVerboseOutput/test.cmake" @ONLY ESCAPE_QUOTES) + add_test(CTestTestVerboseOutput ${CMAKE_CTEST_COMMAND} + -S "${CMake_BINARY_DIR}/Tests/CTestTestVerboseOutput/test.cmake" -VV + --output-log "${CMake_BINARY_DIR}/Tests/CTestTestVerboseOutput/testOutput.log" + -C "\${CTestTest_CONFIG}" + ) + set_property(TEST CTestTestVerboseOutput PROPERTY PASS_REGULAR_EXPRESSION + "Environment variables:.*foo=bar.*this=that" + ) + configure_file( "${CMake_SOURCE_DIR}/Tests/CTestTestSkipReturnCode/test.cmake.in" "${CMake_BINARY_DIR}/Tests/CTestTestSkipReturnCode/test.cmake" |