mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
EVIS: Add tests for syntax corner cases and CMP0053
Include tests for: - @ expansion during normal execution - various characters in variable names for comparison between the new and the old parser - corner cases in the parsers - correct messages when behavior is different
This commit is contained in:
@@ -127,12 +127,6 @@ string(LENGTH ${substringres} lengthres)
|
||||
|
||||
file(RELATIVE_PATH relpath "/usr/local/bin" "/usr/X11R6/bin/xnest")
|
||||
|
||||
# Escaping test
|
||||
set(var "\\ \" \ \t \n \r \# \( \) \0")
|
||||
message("Output: [${var}]")
|
||||
set(var \\ \" \ \t \n \r \# \( \) \0)
|
||||
message("Output: [${var}]")
|
||||
|
||||
# Make-style unquoted argument test
|
||||
set(var $(VAR1)$(VAR2)/$(VAR3))
|
||||
message("Output: [${var}]")
|
||||
@@ -141,13 +135,6 @@ if(NOT result)
|
||||
message(SEND_ERROR "Unquoted $(VAR) syntax is broken.")
|
||||
endif()
|
||||
|
||||
# Obscure environment variable name
|
||||
set("ENV{x+(y)}" "Obscure environment variable value")
|
||||
message("Output: [$ENV{x+(y)}]")
|
||||
if(NOT "$ENV{x+(y)}" STREQUAL "Obscure environment variable value")
|
||||
message(SEND_ERROR "Environment variable \"ENV{x+(y)}\" does not work.")
|
||||
endif()
|
||||
|
||||
# Make directories test
|
||||
file(MAKE_DIRECTORY
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/Includes"
|
||||
|
||||
Reference in New Issue
Block a user