summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/ListTest.cmake.in
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Move command failure cases into RunCMake infrastructureBrad King2015-07-141-53/+0
| | | | | | | 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.
* Fix test failures caused by regexp-sensitive characters in the build pathsModestas Vainius2013-06-031-9/+12
| | | | | | | | | | | | | | | | | | Checkout [1] as an example of the test failures. In that particular cases, the failures is caused by the plus sign in the path being pass unescaped (buildd-cmake_2.8.9-1~bpo60+1-armel-3Lvkef) to the regexp. In addition to failures in the log, the following new tests also fail in 2.8.11: 243 - CTestTestMemcheckUnknown (Failed) 244 - CTestTestMemcheckUnknownQuoted (Failed) 248 - CTestTestMemcheckDummyValgrindFailPre (Failed) 249 - CTestTestMemcheckDummyValgrindFailPost (Failed) 250 - CTestTestMemcheckDummyPurify (Failed) 251 - CTestTestMemcheckDummyBC (Failed) 253 - CMake.List (Failed) [1] https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=armel&ver=2.8.9-1~bpo60%2B1&stamp=1369243896
* list: add tests for CMP0007 behaviorRolf Eike Beer2012-11-021-0/+14
|
* Consolidate list() argument count testingPetr Kmoch2012-11-021-11/+19
| | | | Move test for list() argument count >= 2 to InitialPass().
* Add tests for list() invalid argumentsPetr Kmoch2012-11-021-0/+22
| | | | Add tests for error reporting when list() arguments are invalid.
* Add tests for list() argument countPetr Kmoch2012-11-021-0/+44
| | | | | Add test for error reporting when list() subcommands have wrong number of arguments.
* CMake.List test: explicitely test with lists containing only an empty stringRolf Eike Beer2012-08-151-0/+11
|
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-3/+3
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-45/+45
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* ENH: add REMOVE_DUPLICATES subcommand to LIST command (and test). Remove ↵Sebastien Barre2008-03-121-0/+4
| | | | duplicates from a list (keep the ordering)
* ENH: change LIST(CONTAINS ...) TO LIST(FIND ...), which returns the indexAlexander Neundorf2007-08-151-4/+6
| | | | | | | | and which is more useful, because then you can also access the item behind the one you were looking, useful for writing macros with optional keywords with parameters Alex
* ENH: add LIST(CONTAINS ...) patch from "Miguel A. Figueroa-Villanueva, ↵Alexander Neundorf2007-07-121-0/+14
| | | | | | | | miguelf (AT) ieee.org added tests for LIST(CONTAINS, SORT, REVERSE) Alex
* ENH: Fix INSERT to allow inserting to empty listAndy Cedilnik2006-05-151-2/+6
|
* ENH: Change REMOVE and REMOVE_ITEM to REMOVE_AT and REMOVE_ITEMAndy Cedilnik2006-05-151-7/+11
|
* ENH: Remove some errors, fix append to work on nonexisting listsAndy Cedilnik2006-05-151-2/+12
|
* ENH: Add initial implementation of the list commandAndy Cedilnik2006-02-101-0/+50