summaryrefslogtreecommitdiff
path: root/Tests/Tutorial
Commit message (Collapse)AuthorAgeFilesLines
* Tests/Tutorial: Fix when USE_MYMATH is OFFDaniele E. Domenichelli2014-10-316-12/+36
| | | | | | | | | | | | | | | Unit tests for the square root of "-25" currently fail when USE_MYMATH is disabled. The "mysqrt" method in the tutorials, returns "0" for a negative value, while "sqrt" returns "NaN", and therefore the output is not accepted by the test. This patch checks if the number is negative and eventually returns "0" before calling "sqrt" or "mysqrt" to fix this issue. Printing a NaN might cause issues with the string catched by the tests on some platform. Therefore assume that "0" is correct and "fix" the USE_MYMATH=OFF version by checking if the number is negative and eventually returning "0" before calling "sqrt" or "mysqrt".
* Tests: Don't read the LOCATION property from build targets.Stephen Kelly2013-11-192-6/+2
|
* Remove CMake-language block-end command argumentsKitware Robot2012-08-136-10/+10
| | | | | | | | | | | | | | | | | 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-132-7/+7
| | | | | | | | | | | | | | | | | 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-1316-34/+34
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Use new style header generation and get rid of OBJECT_DEPENDS in tutorialBill Hoffman2009-10-041-14/+5
|
* ENH: fix spelling mistakeKen Martin2009-06-233-3/+3
|
* ENH: use a common CPACK_BINARY_ prefix for the binary package generatorsAlexander Neundorf2008-04-171-0/+1
| | | | Alex
* ENH: preclean some warningsKen Martin2008-03-257-0/+7
|
* STYLE: change case to match bookKen Martin2008-01-172-6/+6
|
* ENH: switch to new install commands to match book textKen Martin2007-11-131-4/+4
|
* ENH: switch to new install commands to match book textKen Martin2007-11-1310-20/+25
|
* ENH: Add new Tutorial steps. Diff between Step5 and Step6 shows how to add a ↵David Cole2007-11-0819-0/+472
| | | | cpack driven installer to your project. Diff between Step6 and Step7 shows how to add ctest dashboard scripting capability.
* ENH: some fixesKen Martin2005-11-106-1/+8
|
* ENH: some fixesKen Martin2005-11-105-13/+13
|
* STYLE: fix spellingKen Martin2005-11-101-1/+1
|
* ENH: step 5Ken Martin2005-11-107-0/+216
|
* ENH: step 4Ken Martin2005-11-106-0/+152
|
* ENH: step 3Ken Martin2005-11-106-0/+138
|
* ENH: checkeed in step 1 and 2Ken Martin2005-11-099-0/+144