summaryrefslogtreecommitdiffstats
path: root/Tests/StringFileTest
Commit message (Collapse)AuthorAgeFilesLines
* file: Add ENCODING option to file(STRINGS) command (#10519)Clinton Stimpson2014-08-062-0/+13
| | | | Support extraction of UTF-8 strings.
* EVIS: Add tests for syntax corner cases and CMP0053Ben Boeckel2014-05-081-13/+0
| | | | | | | | | | 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
* cmStringCommand: Add GENEX_STRIP subcommand.Stephen Kelly2014-03-311-0/+6
| | | | Strip out any generator expressions in the input string.
* string: Add MAKE_C_IDENTIFIER subcommandStephen Kelly2013-05-211-0/+6
|
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-35/+35
| | | | | | | | | | | | | | | | | 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-180/+180
| | | | | | | | | | | | | | | | | 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
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-133-5/+5
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* allow STRING(SUBSTRING) work with length -1 as "rest of the string"Rolf Eike Beer2010-12-081-0/+24
| | | | This fixes the first half of bug 10740.
* Add a test for FILE(READ ... HEX) together with a tiny binary file.Alexander Neundorf2009-09-062-0/+9
| | | | Alex
* BUG: file(COPY) test should not make read-only dirBrad King2009-05-131-2/+2
| | | | | | | CMake directory removal code cannot remove content from read-only directories (a separate bug which will be fixed). Therefore we should not create them in the StringFileTest. This tweaks the file(COPY) call to test not giving OWNER_WRITE to files rather than directories.
* ENH: Create file(COPY) command signatureBrad King2009-04-291-1/+10
| | | | | | | | The file(INSTALL) command has long been undocumented and used only to implement install() scripts. We now document it and provide a similar file(COPY) signature which is useful in general-purpose scripts. It provides the capabilities of install(DIRECTORY) and install(FILES) but operates immediately instead of contributing to install scripts.
* ENH: Create file(RENAME) command modeBrad King2009-04-151-1/+3
| | | | | This creates command "file(RENAME <oldname> <newname>)" to rename a file or directory within a single disk volume.
* ENH: New foreach(<var> IN ...) modeBrad King2009-03-171-0/+19
| | | | | | | | This creates a new mode of the foreach command which allows precise iteration even over empty elements. This mode may be safely extended with more keyword arguments in the future. The cost now is possibly breaking scripts that iterate over a list of items beginning with 'IN', but there is no other way to extend the syntax in a readable way.
* ENH: Allow most characters in ENV variable refsBrad King2008-12-171-0/+7
| | | | | | The $ENV{VAR} syntax permits access to environment variables. This teaches CMake to recognize most characters in the VAR name since some environments may have variables with non-C-identifier characters.
* ENH: preclean some warningsKen Martin2008-03-251-1/+2
|
* ENH: Add test for FILE(READ ...HEX).Brad King2008-01-021-0/+7
|
* ENH: added tests for the CMAKE_MATCH_(0..9) variables, which get set byAlexander Neundorf2007-08-291-0/+33
| | | | | | regex matches (STRING(REGEX), IF(MATCHES)) Alex
* BUG: Fixed @ONLY configuration to not try to parse ${} syntax at all. This ↵Brad King2007-06-062-0/+6
| | | | fixes the original fix to bug#4393 and adds a test.
* ENH: make the compiler id detection work, even if the output file name ofAlexander Neundorf2007-05-253-0/+64
| | | | | | | the compiler is completely unknown and even if it produces intel hex or motorola s-record files, with test Alex
* ENH: Add STRING STRIP commandAndy Cedilnik2007-04-271-0/+14
|
* ENH: Added FILE(STRINGS) command.Brad King2007-04-251-0/+12
|
* ENH: Remove old IF(FILE_IS_NEWER) syntax. It was never in a release anyway.Brad King2006-10-231-3/+0
|
* ENH: Patch from Alex to provide nicer syntax for FILE_IS_NEWER. Using name ↵Brad King2006-10-231-0/+3
| | | | IS_NEWER_THAN so old syntax will continue to work.
* BUG: Character + should be valid in a variable name.Brad King2006-09-251-1/+2
|
* ENH: Patch from Alex for adding IF(FILE_IS_NEWER). I also added a test.Brad King2006-08-251-0/+5
|
* ENH: Add relative tag and add test for relative tagAndy Cedilnik2006-03-211-1/+4
|
* ENH: Add String length and substringAndy Cedilnik2005-10-172-0/+9
|
* ENH: Add regular string replace (not regex), and relative path command. Also ↵Andy Cedilnik2005-10-172-0/+7
| | | | add tests
* BUG#1179: Fix for syntax in unquoted arguments.Brad King2004-09-201-0/+8
|
* ENH: Add RANGE support to FOREACHAndy Cedilnik2004-04-291-0/+19
|
* ENH: Added STRING(CONFIGURE ...) command.Brad King2004-03-042-0/+18
|
* ENH: Added CommandLineTest to add coverage for command line arguments to ↵Brad King2003-07-241-10/+0
| | | | cmake executables. This replaces the old DumpDocumentation test.
* ENH: More coverageAndy Cedilnik2003-07-231-0/+4
|
* ENH: Added more verbose output of what globbing results.Brad King2003-07-231-4/+7
|
* ENH: More coverageAndy Cedilnik2003-07-221-1/+4
|
* ENH: Increase coverageAndy Cedilnik2003-07-221-0/+3
|
* ENH: fix glob on windows and add glob recurse testAndy Cedilnik2003-07-211-0/+2
|
* ENH: add more coverage testsAndy Cedilnik2003-07-211-2/+21
|
* ENH: Add additional new line after the string to match the change in file ↵Andy Cedilnik2003-07-171-1/+1
| | | | command
* ENH: Add missing includeAndy Cedilnik2003-07-101-0/+1
|
* ENH: Add test for string and file commandsAndy Cedilnik2003-07-103-0/+91