diff options
author | Igor Ivanov <artalus-mail@yandex.ru> | 2019-08-10 08:41:53 (GMT) |
---|---|---|
committer | Igor Ivanov <artalus-mail@yandex.ru> | 2019-08-10 08:41:53 (GMT) |
commit | 3c94069660112f841df3bae66891e05bfc7bad00 (patch) | |
tree | d173ed0adfdfddb1cf4da0f2230960b0165a8b7c /Tests/RunCMake/CommandLine/RunCMakeTest.cmake | |
parent | 2327cc0e0575175e8dec4b7a6fa6cafd5d0f7ca9 (diff) | |
download | CMake-3c94069660112f841df3bae66891e05bfc7bad00.zip CMake-3c94069660112f841df3bae66891e05bfc7bad00.tar.gz CMake-3c94069660112f841df3bae66891e05bfc7bad00.tar.bz2 |
Add --trace-redirect parameter to redirect trace output to a file
Diffstat (limited to 'Tests/RunCMake/CommandLine/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/CommandLine/RunCMakeTest.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake index 4e19871..dd49423 100644 --- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake +++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake @@ -484,6 +484,14 @@ set(RunCMake_TEST_OPTIONS --trace-expand --warn-uninitialized) run_cmake(trace-expand-warn-uninitialized) unset(RunCMake_TEST_OPTIONS) +set(RunCMake_TEST_OPTIONS --trace-redirect=${RunCMake_BINARY_DIR}/redirected.trace) +run_cmake(trace-redirect) +unset(RunCMake_TEST_OPTIONS) + +set(RunCMake_TEST_OPTIONS --trace-redirect=/no/such/file.txt) +run_cmake(trace-redirect-nofile) +unset(RunCMake_TEST_OPTIONS) + set(RunCMake_TEST_OPTIONS -Wno-deprecated --warn-uninitialized) run_cmake(warn-uninitialized) unset(RunCMake_TEST_OPTIONS) |