2012-08-06 17:29:20 +04:00
|
|
|
include(RunCMake)
|
|
|
|
|
2013-10-14 23:13:11 +04:00
|
|
|
run_cmake(BOM-UTF-8)
|
|
|
|
run_cmake(BOM-UTF-16-LE)
|
|
|
|
run_cmake(BOM-UTF-16-BE)
|
|
|
|
run_cmake(BOM-UTF-32-LE)
|
|
|
|
run_cmake(BOM-UTF-32-BE)
|
2014-02-18 23:47:56 +04:00
|
|
|
run_cmake(CMP0053-At-OLD)
|
|
|
|
run_cmake(CMP0053-At-NEW)
|
|
|
|
run_cmake(CMP0053-At-WARN)
|
|
|
|
run_cmake(CMP0053-At-WARN-newlines)
|
|
|
|
run_cmake(CMP0053-WARN)
|
|
|
|
run_cmake(CMP0053-NUL)
|
|
|
|
run_cmake(CMP0053-ParenInENV)
|
|
|
|
run_cmake(CMP0053-ParenInQuotedENV)
|
2013-02-17 05:10:21 +04:00
|
|
|
run_cmake(CommandSpaces)
|
|
|
|
run_cmake(CommandTabs)
|
|
|
|
run_cmake(CommandNewlines)
|
|
|
|
run_cmake(CommandComments)
|
|
|
|
run_cmake(CommandError0)
|
|
|
|
run_cmake(CommandError1)
|
2013-08-06 23:58:22 +04:00
|
|
|
run_cmake(CommandError2)
|
2013-10-31 03:12:59 +04:00
|
|
|
run_cmake(ForEachBracket1)
|
|
|
|
run_cmake(FunctionBracket1)
|
|
|
|
run_cmake(MacroBracket1)
|
2012-08-06 17:29:20 +04:00
|
|
|
run_cmake(String0)
|
|
|
|
run_cmake(String1)
|
2013-10-23 02:11:22 +04:00
|
|
|
run_cmake(StringBackslash)
|
2013-10-14 21:54:19 +04:00
|
|
|
run_cmake(StringCRLF)
|
2013-10-23 02:11:22 +04:00
|
|
|
run_cmake(StringContinuation1)
|
|
|
|
run_cmake(StringContinuation2)
|
2012-08-06 17:29:20 +04:00
|
|
|
run_cmake(StringNoSpace)
|
2013-10-14 23:24:06 +04:00
|
|
|
run_cmake(OneLetter)
|
2012-08-06 17:29:20 +04:00
|
|
|
run_cmake(Unquoted0)
|
|
|
|
run_cmake(Unquoted1)
|
2014-02-18 23:47:56 +04:00
|
|
|
run_cmake(Unquoted2)
|
2013-08-06 23:58:22 +04:00
|
|
|
run_cmake(Bracket0)
|
|
|
|
run_cmake(Bracket1)
|
|
|
|
run_cmake(Bracket2)
|
|
|
|
run_cmake(BracketBackslash)
|
|
|
|
run_cmake(BracketCRLF)
|
|
|
|
run_cmake(BracketComment0)
|
|
|
|
run_cmake(BracketComment1)
|
|
|
|
run_cmake(BracketComment2)
|
|
|
|
run_cmake(BracketComment3)
|
|
|
|
run_cmake(BracketComment4)
|
|
|
|
run_cmake(BracketComment5)
|
|
|
|
run_cmake(BracketNoSpace0)
|
|
|
|
run_cmake(BracketNoSpace1)
|
|
|
|
run_cmake(BracketNoSpace2)
|
|
|
|
run_cmake(BracketNoSpace3)
|
|
|
|
run_cmake(BracketNoSpace4)
|
|
|
|
run_cmake(BracketNoSpace5)
|
2013-10-29 18:21:50 +04:00
|
|
|
run_cmake(Escape1)
|
2014-02-18 23:47:56 +04:00
|
|
|
run_cmake(Escape2)
|
|
|
|
run_cmake(EscapeCharsAllowed)
|
|
|
|
include("${RunCMake_SOURCE_DIR}/EscapeCharsDisallowed.cmake")
|
2013-08-06 23:58:22 +04:00
|
|
|
run_cmake(ParenNoSpace0)
|
|
|
|
run_cmake(ParenNoSpace1)
|
|
|
|
run_cmake(ParenNoSpace2)
|
2014-02-18 23:47:56 +04:00
|
|
|
run_cmake(ParenInVarName0)
|
|
|
|
run_cmake(ParenInVarName1)
|
2012-08-06 17:29:20 +04:00
|
|
|
run_cmake(UnterminatedCall1)
|
2012-08-06 17:41:10 +04:00
|
|
|
run_cmake(UnterminatedCall2)
|
2012-08-06 17:29:20 +04:00
|
|
|
run_cmake(UnterminatedString)
|
2014-02-18 23:47:56 +04:00
|
|
|
run_cmake(UnterminatedBrace0)
|
|
|
|
run_cmake(UnterminatedBrace1)
|
|
|
|
run_cmake(UnterminatedBrace2)
|
2013-08-06 23:58:22 +04:00
|
|
|
run_cmake(UnterminatedBracket0)
|
|
|
|
run_cmake(UnterminatedBracket1)
|
|
|
|
run_cmake(UnterminatedBracketComment)
|
2014-02-08 02:53:31 +04:00
|
|
|
|
|
|
|
# Variable expansion tests
|
|
|
|
run_cmake(ExpandInAt)
|
|
|
|
run_cmake(EscapedAt)
|
|
|
|
run_cmake(EscapeQuotes)
|
|
|
|
run_cmake(AtWithVariable)
|
|
|
|
run_cmake(AtWithVariableEmptyExpansion)
|
|
|
|
run_cmake(AtWithVariableAtOnly)
|
|
|
|
run_cmake(AtWithVariableEmptyExpansionAtOnly)
|
|
|
|
run_cmake(AtWithVariableFile)
|
|
|
|
run_cmake(AtWithVariableAtOnlyFile)
|
|
|
|
run_cmake(ParenInENV)
|
|
|
|
run_cmake(ParenInQuotedENV)
|
2014-02-18 23:47:56 +04:00
|
|
|
|
|
|
|
# Variable name tests
|
|
|
|
run_cmake(NameWithSpaces)
|
|
|
|
run_cmake(NameWithTabs)
|
|
|
|
run_cmake(NameWithNewline)
|
|
|
|
run_cmake(NameWithCarriageReturn)
|
|
|
|
run_cmake(NameWithEscapedSpaces)
|
|
|
|
run_cmake(NameWithEscapedTabs)
|
|
|
|
run_cmake(NameWithSpacesQuoted)
|
|
|
|
run_cmake(NameWithTabsQuoted)
|
|
|
|
run_cmake(NameWithNewlineQuoted)
|
|
|
|
run_cmake(NameWithCarriageReturnQuoted)
|
|
|
|
run_cmake(NameWithEscapedSpacesQuoted)
|
|
|
|
run_cmake(NameWithEscapedTabsQuoted)
|
|
|
|
run_cmake(CMP0053-NameWithSpaces)
|
|
|
|
run_cmake(CMP0053-NameWithTabs)
|
|
|
|
run_cmake(CMP0053-NameWithNewline)
|
|
|
|
run_cmake(CMP0053-NameWithCarriageReturn)
|
|
|
|
run_cmake(CMP0053-NameWithEscapedSpaces)
|
|
|
|
run_cmake(CMP0053-NameWithEscapedTabs)
|
|
|
|
run_cmake(CMP0053-NameWithSpacesQuoted)
|
|
|
|
run_cmake(CMP0053-NameWithTabsQuoted)
|
|
|
|
run_cmake(CMP0053-NameWithNewlineQuoted)
|
|
|
|
run_cmake(CMP0053-NameWithCarriageReturnQuoted)
|
|
|
|
run_cmake(CMP0053-NameWithEscapedSpacesQuoted)
|
|
|
|
run_cmake(CMP0053-NameWithEscapedTabsQuoted)
|