Merge topic 'remove_submit_large_output'
929b1c6
Remove the ctest submit larget output test.
This commit is contained in:
commit
9cf9d2794c
|
@ -1520,36 +1520,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
ENDIF ("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
|
ENDIF ("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
|
||||||
ENDIF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS AND CMAKE_TESTS_CDASH_SERVER)
|
ENDIF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS AND CMAKE_TESTS_CDASH_SERVER)
|
||||||
|
|
||||||
IF(NOT DEFINED CTEST_RUN_CTestSubmitLargeOutput)
|
|
||||||
SET(CTEST_RUN_CTestSubmitLargeOutput OFF)
|
|
||||||
|
|
||||||
IF (CMAKE_TESTS_CDASH_SERVER AND "${server}" STREQUAL "localhost")
|
|
||||||
SET(CTEST_RUN_CTestSubmitLargeOutput ON)
|
|
||||||
ENDIF (CMAKE_TESTS_CDASH_SERVER AND "${server}" STREQUAL "localhost")
|
|
||||||
ENDIF(NOT DEFINED CTEST_RUN_CTestSubmitLargeOutput)
|
|
||||||
|
|
||||||
IF(CTEST_RUN_CTestSubmitLargeOutput)
|
|
||||||
CONFIGURE_FILE(
|
|
||||||
"${CMake_SOURCE_DIR}/Tests/CTestSubmitLargeOutput/test.cmake.in"
|
|
||||||
"${CMake_BINARY_DIR}/Tests/CTestSubmitLargeOutput/test.cmake"
|
|
||||||
@ONLY ESCAPE_QUOTES
|
|
||||||
)
|
|
||||||
ADD_TEST(CTestSubmitLargeOutput ${CMAKE_CTEST_COMMAND}
|
|
||||||
-S "${CMake_BINARY_DIR}/Tests/CTestSubmitLargeOutput/test.cmake" -V
|
|
||||||
--output-log "${CMake_BINARY_DIR}/Tests/CTestSubmitLargeOutput/testOutput.log"
|
|
||||||
)
|
|
||||||
|
|
||||||
# This test only passes if it fails to submit properly...
|
|
||||||
#
|
|
||||||
SET_TESTS_PROPERTIES(CTestSubmitLargeOutput PROPERTIES
|
|
||||||
PASS_REGULAR_EXPRESSION "Errors occurred during submission")
|
|
||||||
|
|
||||||
# Give this test plenty of time to run on slower machines:
|
|
||||||
#
|
|
||||||
SET_TESTS_PROPERTIES(CTestSubmitLargeOutput PROPERTIES
|
|
||||||
TIMEOUT ${CMAKE_LONG_TEST_TIMEOUT})
|
|
||||||
ENDIF(CTEST_RUN_CTestSubmitLargeOutput)
|
|
||||||
|
|
||||||
IF (CMAKE_RUN_LONG_TESTS AND TEST_KDE4_STABLE_BRANCH)
|
IF (CMAKE_RUN_LONG_TESTS AND TEST_KDE4_STABLE_BRANCH)
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
IF(NOT QT4_FOUND)
|
IF(NOT QT4_FOUND)
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 2.8)
|
|
||||||
project(SubmitLargeOutput NONE)
|
|
||||||
|
|
||||||
include(CTest)
|
|
||||||
|
|
||||||
add_test(GenerateRandomOutput ${CMAKE_COMMAND}
|
|
||||||
-P ${CMAKE_CURRENT_SOURCE_DIR}/GenerateRandomOutput.cmake
|
|
||||||
)
|
|
|
@ -1,6 +0,0 @@
|
||||||
set(CTEST_PROJECT_NAME "SubmitLargeOutput")
|
|
||||||
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
|
|
||||||
set(CTEST_DROP_METHOD "http")
|
|
||||||
set(CTEST_DROP_SITE "www.cdash.org")
|
|
||||||
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=PublicDashboard")
|
|
||||||
set(CTEST_DROP_SITE_CDASH TRUE)
|
|
|
@ -1,31 +0,0 @@
|
||||||
#
|
|
||||||
# This script generates random lines of output.
|
|
||||||
#
|
|
||||||
# By default, it generates 100M of output (a million lines of 100 bytes each),
|
|
||||||
# but you can override that by passing in -D line_count and/or -D line_size...
|
|
||||||
#
|
|
||||||
|
|
||||||
# Default values:
|
|
||||||
#
|
|
||||||
if(NOT DEFINED line_count)
|
|
||||||
set(line_count 1000000)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT DEFINED line_size)
|
|
||||||
set(line_size 100)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT DEFINED random_seed)
|
|
||||||
set(random_seed 1987)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Use RANDOM_SEED once before the loop:
|
|
||||||
#
|
|
||||||
string(RANDOM LENGTH ${line_size} RANDOM_SEED ${random_seed} s)
|
|
||||||
|
|
||||||
# Emit line_count lines of random output:
|
|
||||||
#
|
|
||||||
foreach(i RANGE 1 ${line_count})
|
|
||||||
string(RANDOM LENGTH ${line_size} s)
|
|
||||||
message(${s})
|
|
||||||
endforeach()
|
|
|
@ -1,27 +0,0 @@
|
||||||
SET(CTEST_SITE "@SITE@")
|
|
||||||
SET(CTEST_BUILD_NAME "LargeOutput-@BUILDNAME@")
|
|
||||||
SET(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
|
|
||||||
SET(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
|
||||||
|
|
||||||
SET(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestSubmitLargeOutput")
|
|
||||||
SET(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestSubmitLargeOutput/build")
|
|
||||||
SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
|
||||||
|
|
||||||
CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})
|
|
||||||
|
|
||||||
CTEST_START(Experimental)
|
|
||||||
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
|
|
||||||
CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}")
|
|
||||||
CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
|
|
||||||
|
|
||||||
SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 1000000000)
|
|
||||||
SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1000000000)
|
|
||||||
SET(CTEST_TEST_TIMEOUT @CMAKE_LONG_TEST_TIMEOUT@)
|
|
||||||
|
|
||||||
CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
|
|
||||||
|
|
||||||
set(CTEST_DROP_METHOD "@protocol@")
|
|
||||||
set(CTEST_DROP_SITE "@server@")
|
|
||||||
set(CTEST_DROP_LOCATION "@path@/submit.php?project=PublicDashboard")
|
|
||||||
|
|
||||||
CTEST_SUBMIT(RETURN_VALUE res)
|
|
Loading…
Reference in New Issue