-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Pull Request #4438 from trilinos/Trilinos/tribits_github_snapshot
Automatically Merged using Trilinos Pull Request AutoTester PR Title: tribits_ctest_driver(): Use more robust and better git commands and stronger testing (TRIL-260) PR Author: bartlettroscoe
- Loading branch information
Showing
29 changed files
with
780 additions
and
330 deletions.
There are no files selected for viewing
427 changes: 268 additions & 159 deletions
427
cmake/tribits/ctest_driver/TribitsCTestDriverCore.cmake
Large diffs are not rendered by default.
Oops, something went wrong.
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
41 changes: 41 additions & 0 deletions
41
cmake/tribits/ctest_driver/TribitsGetCTestTestXmlDir.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,41 @@ | ||
# | ||
# cmake -P script to get the CTest testing XML directory | ||
# <build>/Testing/<buildstarttime> given jus the <bulid> directory path. | ||
# | ||
# Usage: | ||
# | ||
# cmake \ | ||
# -DPROJECT_NAME=<projectName> \ | ||
# -D${PROJECT_NAME}_TRIBITS_DIR=<tribits-dir> \ | ||
# -DCTEST_BUILD_DIR=<build-dir> \ | ||
# -P <tribits-dir>/ctest_driver/TribitsGetCTestTestXmlDir.cmake | ||
# | ||
# This script reads in the <build-dir>/Testing/TAG to get <bulidstarttime> and | ||
# then prints the directory <build>/Testing/<buildstarttime> to STDOUT. | ||
# | ||
|
||
IF ("${PROJECT_NAME}" STREQUAL "") | ||
MESSAGE(FATAL_ERROR "Error, PROJECT_NAME must be set!") | ||
ENDIF() | ||
|
||
IF ("${${PROJECT_NAME}_TRIBITS_DIR}" STREQUAL "") | ||
MESSAGE(FATAL_ERROR "Error, ${PROJECT_NAME}_TRIBITS_DIR must be set!") | ||
ENDIF() | ||
|
||
IF ("${CTEST_BUILD_DIR}" STREQUAL "") | ||
MESSAGE(FATAL_ERROR "Error, CTEST_BUILD_DIR must be set!") | ||
ENDIF() | ||
|
||
SET( CMAKE_MODULE_PATH | ||
"${${PROJECT_NAME}_TRIBITS_DIR}/core/utils" | ||
"${${PROJECT_NAME}_TRIBITS_DIR}/core/package_arch" | ||
"${${PROJECT_NAME}_TRIBITS_DIR}/ctest_driver" | ||
) | ||
|
||
INCLUDE(TribitsReadTagFile) | ||
|
||
SET(TAG_FILE "${CTEST_BUILD_DIR}/Testing/TAG") | ||
|
||
TRIBITS_READ_CTEST_TAG_FILE("${TAG_FILE}" BUILD_START_TIME CDASH_TRACK) | ||
|
||
MESSAGE("${CTEST_BUILD_DIR}/Testing/${BUILD_START_TIME}") |
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,16 @@ | ||
INCLUDE(TribitsCMakePolicies) | ||
INCLUDE(Split) | ||
|
||
|
||
# | ||
# Read in the <build>/Testing/TAG file contents | ||
# | ||
# | ||
FUNCTION(TRIBITS_READ_CTEST_TAG_FILE TAG_FILE_IN BUILD_START_TIME_OUT CDASH_TRACK_OUT) | ||
FILE(READ "${TAG_FILE_IN}" TAG_FILE_STR) | ||
SPLIT("${TAG_FILE_STR}" "\n" TAG_FILE_STR_LIST) | ||
LIST(GET TAG_FILE_STR_LIST 0 BUILD_START_TIME) | ||
LIST(GET TAG_FILE_STR_LIST 1 CDASH_TRACK) | ||
SET(${BUILD_START_TIME_OUT} "${BUILD_START_TIME}" PARENT_SCOPE) | ||
SET(${CDASH_TRACK_OUT} "${CDASH_TRACK}" PARENT_SCOPE) | ||
ENDFUNCTION() |
Oops, something went wrong.