forked from TriBITSPub/TriBITS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Caputure output from tribits_ctest_update_commands.cmake (TriBIT…
…SPub#278) I also added this to the notes files and refactored that a little to clean them up.
- Loading branch information
1 parent
73479ce
commit 808827f
Showing
3 changed files
with
106 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tribits/ctest_driver/tribits_ctest_update_commands_wrapper.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# cmake -P script that calls tribits_ctest_update_commands.cmake and sends | ||
# STDOUT to a file. | ||
# | ||
# This script is required if you want to capture the output from these | ||
# commands to a file since this is called from ctest_update() which discards | ||
# the output (and does not send it to CDash). | ||
# | ||
|
||
message("\ncmake -P tribits_ctest_update_commands_wrapper.cmake:") | ||
message("-- OUTPUT_FILE=${OUTPUT_FILE}\n") | ||
|
||
execute_process( | ||
COMMAND "${CMAKE_COMMAND}" | ||
-DGIT_EXE=${GIT_EXE} | ||
-DREMOTE_NAME=${REMOTE_NAME} | ||
-DBRANCH=${BRANCH} | ||
-DUNIT_TEST_MODE=${UNIT_TEST_MODE} | ||
-P ${CMAKE_CURRENT_LIST_DIR}/tribits_ctest_update_commands.cmake | ||
OUTPUT_FILE "${OUTPUT_FILE}" | ||
ERROR_FILE "${OUTPUT_FILE}" | ||
RESULT_VARIABLE RTN_CODE | ||
) | ||
message("\ntribits_ctest_update_commands_wrapper.cmake return: ${RTN_CODE}\n") | ||
|
||
if (NOT "${RTN_CODE}" STREQUAL "0") | ||
message(FATAL_ERROR "Git Update FAILED!") | ||
endif() |