Commit Graph

28 Commits

Author SHA1 Message Date
Kitware Robot d9fd2f5402 Revise C++ coding style using clang-format
Run the `Utilities/Scripts/clang-format.bash` script to update
all our C++ code to a new style defined by `.clang-format`.
Use `clang-format` version 3.8.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.
2016-05-16 16:05:19 -04:00
Brad King 09ab207c66 Tests: Add generator platform support
Propagate CMAKE_GENERATOR_PLATFORM through the test hierarchy so that all
tests can build with the selected generator platform, if any.
2014-09-10 11:21:50 -04:00
Ruslan Baratov 9e41eb68ec Fix wording of "the the" typos throughout text 2014-01-03 11:35:32 -05:00
Brad King 56ca8d4e63 Tests: Add generator toolset support
Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all
tests can build with the selected generator toolset, if any.
2013-02-07 11:09:56 -05: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
Kitware Robot 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code
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/ \+$//'
2012-08-13 14:18:39 -04:00
Brad King ed55b1b8d2 Remove unused code from CTest test suite
We remove from Tests/CTestTest*/CMakeLists.txt some historical cruft
that is no longer used by the test suite.
2009-12-02 09:16:29 -05:00
David Cole 680fae9c97 Increase ctest coverage. Introduce optionally on intentional compile errors and warnings to the SmallAndFast project. Turn them on for the FailedSubmit tests to cover analyzing LABELS-related errors and warnings. 2009-10-15 12:35:54 -04:00
David Cole f1e6726668 Add LABELS to the SmallAndFast test project to increase coverage of ctest code that is only invoked when labels are present. 2009-10-15 11:51:13 -04:00
David Cole c16ac1a31d Reduce duration of ctest_sleep arguments. Add SmallAndFast project. Replace kwsys with SmallAndFast to make CTestTest faster. (I will keep an eye on coverage results after this commit and make sure we still have equivalent ctest coverage.) 2009-10-08 12:17:03 -04:00
Ken Martin ce8810c4e7 ENH: preclean some warnings 2008-03-25 11:27:18 -04:00
Ken Martin 53549a6426 ENH: more coverage 2006-07-24 09:43:11 -04:00
Ken Martin 0189ce3424 ENH: increase coverage in a couple places 2006-07-21 10:26:05 -04:00
Andy Cedilnik 8d62804b3a COMP: Try to fix test by taking arg1 into acount 2005-08-02 10:07:30 -04:00
Andy Cedilnik ac3dfc716a ENH: Cleanup 2005-06-08 09:52:24 -04:00
Andy Cedilnik 6af66e8b20 ENH: Add capability to include files to DartTestfile.txt and add example of that 2005-06-07 09:57:05 -04:00
Andy Cedilnik bb20ea5060 ENH: Display version of ctest first 2004-10-19 13:25:30 -04:00
Andy Cedilnik f38a28f044 ERR: Fix problems on windows 2004-10-19 10:59:34 -04:00
Andy Cedilnik 9cbfe0e0b9 ENH: Propagate more things 2004-10-17 19:02:11 -04:00
Andy Cedilnik 9a92c429f2 ENH: Propagate MEMORYCHECK_COMMAND and COVERAGE_COMMAND to the CTest test 2004-10-17 18:50:18 -04:00
Andy Cedilnik 7e3c70082a BUG: Use kwsys from the source tree 2004-10-04 12:02:38 -04:00
Andy Cedilnik c75c2a8e99 ENH: Better sorting of results 2004-10-04 08:06:30 -04:00
Andy Cedilnik c20b14de9b BUG: Fix problem with spaces in the path 2004-10-03 07:27:53 -04:00
Andy Cedilnik 1b0ee0bd91 ENH: Use existing CTest and cmake 2004-10-01 13:10:33 -04:00
Andy Cedilnik 1b07b740d7 ENH: Let us recognize it on the dashboard 2004-10-01 11:13:04 -04:00
Andy Cedilnik 74b07fcf96 ENH: Do kwsys instead of CMake 2004-09-30 18:45:08 -04:00
Andy Cedilnik cd875fe781 ENH: Handle spaces in the path 2004-06-14 11:24:45 -04:00
Andy Cedilnik 0b2bdfa289 ENH: Add some ctest coverage 2004-05-10 18:06:11 -04:00