Move get_date call closer to ctest_test for more predictable results.

This commit is contained in:
Zach Mullen 2010-03-17 11:10:39 -04:00
parent 0ba9d04117
commit b41647ca8f
1 changed files with 4 additions and 3 deletions

View File

@ -20,11 +20,12 @@ SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIP
INCLUDE("${CTEST_BINARY_DIRECTORY}/GetDate.cmake") INCLUDE("${CTEST_BINARY_DIRECTORY}/GetDate.cmake")
GET_DATE()
ADD_SECONDS(15)
CTEST_START(Experimental) CTEST_START(Experimental)
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res) CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res) CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
GET_DATE()
ADD_SECONDS(15)
CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res STOP_TIME "${new_hr}:${new_min}:${new_sec}") CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res STOP_TIME "${new_hr}:${new_min}:${new_sec}")
#CTEST_SUBMIT() #CTEST_SUBMIT()