diff options
author | Brad King <brad.king@kitware.com> | 2015-07-14 13:41:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-14 14:25:38 (GMT) |
commit | e5ca59b456d3a1a51d0b5387ec9d04a51beaa0be (patch) | |
tree | 6166bc6a150f2a319c946e6395fc3636267e7bb6 /Tests/RunCMake/list/RunCMakeTest.cmake | |
parent | 0699e0d3e4305fc4e615c36b831d0171c2f8c757 (diff) | |
download | CMake-e5ca59b456d3a1a51d0b5387ec9d04a51beaa0be.zip CMake-e5ca59b456d3a1a51d0b5387ec9d04a51beaa0be.tar.gz CMake-e5ca59b456d3a1a51d0b5387ec9d04a51beaa0be.tar.bz2 |
Tests: Move command failure cases into RunCMake infrastructure
Move failure cases from the CMake.{If,List,While,GetProperty} tests over
to the RunCMake.{if,list,while,get_property} tests to use the more
modern infrastructure. This also avoids using REGEX_ESCAPE_STRING to
try to regex-match full paths.
Diffstat (limited to 'Tests/RunCMake/list/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/list/RunCMakeTest.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/RunCMake/list/RunCMakeTest.cmake b/Tests/RunCMake/list/RunCMakeTest.cmake index 555051d..25d6a03 100644 --- a/Tests/RunCMake/list/RunCMakeTest.cmake +++ b/Tests/RunCMake/list/RunCMakeTest.cmake @@ -3,3 +3,22 @@ include(RunCMake) run_cmake(EmptyGet0) run_cmake(EmptyRemoveAt0) run_cmake(EmptyInsert-1) + +run_cmake(NoArguments) +run_cmake(InvalidSubcommand) +run_cmake(GET-CMP0007-WARN) + +run_cmake(GET-InvalidIndex) +run_cmake(INSERT-InvalidIndex) +run_cmake(REMOVE_AT-InvalidIndex) + +run_cmake(LENGTH-TooManyArguments) +run_cmake(REMOVE_DUPLICATES-TooManyArguments) +run_cmake(REVERSE-TooManyArguments) +run_cmake(SORT-TooManyArguments) + +run_cmake(REMOVE_AT-NotList) +run_cmake(REMOVE_DUPLICATES-NotList) +run_cmake(REMOVE_ITEM-NotList) +run_cmake(REVERSE-NotList) +run_cmake(SORT-NotList) |