Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Pfeifer 7a649111cd Use string(APPEND) in Tests
Automate with:

find Tests -type f -print0 | xargs -0 perl -i -0pe \
's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
2016-07-28 00:43:04 +02:00
Brad King ec1ba9b0ae get_filename_component: Add explicit unit tests
Add test RunCMake.get_filename_component to cover cases of the command.
Remove redundant coverage of these cases from the "complex" tests.
2013-04-16 09:35:29 -04:00
Kitware Robot 9db3116226 Remove CMake-language block-end command arguments
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
2012-08-13 14:19:16 -04:00
Kitware Robot 77543bde41 Convert CMake-language commands to lower case
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
2012-08-13 14:19:16 -04:00
Ken Martin eb773486f3 ENH: added testing for new features 2006-03-22 15:01:22 -05:00
Bill Hoffman 14ba8b5df9 ENH: add a test for EQUAL in if 2004-04-28 10:09:50 -04:00
Brad King 5203a92ef1 BUG: Can't double-quote foreach arguments. 2002-12-12 10:10:34 -05:00
Sebastien Barre 14bc6b5887 ENH: add tests for LESS, GREATER, STRLESS, STRGREATER (IF command) 2002-05-27 10:29:04 -04:00
Sebastien Barre 85b286f04e ENH: add a more stressing FOREACH test. 2002-03-27 13:54:31 -05:00
Sebastien Barre 7bda70b836 More IF coverage 2002-01-20 02:21:25 -05:00
Sebastien Barre 6f3570656c Increase Coverage. 2002-01-20 01:58:57 -05:00
Sebastien Barre 049a4820a2 More tests + coverage 2002-01-20 00:12:27 -05:00
Sebastien Barre c8d8e693cf Add documentation, comments. Move some 'Complex' sub-tests into 2 new 'Wrapping' and 'Testing' tests. 2002-01-19 21:24:55 -05:00
Sebastien Barre c26008ccf3 ENH: Increase test + coverage 2002-01-18 20:32:06 -05:00