mirror of
https://github.com/reactos/CMake.git
synced 2024-12-19 01:27:11 +00:00
c9b75dcd73
Checkout [1] as an example of the test failures. In that particular cases, the failures is caused by the plus sign in the path being pass unescaped (buildd-cmake_2.8.9-1~bpo60+1-armel-3Lvkef) to the regexp. In addition to failures in the log, the following new tests also fail in 2.8.11: 243 - CTestTestMemcheckUnknown (Failed) 244 - CTestTestMemcheckUnknownQuoted (Failed) 248 - CTestTestMemcheckDummyValgrindFailPre (Failed) 249 - CTestTestMemcheckDummyValgrindFailPost (Failed) 250 - CTestTestMemcheckDummyPurify (Failed) 251 - CTestTestMemcheckDummyBC (Failed) 253 - CMake.List (Failed) [1] https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=armel&ver=2.8.9-1~bpo60%2B1&stamp=1369243896
58 lines
2.2 KiB
CMake
58 lines
2.2 KiB
CMake
set(NUMBERS "")
|
|
set(COUNT 0)
|
|
|
|
include("@CMAKE_CURRENT_SOURCE_DIR@/../RegexEscapeString.cmake")
|
|
REGEX_ESCAPE_STRING(CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR "@CMAKE_CURRENT_SOURCE_DIR@")
|
|
|
|
while(COUNT LESS 200)
|
|
set(NUMBERS "${NUMBERS} ${COUNT}")
|
|
set(COUNT "2${COUNT}")
|
|
|
|
set(NCOUNT 3)
|
|
while(NCOUNT LESS 31)
|
|
set(NUMBERS "${NUMBERS} ${NCOUNT}")
|
|
set(NCOUNT "${NCOUNT}0")
|
|
endwhile()
|
|
endwhile()
|
|
|
|
if(NOT NUMBERS STREQUAL " 0 3 30 20 3 30")
|
|
message(SEND_ERROR "while loop nesting error, result: '${NUMBERS}'")
|
|
endif()
|
|
|
|
|
|
set(Missing-Argument-RESULT 1)
|
|
set(Missing-Argument-STDERR ".*CMake Error at (${CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/)?While-Missing-Argument.cmake:1 \\(while\\):.*while called with incorrect number of arguments.*")
|
|
|
|
include("@CMAKE_CURRENT_SOURCE_DIR@/CheckCMakeTest.cmake")
|
|
check_cmake_test(While
|
|
Missing-Argument
|
|
)
|
|
|
|
set(Missing-Endwhile-RESULT 1)
|
|
set(Missing-Endwhile-STDERR ".*CMake Error in (${CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/)?While-Missing-Endwhile.cmake:.*A logical block opening on the line.*(${CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/)?While-Missing-Endwhile.cmake:1 \\(while\\).*is not closed\\..*")
|
|
|
|
check_cmake_test(While
|
|
Missing-Endwhile
|
|
)
|
|
|
|
set(Endwhile-Mismatch-RESULT 0)
|
|
set(Endwhile-Mismatch-STDERR ".*CMake Warning \\(dev\\) in (${CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/)?While-Endwhile-Mismatch.cmake:.*A logical block opening on the line.*(${CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/)?While-Endwhile-Mismatch.cmake:1 \\(while\\).*with mis-matching arguments\\..*")
|
|
|
|
check_cmake_test(While
|
|
Endwhile-Mismatch
|
|
)
|
|
|
|
set(Endwhile-Alone-RESULT 1)
|
|
set(Endwhile-Alone-STDERR ".*CMake Error at (${CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/)?While-Endwhile-Alone.cmake:1 \\(endwhile\\):.*An ENDWHILE command was found outside of a proper WHILE ENDWHILE.*structure\\.\n.*$")
|
|
|
|
check_cmake_test(While
|
|
Endwhile-Alone
|
|
)
|
|
|
|
set(Endwhile-Alone-Args-RESULT 1)
|
|
set(Endwhile-Alone-Args-STDERR ".*CMake Error at (${CTEST_ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/)?While-Endwhile-Alone-Args.cmake:1 \\(endwhile\\):.*An ENDWHILE command was found outside of a proper WHILE ENDWHILE.*structure\\. Or its arguments did not.*$")
|
|
|
|
check_cmake_test(While
|
|
Endwhile-Alone-Args
|
|
)
|