mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
There's a handful of tests which float somewhere around the 55+/- 10 second execution time, so the previous 60 second timeout caused these to randomly fail. Inceasing the timeout seems a nicer approach vs splitting out these tests
56 lines
2.0 KiB
Plaintext
56 lines
2.0 KiB
Plaintext
SET (CTEST_SOURCE_DIRECTORY $ENV{CTEST_SOURCE_DIR})
|
|
SET (CTEST_BINARY_DIRECTORY $ENV{CTEST_BUILD_DIR})
|
|
#SET (CTEST_SOURCE_DIRECTORY /usr/src/QGIS)
|
|
#SET (CTEST_BINARY_DIRECTORY /usr/src/qgis-build)
|
|
|
|
SET (CTEST_CMAKE_COMMAND "cmake")
|
|
SET (CTEST_BUILD_COMMAND $ENV{CTEST_BUILD_COMMAND})
|
|
SET (CTEST_SITE "github.com")
|
|
SET (CTEST_BUILD_NAME "$ENV{CTEST_BUILD_NAME}")
|
|
SET (CTEST_BUILD_CONFIGURATION "Release")
|
|
SET (CTEST_TEST_TIMEOUT 90) # 90 seconds
|
|
IF(DEFINED ENV{CTEST_PARALLEL_LEVEL})
|
|
SET(PARALLEL_LEVEL $ENV{CTEST_PARALLEL_LEVEL})
|
|
ELSE(DEFINED ENV{CTEST_PARALLEL_LEVEL})
|
|
SET(PARALLEL_LEVEL 2)
|
|
ENDIF(DEFINED ENV{CTEST_PARALLEL_LEVEL})
|
|
|
|
SET (INITIAL_CACHE "
|
|
BUILDNAME:STRING=${CTEST_BUILD_NAME}
|
|
SITE:STRING=${CTEST_SITE}
|
|
CTEST_USE_LAUNCHERS:BOOL=ON
|
|
")
|
|
|
|
SET (CTEST_NOTES_FILES
|
|
${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}
|
|
${CTEST_BINARY_DIRECTORY}/CMakeCache.txt
|
|
)
|
|
|
|
IF(NOT WIN32)
|
|
STRING(ASCII 27 Esc)
|
|
SET(ColorReset "${Esc}[m")
|
|
SET(ColorBold "${Esc}[1m")
|
|
SET(Red "${Esc}[31m")
|
|
SET(Green "${Esc}[32m")
|
|
SET(Yellow "${Esc}[33m")
|
|
SET(Blue "${Esc}[34m")
|
|
SET(Magenta "${Esc}[35m")
|
|
SET(Cyan "${Esc}[36m")
|
|
SET(White "${Esc}[37m")
|
|
SET(BoldRed "${Esc}[1;31m")
|
|
SET(BoldGreen "${Esc}[1;32m")
|
|
SET(BoldYellow "${Esc}[1;33m")
|
|
SET(BoldBlue "${Esc}[1;34m")
|
|
SET(BoldMagenta "${Esc}[1;35m")
|
|
SET(BoldCyan "${Esc}[1;36m")
|
|
SET(BoldWhite "${Esc}[1;37m")
|
|
ENDIF(NOT WIN32)
|
|
|
|
# Create link to test results
|
|
# CDash on OTB requires the date to be set for the search to work (used to be UTC-6, seems to be UTC now)
|
|
SET(ENV{TZ} "UTC")
|
|
EXECUTE_PROCESS(COMMAND date +%Y-%m-%d OUTPUT_VARIABLE CDASH_DATE)
|
|
SET(RESULT_LINK "http://cdash.orfeo-toolbox.org/index.php?project=QGIS&filtercount=1&showfilters=1&field1=buildname/string&compare1=63&value1=$ENV{CTEST_BUILD_NAME}&date=${CDASH_DATE}")
|
|
EXECUTE_PROCESS(COMMAND curl --data-urlencode "url=${RESULT_LINK}" -s http://tinyurl.com/api-create.php
|
|
OUTPUT_VARIABLE SHORTURL)
|