summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Add infrastructure for CMakeCommands testsBrad King2012-02-283-7/+11
| | | | | Generalize the build_command test framework as a macro to add the test. Process the CMakeCommands subdirectory explicitly.
* Merge topic 'allfindmodules-no-force-gnuplot'David Cole2012-02-141-1/+1
|\ | | | | | | | | 2f306a9 AllFindModules test: do not enforce GNUPLOT version
| * AllFindModules test: do not enforce GNUPLOT versionRolf Eike Beer2012-02-131-1/+1
| | | | | | | | | | Ancient Gnuplot versions like 3.7.1 don't know about "--version". Disable this check so it doesn't break on machines with this version.
* | CMakeAddFortranSubdirectory: Add NO_EXTERNAL_INSTALL optionBrad King2012-02-091-1/+2
| | | | | | | | | | | | | | | | We do not yet support "make install" in the external project case. Document this explicitly in the interface. Require the caller to use an option to "disable" the unsupported behavior. This will allow us to add the behavior by default in the future without clobbering existing projects that handle the installation themselves.
* | CMakeAddFortranSubdirectory: Make IMPORTED targets GLOBALBill Hoffman2012-02-095-17/+17
| | | | | | | | | | | | | | cmake_add_fortran_directory uses imported targets when using the mingw fortran compiler. This change makes those targets global in scope so they act just like the real targets that exist when a fortran compiler exists and regular add_subdirectory is used.
* | VSGNUFortran: Disable test in special casesBill Hoffman2012-02-091-1/+18
| | | | | | | | | | The ifort compiler found on some test machines does not support Mac universal binaries or the Linux Standard Base.
* | VSGNUFortran: Add special case for SunPro Fortran runtime libraryBill Hoffman2012-02-091-1/+35
| | | | | | | | | | | | The SunPro compiler does not add the fortran runtime library when creating a shared fortran library. Link to the SunPro Fortran runtime libraries explicitly.
* | CMakeAddFortranSubdirectory: Allow full paths to directoriesBrad King2012-02-091-10/+12
| | | | | | | | | | | | | | Fix the implementation to allow full paths with spaces. Change the interpretation of relative paths to be with respect to the current binary directory. This matches the convention used in ExternalProject. Test both full and relative paths in the VSGNUFortran test.
* | Add CMakeAddFortranSubdirectory to use MinGW gfortran in VSBill Hoffman2012-02-098-0/+105
| | | | | | | | | | | | | | This patch adds a new module that allows for easy integration of MinGW gfortran and the Visual Studio compiler. It is done in a function called cmake_add_fortran_subdirectory. The patch also includes a test for this feature.
* | Add CheckLanguage moduleBrad King2012-02-082-0/+24
|/ | | | | | Define a "check_language(<lang>)" macro to test whether <lang> can be enabled. Cache the result in CMAKE_<lang>_COMPILER. Add a test case covering expected results.
* Merge topic 'remove-unused-test-code'David Cole2012-02-076-118/+29
|\ | | | | | | | | daa4101 Remove unused test code
| * Remove unused test codeBrad King2012-02-036-118/+29
| | | | | | | | | | We have not run tests with the "como" compiler or enabled the experimental ConvLibrary test for years.
* | Merge topic 'lang-enable-order-issue-12929'David Cole2012-02-074-0/+16
|\ \ | | | | | | | | | | | | 7495845 Fix CXX/Fortran MODULE flags when enabled before C (#12929)
| * | Fix CXX/Fortran MODULE flags when enabled before C (#12929)Brad King2012-02-034-0/+16
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | If CXX or Fortran is enabled before C then the values of CMAKE_SHARED_MODULE_C_FLAGS CMAKE_SHARED_MODULE_CREATE_C_FLAGS may not be available. On platforms where MODULE library (plugin) creation is the same as SHARED library creation initialize the MODULE creation flags from the SHARED creation flags of the matching language instead of assuming that C has been enabled first. Teach the COnly and CxxOnly tests to build MODULE libraries. The latter covers this specific case.
* | Merge topic 'change-trilinos-submit-url'David Cole2012-02-071-0/+18
|\ \ | | | | | | | | | | | | bf2e385 Tests: Update drop site value for the Trilinos contract test
| * | Tests: Update drop site value for the Trilinos contract testDavid Cole2012-02-031-0/+18
| |/
* | Merge topic 'AllFindModules-test'David Cole2012-02-071-11/+40
|\ \ | |/ |/| | | | | | | | | | | ed1b126 CMakeOnly.AllFindModules: require version for some modules 2dee929 CMakeOnly.AllFindModules: suppress two modules from testing 3c4b4ff CMakeOnly.AllFindModules: always check FindQt 9d72b25 CMakeOnly.AllFindModules: clean up the Qt3/Qt4 code
| * CMakeOnly.AllFindModules: require version for some modulesRolf Eike Beer2012-02-011-0/+22
| |
| * CMakeOnly.AllFindModules: suppress two modules from testingRolf Eike Beer2012-01-261-1/+6
| | | | | | | | | | FindPackageHandleStandardArgs and FindPackageMessage match the glob expression but are nothing that will usually be fed into find_package().
| * CMakeOnly.AllFindModules: always check FindQtRolf Eike Beer2012-01-261-2/+4
| |
| * CMakeOnly.AllFindModules: clean up the Qt3/Qt4 codeRolf Eike Beer2012-01-261-11/+11
| |
* | 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.