summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'while-testing'David Cole2012-03-027-0/+60
|\ | | | | | | | | | | 944b90b add testcases for while()/endwhile() errors f605b92 improve error message on a stray "endwhile()"
| * add testcases for while()/endwhile() errorsRolf Eike Beer2012-03-017-0/+60
| |
* | Merge topic 'allfindmodules-versions'David Cole2012-03-021-18/+24
|\ \ | | | | | | | | | | | | 9271d2f AllFindModules test: once again expand version checking
| * | AllFindModules test: once again expand version checkingRolf Eike Beer2012-03-011-18/+24
| |/
* | Merge topic 'inject_code_via_variable'David Cole2012-03-024-1/+13
|\ \ | | | | | | | | | | | | | | | 2557a08 Fix typo in error message, and remove redundent test. 9090572 Add ability to include a file in a project via a cache variable.
| * | Fix typo in error message, and remove redundent test.Bill Hoffman2012-03-011-2/+0
| | |
| * | Add ability to include a file in a project via a cache variable.Bill Hoffman2012-02-174-1/+15
| | | | | | | | | | | | | | | | | | If a variable exists called CMAKE_PROJECT_<projectName>_INCLUDE, the file pointed to by that variable will be included as the last step of the project command.
* | | Merge topic 'find_package-improve-messages'David Cole2012-03-0231-0/+318
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eeaaffc find_package: Test error and warning messages in failure cases 52dffb9 Merge branch 'test-CMakeCommands' into find_package-improve-messages d365104 find_package: Optionally warn when implicitly using Config mode 31ead5f find_package: Reject mixed use of MODULE- and CONFIG-only options 6d83083 find_package: mention requested version number in error message 9c39bbd find_package: add CONFIG mode keyword alias for NO_MODULE f310f67 find_package: add MODULE mode to use only Find-modules 7d67dcf find_package: improve error message when no Find module is present 978d89b find_package: rename NoModule to UseFindModules
| * | | find_package: Test error and warning messages in failure casesBrad King2012-02-2831-0/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a "CMakeCommands.find_package" test to run CMake on a bunch of cases in which find_package fails. Check that the process return code and warning/error messages are as expected. Record expected test output in corresponding files for reference by the check. These files will also serve as a reference for the message text in each case.
* | | | Merge topic 'test-CMakeCommands'David Cole2012-03-023-7/+11
|\ \ \ \ | |/ / / | | | | | | | | | | | | 5e1a5c4 Add infrastructure for CMakeCommands tests
| * | | 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.
* | | Tests: Escape metachars before embedding paths into the regex (#12999)Modestas Vainius2012-02-271-2/+9
| |/ |/| | | | | | | | | | | | | | | | | ${CMake_SOURCE_DIR} and ${CMake_BINARY_DIR} cannot be embedded into regex directly. If they contain special regex metacharacters like +, the regex will break. So just escape such metacharacters with a backslash before embedding the path into the regex. The issue affected the following tests: CTestTestConfigFileInBuildDir1 and CTestTestConfigFileInBuildDir2.
* | Merge topic 'HandleTargetsInCMakeRequiredLibraries'David Cole2012-02-211-0/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | 35c48e1 Check*.cmake: Expand imported targets in CMAKE_REQUIRED_LIBRARIES 61cb4ea bootstrap: move while() and endwhile() into the bootstrap build c9f2886 -don't pull in CheckTypeSize.cmake from the cmake which is being built 628f365 -remove trailing whitespace
| * | Check*.cmake: Expand imported targets in CMAKE_REQUIRED_LIBRARIESAlex Neundorf2012-02-211-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the function cmake_expand_imported_targets() to expand imported targets in a list of libraries into their on-disk file names for a particular configuration. Adapt the implementation from KDE's HANDLE_IMPORTED_TARGETS_IN_CMAKE_REQUIRED_LIBRARIES which has been in use for over 2 years. Call the function from all the Check*.cmake macros to handle imported targets named in CMAKE_REQUIRED_LIBRARIES. Alex
* | | Merge topic 'doBuildRPM-withSpaceInTree'David Cole2012-02-211-0/+8
|\ \ \ | | | | | | | | | | | | | | | | 6749450 Do not build RPM if path of the build tree contains space
| * | | Do not build RPM if path of the build tree contains spaceEric NOULARD2012-02-191-0/+8
| | |/ | |/|
* | | Merge topic 'expect-more-versions'David Cole2012-02-211-2/+3
|\ \ \ | | | | | | | | | | | | | | | | 540db7e AllFindModules test: expect more modules to have a version number available
| * | | AllFindModules test: expect more modules to have a version number availableRolf Eike Beer2012-02-181-2/+3
| |/ / | | | | | | | | | | | | | | | For all current build machines the modules FindPkgConfig, FindFreetype, and FindLibXslt return a version number. Enforce this to early catch when this is not always the case.
* | | Merge topic 'findlibrary-versioned-libraries'David Cole2012-02-211-1/+31
|\ \ \ | | | | | | | | | | | | | | | | 70f3623 Find_library(): allow searching for versioned shared objects
| * | | Find_library(): allow searching for versioned shared objectsRolf Eike Beer2012-02-181-1/+31
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This did not work because find_library() did only treat the given name as complete filename if is matched "PREFIX.*SUFFIX": find_library(MYLIB libfoo.so.2) Now it is also taken as a whole if the name matches "PREFIX.*SUFFIX\..*".
* | | Merge topic 'fix-typos-12975'David Cole2012-02-211-3/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | 7ec2ebd fix the same typos as found by Debian in other places, too d36d29f various typo and formatting fixes in manual pages (#12975)
| * | | fix the same typos as found by Debian in other places, tooRolf Eike Beer2012-02-181-3/+3
| |/ /
* | | Tests: document where to put testsRolf Eike Beer2012-02-171-0/+34
|/ /
* | 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
| | |