summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-710/+710
| | | | | | | | | | | | | | | | | 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
* 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.
* | CTest: Add test to verify -D variable definitions workDavid Cole2012-06-251-0/+13
|/
* Merge topic 'position-independent-targets'David Cole2012-06-121-0/+18
|\ | | | | | | | | | | | | bd34963 Refactor generation of shared library flags 55d7aa4 Add platform variable for flags specific to shared libraries 31d7a0f Add platform variables for position independent code flags
| * Refactor generation of shared library flagsStephen Kelly2012-06-121-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CMAKE_SHARED_LIBRARY_<lang>_FLAGS has flags on various platforms for a variety of purposes that are correlated with shared libraries but not exclusive to them. Refactor generation of these flags to use new purpose-specific platform variables CMAKE_<lang>_COMPILE_OPTIONS_DLL CMAKE_<lang>_COMPILE_OPTIONS_PIC CMAKE_<lang>_COMPILE_OPTIONS_PIE Activate the DLL flags specifically for shared libraries. Add a new POSITION_INDEPENDENT_CODE target property to activate PIC/PIE flags, and default to true for shared libraries to preserve default behavior. Initialize the new property from CMAKE_POSITION_INDEPENDENT_CODE to allow easy global configuration in projects. Although the default behavior is unchanged by this refactoring, the new approach ignores CMAKE_SHARED_LIBRARY_<lang>_FLAGS completely. We must leave it set in case projects reference the value. Furthermore, if a project modifies CMAKE_SHARED_LIBRARY_<lang>_FLAGS it expects the new value to be used. Add policy CMP0018 to handle compatibility with projects that modify this platform variable. Add a PositionIndependentCode test on platforms where we can get meaningful results.
* | Exclude the CompileCommandOutput test on WIN32.Stephen Kelly2012-06-041-1/+1
| |
* | Make the CMAKE_EXPORT_COMPILE_COMMANDS option work with Ninja.Stephen Kelly2012-06-041-1/+1
|/
* Merge topic 'CPack-activateRPM-DEB-onMacOS'David Cole2012-05-241-12/+36
|\ | | | | | | | | | | 801ea70 Calm down Borland compiler warning about "always true" 2a34b57 CPack allow RPM and DEB generator to be used on OSX.
| * CPack allow RPM and DEB generator to be used on OSX.Eric NOULARD2012-05-201-12/+36
| | | | | | | | | | | | | | | | | | More generally add the check for possible generator "activation" at runtime depending on a generator specific check. The dynamic behavior is currently implemented only for MacOS and should be fully backward compatible for other system. Inspired-By Tom Hughes <tomtheengineer@gmail.com>
* | Disable bullseye coverage for mumps coverage test.Bill Hoffman2012-05-041-2/+4
| |
* | Use <TARGET_FILE> expression to run ctest so it works with Xcode and VS IDE.Bill Hoffman2012-05-021-16/+8
| | | | | | | | Also add -crlf to the .gitconfig to handle the coverage data.
* | Use a script to run the test because WORKING_DIRECTORY is not in 2.8.2.Bill Hoffman2012-05-021-8/+16
| | | | | | | | | | add_test with WORKING_DIRECTORY is too new to use in cmake. This change uses a configured script to run the command in the right directory.
* | Add support for Cache coverage.Bill Hoffman2012-05-011-0/+16
| | | | | | | | | | This adds support for Cache coverage parsing. A test is added that does a basic run of the coverage on a small bit of data.
* | Add test for mumps coverage. Also refactor code to prepare for cache coverage.Bill Hoffman2012-05-011-0/+18
|/ | | | | Add a simple test to make sure the GTM mumps coverage is working. Also refactor the code so that cache coverage can be added.
* Merge branch 'object-library' into ninja-object-libraryBrad King2012-03-161-0/+1
|\
| * Test OBJECT library success casesBrad King2012-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add "ObjectLibrary" test to build and use OBJECT libraries. Build multiple object libraries in separate directories with different flags. Use a custom command to generate a source file in one OBJECT library. Reference the OBJECT libraries for inclusion in a STATIC library, a SHARED library, and an EXECUTABLE target. Use the static and shared libraries each in executables that end up using the object library symbols. Verify that object library symbols are exported from the shared library.
* | Merge branch 'object-library' into ninja-object-libraryBrad King2012-03-161-46/+69
|\ \ | |/
| * Use generalized RunCMake test infrastrucure for build_command testBrad King2012-03-121-1/+0
| | | | | | | | | | | | | | The CMakeCommands.build_command test performs output/error checking so move it over to RunCMake to re-use the generalized infrastrucure. This is the only test left using Tests/CMakeCommands/CMakeLists.txt so remove it.
| * Add stronger infrastructure for CMake-only testsBrad King2012-03-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The CMakeOnly directory added by commit 9a20abf0 (Add infrastructure for CMake-only tests, 2012-01-11) was sufficient only for tests that always run CMake to successfully configure a project. Later commit eeaaffcb (find_package: Test error and warning messages in failure cases, 2012-02-28) added a sample test that covers failure cases. Generalize the above to create new "RunCMake" test infrastructure that can run CMake multiple times for a single project with different variations and check for expected result/stdout/stderr. Allow for both successful and failing CMake project configuration cases. This will be useful to test error messages and failure behavior.
| * Merge topic 'fix-12189-support-SBCS-in-VS'David Cole2012-03-081-0/+4
| |\ | | | | | | | | | | | | | | | | | | b28e7fa VS6: Avoid SBCS test on VS6 (#12189) df19b9c VS6: Avoid _MBCS define when _SBCS is defined (#12189) ba89e92 Visual Studio: Allow setting Single Byte Character Set (#12189)
| | * VS6: Avoid SBCS test on VS6 (#12189)David Cole2012-03-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous commit, df19b9ca, assumed that the corresponding _UNICODE functionality in the VS6 generator actually worked. That turns out not to be the case. Unicode definition does not actually suppress _MBCS definition, so neither does this new code... Don't test it here, since the patch submitter for _SBCS does not need VS6 support. If somebody needs _UNICODE and _SBCS support to suppress the definition of _MBCS in the VS6 generator, it is work yet to do. Patches welcome.
| | * Visual Studio: Allow setting Single Byte Character Set (#12189)Aaron C. Meadows2012-02-171-0/+2
| | | | | | | | | | | | | | | | | | | | | For Visual Studio using the Preprocessor Define _SBCS. This behavior is similar to the way that _UNICODE and _MBCS work already. Added tests to confirm this behavior.
| * | Merge topic 'qt4-deploy'David Cole2012-03-061-37/+55
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4689eed reflect that the QtAutomoc depends on QtGui ab9661c Remove QtGui dependency in Qt4Deploy test and verify QtSql existance. 52e8279 Fix for Qt4Deploy on some test machines. 672e3bb Add test for DeployQt4.cmake 4853e1e Fix plugin installation issues. 35cbf23 Ensure libs are passed to BundleUtilities. 0ac1535 Fix bad plugin paths. a2123e8 Fix mismatched arguments. fc6f340 Don't use QT_LIBRARIES_PLUGINS by default.
| | * | reflect that the QtAutomoc depends on QtGuiRolf Eike Beer2012-02-291-1/+1
| | | |
| | * | Remove QtGui dependency in Qt4Deploy test and verify QtSql existance.Clinton Stimpson2012-02-291-1/+1
| | | |
| | * | Fix for Qt4Deploy on some test machines.Clinton Stimpson2012-02-241-38/+35
| | | | | | | | | | | | | | | | | | | | Use the same check for whether Qt4 works for Qt4Automoc test before trying to do the Qt4Deploy test. Also pass down to Qt4Deploy which Qt to use.
| | * | Add test for DeployQt4.cmakeClinton Stimpson2012-02-231-0/+21
| | |/
| * | Merge topic 'test-CMakeCommands'David Cole2012-03-021-7/+1
| |\ \ | | | | | | | | | | | | | | | | 5e1a5c4 Add infrastructure for CMakeCommands tests
| | * | Add infrastructure for CMakeCommands testsBrad King2012-02-281-7/+1
| | |/ | | | | | | | | | | | | 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 branch 'target-include-directories' into ninja-generatorDavid Cole2012-02-221-49/+63
|\ \ \ | |/ /
| * | Do not build RPM if path of the build tree contains spaceEric NOULARD2012-02-191-0/+8
| |/
| * 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.
| * Add CMakeAddFortranSubdirectory to use MinGW gfortran in VSBill Hoffman2012-02-091-0/+9
| | | | | | | | | | | | | | 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.
| * Remove unused test codeBrad King2012-02-031-49/+29
| | | | | | | | | | We have not run tests with the "como" compiler or enabled the experimental ConvLibrary test for years.
* | Ninja: Add the Ninja generatorPeter Collingbourne2012-02-021-2/+12
|/
* CheckCXXCompilerFlag test: make it a CMakeOnly testRolf Eike Beer2012-01-301-2/+0
|
* Add infrastructure for CMake-only testsBrad King2012-01-131-0/+1
| | | | | | | | 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 'test-Complex-cleanup'David Cole2012-01-091-21/+0
|\ | | | | | | | | | | | | | | | | | | | | | | 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-231-9/+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 ancient unused ComplexRelativePaths testBrad King2011-12-231-12/+0
| |
* | Merge topic 'avoid-mfc-test'David Cole2011-12-201-0/+50
|\ \ | | | | | | | | | | | | 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-161-0/+50
| |/ | | | | | | Avoid problems on "undetected" VS Express build environments.
* | Fix the case where cmake --build failed with two project cmds in one file.Bill Hoffman2011-12-201-0/+10
|/ | | | | | | | 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 'target-link-libraries-interfaces'David Cole2011-11-231-0/+2
|\ | | | | | | | | | | | | | | b1f12f8 target_link_libraries: Simplify argument processing state tests 5fc95df target_link_libraries: Add missing space in documentation 9143822 target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options cf64218 target_link_libraries: Trim trailing whitespace
| * target_link_libraries: Add LINK_(PUBLIC|PRIVATE) optionsStephen Kelly2011-11-221-0/+2
| | | | | | | | | | Makes it possible to specify the link dependencies and link interfaces in one command without repetition.
* | Merge topic 'add-mfc-test'David Cole2011-11-151-0/+55
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | c71f7ab Tests: Avoid MFC test automatically for Watcom WMake builds (#11213) a42e3f2 Tests: Fix MFC test for old vs6 dashboards (#11213) b297da6 Tests: Fix MFC test w/ Make-based generators (#11213) 54595e6 Tests: Avoid MFC test automatically for VCExpress builds (#11213) 36b0c43 Tests: Add the MFC test (#11213)