summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Ninja: Add the Ninja generatorPeter Collingbourne2012-02-022-2/+18
|
* Provide dependency file flags to generatorPeter Collingbourne2012-02-021-0/+2
| | | | | | | Causes compiler modules (currently only GNU) to set a CMAKE_DEPFILE_FLAGS_${lang} variable, which communicates to the generator the flags required to cause the compiler to create dependency files.
* Merge topic 'check_cxx_compiler_flag_cmakeonly'David Cole2012-02-013-18/+2
|\ | | | | | | | | 8de3b3d CheckCXXCompilerFlag test: make it a CMakeOnly test
| * CheckCXXCompilerFlag test: make it a CMakeOnly testRolf Eike Beer2012-01-303-18/+2
| |
* | Add test covering imported target scope rulesBrad King2012-01-255-0/+36
|/
* Merge topic 'uninitialized-var-in-if'David Cole2012-01-252-0/+10
|\ | | | | | | | | 54fd9e3 fix uninitialized var in if(NOT foo bar STREQUAL "foo bar")
| * fix uninitialized var in if(NOT foo bar STREQUAL "foo bar")Rolf Eike Beer2012-01-222-0/+10
| | | | | | | | Also adds test to verify this.
* | Merge topic 'GetPrerequisites-rpath-OSX'David Cole2012-01-252-0/+82
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 98d2031 Fix BundleUtilities test failure with space in build path. 36d6641 Fix new BundleUtilities test failure on Mac 10.4.x 0d96dec GetPrerequisites: Add test for @rpath support. 880139a GetPrerequisites: Add support for @rpath on Mac OS X. 9a6b102 GetPrerequisites: Add support for @rpath on Mac OS X.
| * | Fix BundleUtilities test failure with space in build path.Clinton Stimpson2012-01-211-2/+2
| | |
| * | Fix new BundleUtilities test failure on Mac 10.4.xClinton Stimpson2012-01-201-1/+1
| | |
| * | GetPrerequisites: Add test for @rpath support.Clinton Stimpson2012-01-202-0/+82
| | |
* | | Merge topic 'loadcommand-test-cleanup'David Cole2012-01-253-15/+0
|\ \ \ | | | | | | | | | | | | | | | | 1531c11 LoadCommand test: cleanup
| * | | LoadCommand test: cleanupRolf Eike Beer2012-01-203-15/+0
| | |/ | |/| | | | | | | | | | | | | This removes some useless checking. The results of these things are never properly checked so they should not count as testcases. At the end they only needlessly clutter the output.
* | | Merge topic 'test_find_modules'David Cole2012-01-252-0/+41
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 8d83043 AllFindModules test: also check Qt3 modules if Qt4 is not found e797e7f AllFindModules test: keep complete output ec631d5 add a test that loops through most Find* modules
| * | | AllFindModules test: also check Qt3 modules if Qt4 is not foundRolf Eike Beer2012-01-181-2/+13
| | | |
| * | | AllFindModules test: keep complete outputRolf Eike Beer2012-01-171-0/+3
| | | |
| * | | add a test that loops through most Find* modulesRolf Eike Beer2012-01-162-0/+27
| | | | | | | | | | | | | | | | | | | | This allows easy spotting of modules that output crappy messages and the like.
* | | | GenerateExportHeader test: add newlines before end of fileRolf Eike Beer2012-01-176-6/+6
| |/ / |/| |
* | | Merge topic 'check_symbol_exists'David Cole2012-01-174-0/+123
|\ \ \ | |/ / | | | | | | | | | | | | | | | 6856b4d Merge topic 'link-shared-depend-cycle-issue-12647' into check_symbol_exists 8e1f376 add a test for Check{,CXX}SymbolExists 813eca6 CheckSymbolExists: force the compiler to keep the referenced symbol
| * | Merge topic 'link-shared-depend-cycle-issue-12647' into check_symbol_existsRolf Eike Beer2012-01-164-0/+32
| |\ \
| * | | add a test for Check{,CXX}SymbolExistsRolf Eike Beer2012-01-164-0/+123
| | | | | | | | | | | | | | | | | | | | Now that we think that CheckSymbolExists really works for all cases it is time to prove that. If this code fails too many other things will break.
* | | | Merge topic 'link-shared-depend-cycle-issue-12647'David Cole2012-01-174-0/+32
|\ \ \ \ | | |/ / | |/| | | | | | | | | | 8e756d2 Tolerate cycles in shared library link interfaces (#12647)
| * | | Tolerate cycles in shared library link interfaces (#12647)Brad King2012-01-134-0/+32
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 183b9509 (Follow all dependencies of shared library private dependencies, 2011-12-14) we honor LINK_INTERFACE_LIBRARIES when following dependent shared libraries. The link interface properties may form a cycle if set incorrectly by a project. Furthermore, the property LINK_DEPENDENT_LIBRARIES may form a cycle if set incorrectly by hand (though CMake should never generate one). In either case, do not follow the cycle forever when following the dependent shared library closure. We only need to add dependency edges to the constraint graph once. Add "LinkInterfaceLoop" test to cover this case.
* | | Merge topic 'add_CMakeOnly_test-infrastructure'David Cole2012-01-173-0/+22
|\ \ \ | |/ / | | | | | | | | | 9a20abf Add infrastructure for CMake-only tests
| * | Add infrastructure for CMake-only testsBrad King2012-01-133-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Some tests only need to run CMake to configure and generate a build tree, but not actually perform the build. Add a new "Tests/CMakeOnly" directory dedicated for this purpose. Add a helper script to drive each test by creating a fresh build tree and running CMake on it. Add macro "add_CMakeOnly_test" to help create tests using the script.
* | | Merge topic 'compiler-version'David Cole2012-01-171-0/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0df1942 Detect SGI MIPSpro compiler version with its id a5e892c Document compiler version macro formats used for detection d7c6f41 Detect HP compiler version with its id 3dd9fa9 Detect SunPro compiler version with its id c198730 Detect Watcom compiler version with its id 5899b98 Detect Clang compiler version with its id b8cfa65 Detect PGI compiler version with its id 6dae666 Detect IBM XL compiler version with its id 4080d55 Detect Borland compiler version with its id 2cc205a Detect Intel compiler version with its id (#11937) a6d83cc Detect MSVC compiler version with its id a662855 Detect GNU compiler version with its id (#6251) fa7141f Add framework to detect compiler version with its id (#12408)
| * | Add framework to detect compiler version with its id (#12408)Brad King2011-12-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach CMakePlatformId.h to construct an "INFO:compiler_version[]" string literal from macros COMPILER_VERSION_(MAJOR|MINOR|PATCH|TWEAK) to be defined in CMake(C|CXX)CompilerId.(c|cpp) for each compiler. Provide conversion macros DEC() and HEX() to decode decimal or hex digits from integer values. Parse the version out of the compiler id binary along with the other INFO values already present. Store the result in variable CMAKE_<LANG>_COMPILER_VERSION in the format "major[.minor[.patch[.tweak]]]". Save the value persistently in CMake(C|CXX)Compiler.cmake in the build tree. Document the variable for internal use since we do not set it everywhere yet. Report the compiler version on the compiler id result line e.g. The C compiler identification is GNU 4.5.2 Report CMAKE_(C|CXX)_COMPILER_(ID|VERSION) in SystemInformation test.
* | | Merge topic 'test-Complex-cleanup'David Cole2012-01-0960-3022/+195
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 53d31c2 complex: Remove unused option to test CMakeLib c1789e6 complex: Remove test dependence on cmSystemTools 569cee1 complex: Move cmSystemTools::UpperCase test to CMakeLibTests 49d6dd6 complex: Simplify test for single-character exe name 76ac88b complex: Move GeneratedFileStream test to CMakeLibTests 137e597 complex: Remove dynamic loader tests 6337920 complex: Sync Tests/ComplexOneConfig with Tests/Complex 6a75821 complex: Remove ancient unused ComplexRelativePaths test
| * | | complex: Remove unused option to test CMakeLibBrad King2011-12-239-85/+0
| | | | | | | | | | | | | | | | | | | | Now that the Complex tests do not depend on cmSystemTools or other classes from CMakeLib the COMPLEX_TEST_CMAKELIB option is useless.
| * | | complex: Remove test dependence on cmSystemToolsBrad King2011-12-232-24/+24
| | | | | | | | | | | | | | | | Use C standard 'remove' and POSIX standard 'stat'.
| * | | complex: Move cmSystemTools::UpperCase test to CMakeLibTestsBrad King2011-12-234-28/+34
| | | | | | | | | | | | | | | | | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib.
| * | | complex: Simplify test for single-character exe nameBrad King2011-12-236-74/+26
| | | | | | | | | | | | | | | | | | | | Run the test executable as a custom command instead of depending on cmSystemTools::RunSingleCommand.
| * | | complex: Move GeneratedFileStream test to CMakeLibTestsBrad King2011-12-236-176/+103
| | | | | | | | | | | | | | | | | | | | | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib. Fix incorrect library link order in the Complex tests exposed by this change.
| * | | complex: Remove dynamic loader testsBrad King2011-12-238-160/+2
| | | | | | | | | | | | | | | | | | | | Everything covered by these tests is now covered by the KWSys DynamicLoader test and the Plugin test.
| * | | complex: Sync Tests/ComplexOneConfig with Tests/ComplexBrad King2011-12-232-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | The two test sources must remain identical. Apply to ComplexOneConfig the change that commit f578381e (Fix vs2010 project generation error when HEADER_FILE_ONLY is set, 2010-12-20) made to Complex.
| * | | complex: Remove ancient unused ComplexRelativePaths testBrad King2011-12-2343-2481/+4
| | | |
* | | | Merge topic 'avoid-mfc-test'David Cole2011-12-202-0/+65
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 0e598b7 Tests: Only really run MFC test if we can build MFC apps (#11213)
| * | | | Tests: Only really run MFC test if we can build MFC apps (#11213)David Cole2011-12-162-0/+65
| |/ / / | | | | | | | | | | | | Avoid problems on "undetected" VS Express build environments.
* | | | Merge topic 'fix_double_project_cmake_build'David Cole2011-12-204-6/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 5badf5f Fix the case where cmake --build failed with two project cmds in one file.
| * | | | Fix the case where cmake --build failed with two project cmds in one file.Bill Hoffman2011-12-204-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a test that uses two project commands in the same CMakeLists.txt file. It also adds a fix so that cmake --build will work in that case. The fix sets the name of the last project command in the top level CMakeLists.txt in the cache variable CMAKE_PROJECT_NAME. This variable is used by cmake --build to find the project name.
* | | | | Merge topic 'AutomocFineTuning'David Cole2011-12-201-0/+3
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | e474dcb automoc: improved warning message in relaxed mode 96fc5d5 automoc: default to strict mode, use CMAKE_AUTOMOC_RELAXED_MODE
| * | | | automoc: default to strict mode, use CMAKE_AUTOMOC_RELAXED_MODEAlex Neundorf2011-12-131-0/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | automoc now defaults to strict mode, also with Qt4, i.e. it behaves as the documentation says by default. I also inverted the switch CMAKE_AUTOMOC_STRICT_MODE to CMAKE_AUTOMOC_RELAXED_MODE. Docs and test adapted accordingly. Alex
* | | | Merge topic 'test-Fortran-compiler-compat'David Cole2011-12-161-10/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | fcb2a27 Fix and simplify Fortran test compiler compatibility check
| * | | | Fix and simplify Fortran test compiler compatibility checkBrad King2011-12-151-10/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 38aab379 (Set CMAKE_<lang>_COMPILER_ID for VS generators, 2011-09-02) the VS IDE generators set the C and C++ compiler id to MSVC and the Fortran compiler id to Intel. This caused the Fortran test to fail compatible compiler detection because the if() test "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC" is evaluated as the "var MATCHES regex" signature which evaluates the compiler id "MSVC" as a variable which is defined to 1 which does not match "MSVC". Combine tests for non-identical but compatible compiler vendors into a single regex match whose left hand side will not be defined as a variable.
* | | | Follow all dependencies of shared library private dependenciesBrad King2011-12-143-2/+25
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | In cmComputeLinkDepends we compute the transitive closure of private shared library dependencies. When a shared library is added to this closure we must follow all of its dependencies whether they are private or public. Previously we only followed the private dependencies. Fix the implementation to follow the public dependencies too. Also extend the ExportImport test to cover this case.
* | | Merge branch 'master' into AutomocIncludedDotMocFileHandlingDavid Cole2011-12-0771-19/+2094
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: Source/cmTarget.cxx
| * \ \ Merge topic 'GNU-to-MS'David Cole2011-12-062-0/+6
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ae62a1c Test CMAKE_GNUtoMS option in ExportImport on MinGW and MSys afb00fe Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib 61e8629 Factor makefile generator link rule lookup into helper function a603250 Load platform files that need to know the ABI when possible ecd8414 Fortran: Detect pointer size in gfortran on MinGW
| | * | | Test CMAKE_GNUtoMS option in ExportImport on MinGW and MSysBrad King2011-12-052-0/+6
| | | | |
| * | | | Merge topic 'fix-ExternalProject-svn-issue'David Cole2011-12-061-7/+0
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | f529ddc Tests: ExternalProject: Remove unnecessary 'svn --version' call
| | * | | | Tests: ExternalProject: Remove unnecessary 'svn --version' callRolf Eike Beer2011-12-051-7/+0
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test will fail to get a proper version number if running on a (e.g. German) localized system because the regular expression used to match the Subversion version output does not match. Instead of duplicating code just remove the local test altogether and use the version that FindSubversion.cmake already detects.