diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-12-21 21:21:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-12-21 21:21:47 (GMT) |
commit | 91bcb88c3cbd9500563ccddb8dec721a04e3f7f6 (patch) | |
tree | 076fdcfdf0338a6d63fb60bde2b3a4f7db59c111 /Tests/RunCMake/ExternalProject/LogOutputOnFailureMerged.cmake | |
parent | 16262ed7628cc6272178eb7ca1503b66b2380cf4 (diff) | |
parent | 19d86e26e392a80163d90cbc1accaf45412968f8 (diff) | |
download | CMake-91bcb88c3cbd9500563ccddb8dec721a04e3f7f6.zip CMake-91bcb88c3cbd9500563ccddb8dec721a04e3f7f6.tar.gz CMake-91bcb88c3cbd9500563ccddb8dec721a04e3f7f6.tar.bz2 |
Merge topic 'output-on-failure'
19d86e26e3 ExternalProject: add LOG_OUTPUT_ON_FAILURE option
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2625
Diffstat (limited to 'Tests/RunCMake/ExternalProject/LogOutputOnFailureMerged.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalProject/LogOutputOnFailureMerged.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalProject/LogOutputOnFailureMerged.cmake b/Tests/RunCMake/ExternalProject/LogOutputOnFailureMerged.cmake new file mode 100644 index 0000000..116448b --- /dev/null +++ b/Tests/RunCMake/ExternalProject/LogOutputOnFailureMerged.cmake @@ -0,0 +1,21 @@ +include(ExternalProject) + +set(dummyOutput [[ +This is some dummy output with some long lines to ensure formatting is preserved + Including lines with leading spaces + +And also blank lines +]]) + +ExternalProject_Add(FailsWithOutput + SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} + CONFIGURE_COMMAND "" + BUILD_COMMAND ${CMAKE_COMMAND} -E echo ${dummyOutput} + COMMAND ${CMAKE_COMMAND} -E env # missing command, forces fail + TEST_COMMAND "" + INSTALL_COMMAND "" + LOG_BUILD YES + LOG_OUTPUT_ON_FAILURE YES + LOG_MERGED_STDOUTERR YES + USES_TERMINAL_BUILD YES +) |