diff options
author | Ashley Whetter <ashley@awhetter.co.uk> | 2016-01-28 21:29:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-03 16:13:17 (GMT) |
commit | 0205f882ae252998686f65b843a758268b4c62bc (patch) | |
tree | 33c19806797e81f6ef65ee3fbe53b0c1188dae72 /Tests/RunCMake/list/RunCMakeTest.cmake | |
parent | a58abc69c23ef30fc2215eb72878af29f7e860fd (diff) | |
download | CMake-0205f882ae252998686f65b843a758268b4c62bc.zip CMake-0205f882ae252998686f65b843a758268b4c62bc.tar.gz CMake-0205f882ae252998686f65b843a758268b4c62bc.tar.bz2 |
list: Add FILTER subcommand (#3986)
Create a `list(FILTER)` command to filter lists by regular expression.
Diffstat (limited to 'Tests/RunCMake/list/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/list/RunCMakeTest.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/list/RunCMakeTest.cmake b/Tests/RunCMake/list/RunCMakeTest.cmake index 25d6a03..b002ab3 100644 --- a/Tests/RunCMake/list/RunCMakeTest.cmake +++ b/Tests/RunCMake/list/RunCMakeTest.cmake @@ -1,5 +1,6 @@ include(RunCMake) +run_cmake(EmptyFilterRegex) run_cmake(EmptyGet0) run_cmake(EmptyRemoveAt0) run_cmake(EmptyInsert-1) @@ -8,17 +9,25 @@ run_cmake(NoArguments) run_cmake(InvalidSubcommand) run_cmake(GET-CMP0007-WARN) +run_cmake(FILTER-REGEX-InvalidRegex) run_cmake(GET-InvalidIndex) run_cmake(INSERT-InvalidIndex) run_cmake(REMOVE_AT-InvalidIndex) +run_cmake(FILTER-REGEX-TooManyArguments) run_cmake(LENGTH-TooManyArguments) run_cmake(REMOVE_DUPLICATES-TooManyArguments) run_cmake(REVERSE-TooManyArguments) run_cmake(SORT-TooManyArguments) +run_cmake(FILTER-NotList) run_cmake(REMOVE_AT-NotList) run_cmake(REMOVE_DUPLICATES-NotList) run_cmake(REMOVE_ITEM-NotList) run_cmake(REVERSE-NotList) run_cmake(SORT-NotList) + +run_cmake(FILTER-REGEX-InvalidMode) +run_cmake(FILTER-REGEX-InvalidOperator) +run_cmake(FILTER-REGEX-Valid0) +run_cmake(FILTER-REGEX-Valid1) |