summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'RemoveNonworkingKDE4Test'David Cole2012-08-202-104/+0
|\ | | | | | | | | 11f23fe remove non-working KDE4 test
| * remove non-working KDE4 testAlex Neundorf2012-08-162-104/+0
| | | | | | | | Alex
* | Merge topic 'hg-modules'David Cole2012-08-203-3/+74
|\ \ | | | | | | | | | | | | | | | 91053cd ExternalProject: Add Mercurial (hg) repository support ea5bfb1 Add FindHg module to find Mercurial
| * | ExternalProject: Add Mercurial (hg) repository supportBrad King2012-08-162-2/+73
| | | | | | | | | | | | | | | | | | | | | Add options HG_REPOSITORY and HG_TAG to specify an external project hosted in a Mercurial repository. Teach ExternalProject to clone the repository and update from it. Extend the ExternalProject test to try a Mercurial repository when hg is available.
| * | Add FindHg module to find MercurialBrad King2012-08-141-1/+1
| |/ | | | | | | Also teach the CMakeOnly.AllFindModules to verify Hg version detection.
* | Merge topic 'list-command-argument-fixes'David Cole2012-08-201-0/+11
|\ \ | | | | | | | | | | | | | | | 08c71ac CMake.List test: explicitely test with lists containing only an empty string 52d9c38 list command: error on too many arguments
| * | CMake.List test: explicitely test with lists containing only an empty stringRolf Eike Beer2012-08-151-0/+11
| |/
* | Merge topic 'more-endif-closing-style-cleanups'David Cole2012-08-203-18/+8
|\ \ | | | | | | | | | | | | 84b49be Remove CMake multiline block-end command arguments
| * | Remove CMake multiline block-end command argumentsMarcin Wojdyr2012-08-153-18/+8
| |/ | | | | | | removing arguments omitted in 9db3116226cb99fcf54e936c833953abcde9b729
* | Merge topic 'xcode-asm'David Cole2012-08-201-1/+2
|\ \ | | | | | | | | | | | | | | | 97140d3 Tests/Assembler: Do not use assembler in universal binaries f3477ed Xcode: Set ASM source language in project file (#13472)
| * | Tests/Assembler: Do not use assembler in universal binariesBrad King2012-08-151-1/+2
| | | | | | | | | | | | | | | If CMAKE_OSX_ARCHITECTURES is set then the computed assembler .s source file may not work for all architectures. Skip it in that case.
| * | Xcode: Set ASM source language in project file (#13472)Brad King2012-08-151-1/+1
| | | | | | | | | | | | | | | | | | Also teach the Assembler test to build under Xcode. Suggested-by: Tobias Pape <tobiaspape@gmail.com>
* | | Merge topic 'clang-asm'David Cole2012-08-201-1/+1
|\ \ \ | |/ / | | | | | | | | | 7e8471c Recognize Clang ASM support (#13473)
| * | Recognize Clang ASM support (#13473)Brad King2012-08-151-1/+1
| |/ | | | | | | | | | | | | | | | | Since commit 571dc748 (Recognize Clang C and C++ compilers, 2010-05-17) we recognize Clang C and C++ support. Add Compiler/Clang-ASM.cmake to enable use of Clang for ASM too. Also teach Assembler test to try Clang as an assembler. Suggested-by: Tobias Pape <tobiaspape@gmail.com>
* | Merge topic 'generator-expression-conditions'David Cole2012-08-2018-0/+161
|\ \ | | | | | | | | | | | | | | | 9d9f616 Add $<CONFIG:...> boolean query generator expression ebf05ab Add boolean generator expressions
| * | Add $<CONFIG:...> boolean query generator expressionBrad King2012-08-156-0/+17
| | | | | | | | | | | | | | | | | | | | | This expression evaluates to '1' or '0' to indicate whether the build configuration for which the expression is evaluated matches tha named configuration. In combination with the "$<0:...>" and "$<1:...>" expressions this allows per-configuration content to be generated.
| * | Add boolean generator expressionsBrad King2012-08-1515-0/+144
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Add generator expressions that combine and use boolean test results: $<0:...> = empty string (ignores "...") $<1:...> = content of "..." $<AND:?[,?]...> = '1' if all '?' are '1', else '0' $<OR:?[,?]...> = '0' if all '?' are '0', else '1' $<NOT:?> = '0' if '?' is '1', else '1' These will be useful to evaluate (future) boolean query expressions and condition content on the results. Include tests and documentation.
* | CheckTypeSize: add a test for size of struct membersRolf Eike Beer2012-08-144-2/+68
|/
* Fix WarnUnusedUnusedViaUnset test pass/fail regexBrad King2012-08-141-2/+2
| | | | | | | After conversion of Modules .cmake files to lower case the FAIL_REGULAR_EXPRESSION for this test matched warnings in modules other than the test line itself. Make the pass and fail regular expressions specific to the file containing the lines they are testing.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-13139-1131/+1131
| | | | | | | | | | | | | | | | | 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-13201-4632/+4632
| | | | | | | | | | | | | | | | | 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-13111-497/+497
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Merge topic 'xcode-object-dir'David Cole2012-08-132-0/+2
|\ | | | | | | | | b237dbd Xcode: Fix object library references in multi-project trees (#13452)
| * Xcode: Fix object library references in multi-project trees (#13452)Brad King2012-08-032-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In cmGlobalXCodeGenerator::Generate we generate a .xcodeproj for each directory in the tree containing a project() command. First we iteratively use SetGenerationRoot to add "ALL_BUILD" and other targets to each project. This leaves "CurrentProject" set to the last project when we invoke cmGlobalGenerator::Generate, which is not the same as the top-level project if any subdirectories invoke the project() command. When cmGlobalGenerator::Generate reaches CreateGeneratorTargets it constructs cmGeneratorTarget and calls ComputeTargetObjects exactly once per target. In this context the value of CurrentProject is undefined so we cannot pass it to GetObjectsNormalDirectory. Use "$(PROJECT_NAME)" instead so it will adapt automatically to each project. Also teach Tests/ObjectLibrary to cover this case.
* | Merge topic 'mixed-lib-to-lib64'David Cole2012-08-1313-0/+63
|\ \ | |/ |/| | | | | | | | | | | | | af80da3 remove lib64 Unix paths if the respective lib path is also given 733726e find_library: Fix mixed lib->lib64 (non-)conversion cases (#13419) 54add62 find_library: Simplify lib->lib<arch> expansion 6ca2f82 find_library: Refactor lib->lib64 conversion 1fe4b82 find_library: Add test covering lib->lib64 cases
| * find_library: Fix mixed lib->lib64 (non-)conversion cases (#13419)Brad King2012-07-201-2/+2
| | | | | | | | | | | | | | | | When a search path contains multiple "lib/" instances we previously converted all or none. This fails for cases where only some of the multiple instances must be converted. Teach AddArchitecturePaths to generate all combinations that exist. Uncomment these cases in the CMakeOnly.find_library test now that they work.
| * find_library: Add test covering lib->lib64 casesBrad King2012-07-2013-0/+63
| | | | | | | | | | | | | | Add a "CMakeOnly.find_library" test covering various cases involving lib->lib64 (non-)conversion. Comment out cases involving mixed path components "lib" and "lib64", such as lib/A/lib64 and lib64/A/lib, as these are known to be broken currently.
* | Merge topic 'ninja-fix-macosx'David Cole2012-07-241-32/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1fc8df9 Add missing this->. 7a3ecf5 Fix memory leak in Makefile generator. 9f7dc83 Ninja: also bootstrap ninja files 5d365b2 Ninja: enable ninja support everywhere d569f3e Ninja: void function can't return a value 52160bf Ninja: enable ninja on Mac so all Mac CDash-builds are tested, cleanup later 56aeac6 Ninja: fixes for bcc 7a6bc9e Ninja: remove 'this' from member initializer list 44ba4cf Ninja: remove warnings 7751966 Ninja: remove 'friend' in ninja code c3988ee Re-factor OS X content generator start up. f8e0a51 Re-factor framework directory computation. f36c7b0 Re-factor Mac OS X content directory computation. 5d885db Re-factor bundle content copying rules generation. 3b2a01e Ninja: Use same echo message as makefiles. 7bb56c5 Re-factor CFBundle generation. ...
| * | Enable BundleTest with CLang too.Nicolas Despres2012-07-171-32/+34
| |/
* | Merge topic 'DoNotInvokeCPackAtCMakeTime-forCMakeTests'David Cole2012-07-241-23/+13
|\ \ | | | | | | | | | | | | | | | | | | b47cffa CPack: Use bin subdir when looking for dpkg and rpmbuild a8c659c Find dpkg and rpmbuild in usual Fink and MacPort paths 848f220 Do not run cpack at CMake time it is not available.
| * | Do not run cpack at CMake time it is not available.Eric NOULARD2012-06-281-23/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpack was used to get the list of available i.e. ACTIVE CPack generators in the CMake tests suite. This was done in order to get dynamically available CPack generators like DEB or RPM that may or may not be available on some platform like MacOSX depending on the fact that some command are installed or not. We may do that but not during initial configuration. The current patch fixes the problem and we may do better in the future like configuring CPack tests later.
* | | Merge topic 'fix-tests-for-gcc-4.7'David Cole2012-07-242-1/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | b21cb9f Tests/ObjC++: Use standard <iostream> header 7fa8e53 Tests/X11: Add missing include <stdlib.h> for 'rand'
| * | | Tests/ObjC++: Use standard <iostream> headerBrad King2012-07-181-1/+2
| | | | | | | | | | | | | | | | Drop use of non-standard <iostream.h> header.
| * | | Tests/X11: Add missing include <stdlib.h> for 'rand'Brad King2012-07-181-0/+1
| | |/ | |/|
* | | Merge topic 'ninja-mac-BuildDepends'David Cole2012-07-241-2/+3
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 207ec5c Ninja: fix mis-matching endif() argument 392a654 Ninja: on Mac no multiple -arch because of -M 801f23f Ninja: dep files and multiple -arch flags not possible on mac
| * | Ninja: fix mis-matching endif() argumentPeter Kümmel2012-07-181-1/+1
| | |
| * | Ninja: on Mac no multiple -arch because of -MPeter Kümmel2012-07-101-9/+3
| | |
| * | Ninja: dep files and multiple -arch flags not possible on macPeter Kuemmel2012-06-191-1/+8
| | |
* | | Merge topic 'include-command-empty-filename'David Cole2012-07-127-0/+20
|\ \ \ | | | | | | | | | | | | | | | | 2e99949 include: Ignore empty string as file name (#13388)
| * | | include: Ignore empty string as file name (#13388)Brad King2012-07-107-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously CMake silently accepted the empty string and added a bogus dependency on the current directory. Instead warn about the empty file name and ignore it. We cannot make this an error because there may be existing projects that accidentally depend on the old behavior. Add a RunCMake.include test to cover this case.
* | | | Merge topic 'fix-CustomCommand-main'David Cole2012-07-121-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | d54618f Tests/CustomCommand: Do not use 'main' in a library
| * | | | Tests/CustomCommand: Do not use 'main' in a libraryBrad King2012-07-091-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise when linking 'CustomCommand' some linkers report ld: 0711-224 WARNING: Duplicate symbol: .main Suggested-by: Daniel R. Gomez <gomez@teragram.com>
* | | | Merge topic 'fix-CTestUpdateSVN-svn1.7'David Cole2012-07-121-1/+0
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | c785c6b CTestUpdateSVN: Do not create repo directory first (#13349)
| * | | CTestUpdateSVN: Do not create repo directory first (#13349)Brad King2012-07-091-1/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | If the directory already exists some svnadmin versions report svnadmin: E200011: Repository creation failed svnadmin: E200011: Could not create top-level directory svnadmin: E200011: '.../CTest UpdateSVN/repo' exists and is non-empty
* | | Merge topic 'ninja-fixes'David Cole2012-07-091-0/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6b31d39 Ninja: don't shadow 'outputs' variable 9b311fb Ninja: add soname test case e3b1be2 Ninja: Clean all symlink created for libraries. 990f77e Ninja: remove int/size_t warning
| * | | Ninja: add soname test casePeter Kuemmel2012-07-091-0/+13
| |/ /
* | | Merge topic 'fix-pie-clang-trunk'David Cole2012-07-091-2/+2
|\ \ \ | | | | | | | | | | | | | | | | 9235603 Fix PositionIndependentTargets test with clang trunk.
| * | | Fix PositionIndependentTargets test with clang trunk.Stephen Kelly2012-06-271-2/+2
| |/ / | | | | | | | | | | | | | | | The __PIE__ define might be set instead of __PIC__ if fPIE is used. http://llvm.org/bugs/show_bug.cgi?id=13221
* | | CTest: Add test to verify -D variable definitions workDavid Cole2012-06-252-0/+29
|/ /
* | Merge topic 'module-no-soname'David Cole2012-06-217-0/+10
|\ \ | | | | | | | | | | | | 56148fd Do not crash on SHARED library without language (#13324)