diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-18 19:47:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-08 17:24:49 (GMT) |
commit | 411f77d14f0cea36aeaf04b01d3fdf2ea7ec2173 (patch) | |
tree | 45198448818b927c305d62e2653281a8c60f56b6 /Tests/RunCMake/Syntax/EscapeCharsAllowed.cmake | |
parent | bc3856586388a610ef3d06d51c212a9ed25856c4 (diff) | |
download | CMake-411f77d14f0cea36aeaf04b01d3fdf2ea7ec2173.zip CMake-411f77d14f0cea36aeaf04b01d3fdf2ea7ec2173.tar.gz CMake-411f77d14f0cea36aeaf04b01d3fdf2ea7ec2173.tar.bz2 |
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
Diffstat (limited to 'Tests/RunCMake/Syntax/EscapeCharsAllowed.cmake')
-rw-r--r-- | Tests/RunCMake/Syntax/EscapeCharsAllowed.cmake | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/EscapeCharsAllowed.cmake b/Tests/RunCMake/Syntax/EscapeCharsAllowed.cmake new file mode 100644 index 0000000..e9c568d --- /dev/null +++ b/Tests/RunCMake/Syntax/EscapeCharsAllowed.cmake @@ -0,0 +1,26 @@ +cmake_policy(SET CMP0053 NEW) + +set("semicolon;in;name" semicolon) +set("dollar$in$name" dollar) +set("brace{in}name" brace) +set("bracket[in]name" bracket) +set("newline\nin\nname" newline) +set("octothorpe\#in\#name" octothorpe) +set("splat\@in\@name" splat) +set("caret\^in\^name" caret) +set("paren\(in\)name" paren) +set("dquote\"in\"name" dquote) + +message("-->${semicolon\;in\;name}<--") +message("-->${dollar\$in\$name}<--") +message("-->${brace\{in\}name}<--") +message("-->${bracket\[in\]name}<--") +message("-->${newline\nin\nname}<--") +message("-->${octothorpe\#in\#name}<--") +message("-->${splat\@in\@name}<--") +message("-->${caret\^in\^name}<--") +message("-->${paren\(in\)name}<--") +message("-->${dquote\"in\"name}<--") + +message(-->top-level;semicolon<--) +message(-->top-level\;escaped\;semicolon<--) |