summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'object-library'David Cole2012-03-2071-0/+340
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 93d5509 Merge branch 'ninja-object-library' into object-library 821037c Merge branch 'xcode-object-library' into object-library eb24c99 Merge branch 'object-library' into xcode-object-library 63d1be8 Xcode: Honor $<TARGET_OBJECTS:...> source expressions 020ba38 Merge branch 'object-library' into xcode-object-library e8ea615 Build object library targets in Xcode 8045e17 Pre-compute object file names before Xcode generation 247a132 Allow txt files as ExtraSources in object library targets b063599 Add a default source group for object files. be01f3b Xcode: Re-factor some existing methods into "FromPath" variants 2693dbe Merge branch 'object-library' into ninja-object-library 51997cb Ninja: Honor $<TARGET_OBJECTS:...> source expressions 23ec258 Merge branch 'object-library' into ninja-object-library 61124de Build object library targets in Ninja f5b06cd Pre-compute object file names before Ninja generation a2514f1 Simplify cmNinjaTargetGenerator using cmGeneratorTarget ...
| * Merge branch 'object-library' into ninja-object-libraryBrad King2012-03-1671-0/+340
| |\
| | * Test OBJECT library use without other sourcesBrad King2012-03-165-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reference OBJECT libraries for inclusion in targets that have no other sources to verify that the linker language propagates correctly from the object libraries. Test with 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. In VS 6, 7, and 7.1 add a dummy object file to convince the IDE to build the targets without sources. In Xcode add a dummy source file to convince it to build targets without sources.
| | * Test OBJECT library language propagationBrad King2012-03-163-0/+17
| | | | | | | | | | | | | | | | | | Teach the RunCMake.ObjectLibrary test to verify that languages used in an OBJECT library are propagated to targets that use it so that the languages can be included in link analysis.
| | * Test OBJECT library failure casesBrad King2012-03-1651-0/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "RunCMake.ObjectLibrary" test to verify that unsupported use cases are rejected with errors: * An OBJECT library may not reference another object library * An OBJECT library may not be referenced in target_link_libraries * An OBJECT library may not contain non-compiling sources * An OBJECT library may not have pre/post build/link commands * An OBJECT library may not be installed, exported, or imported Also verify that invalid $<TARGET_OBJECTS:...> expressions are diagnosed.
| | * Test OBJECT library success casesBrad King2012-03-1614-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1681-249/+907
| |\ \ | | |/
* | | Merge topic 'find_package_set_FOUND_VariableInConfigFile'Brad King2012-03-197-0/+27
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0cf8447 find_package: additional test for checking the error message 56ae3f9 find_package: add test for setting Foo_FOUND to FALSE in a Config file 16c0c73 find_package: allow <pkg>Config.cmake to set <pkg>_FOUND to FALSE
| * | | find_package: additional test for checking the error messageAlex Neundorf2012-03-134-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a test which checks the error message, which is produced in the case that a Config file has set Foo_FOUND to FALSE by itself. Alex
| * | | find_package: add test for setting Foo_FOUND to FALSE in a Config fileAlex Neundorf2012-03-133-0/+14
| | | | | | | | | | | | | | | | Alex
* | | | Merge topic 'ninja-generator'Brad King2012-03-194-3/+22
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8485208 Ninja: shell escape $(CMAKE_SOURCE_DIR) and $(CMAKE_BINARY_DIR) df84767 Ninja: add support for OBJECT_OUTPUTS, fix PrecompiledHeader test case 48eb7fc Ninja: Avoid using 'this' in member initializers bba37dd Ninja: Fix for PDB files with spaces in the path. ac800f4 Ninja: Constify use of cmCustomCommand 9a0d5a8 Ninja: add /DEF: flag to linker call d40eebd Ninja: Add a cache option CMAKE_ENABLE_NINJA to enable the ninja generator. 8c63433 Ninja: Add friend struct so it can access the private ConvertToNinjaPath. dbe3dce Ninja: add .def file support f1bb08f Ninja: ensure the output dir exists at compile time 7a6b5f4 Ninja: Remove an unnecessary variable 80ff210 Ninja: Use cmSystemTools::ExpandListArgument to split compile/link commands d2731a3 Ninja: Add a missed license header eabc9b0 Ninja: CMake: Adapt Ninja generator for per-target include dirs bada88e Merge branch 'target-include-directories' into ninja-generator 54bd175 Ninja: windows msvc: create for each target a .pdb file ...
| * | | Ninja: add support for OBJECT_OUTPUTS, fix PrecompiledHeader test casePeter Collingbourne2012-03-171-1/+2
| |/ /
| * | Merge branch 'target-include-directories' into ninja-generatorDavid Cole2012-02-2228-130/+409
| |\ \
| * | | 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 'test-RunCMake'Brad King2012-03-1346-133/+111
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | 55b2aa8 Use generalized RunCMake test infrastrucure for build_command test eb33000 Use generalized RunCMake test infrastrucure for find_package test 42a81e7 Add stronger infrastructure for CMake-only tests
| * | | Use generalized RunCMake test infrastrucure for build_command testBrad King2012-03-1213-100/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Use generalized RunCMake test infrastrucure for find_package testBrad King2012-03-1234-84/+19
| | | |
| * | | Add stronger infrastructure for CMake-only testsBrad King2012-03-124-4/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | WriteBasicConfigVersionFile: add test for ExactVersion modeAlex Neundorf2012-03-101-0/+70
|/ / / | | | | | | | | | Alex
* | | Merge topic 'find_package_fatal_error_if_required_and_config_not_found'David Cole2012-03-0812-3/+26
|\ \ \ | | | | | | | | | | | | | | | | | | | | c5ae733 find_package: Test that REQUIRED aborts processing correctly c91a54d find_package: error out if REQUIRED Config has not been found
| * | | find_package: Test that REQUIRED aborts processing correctlyBrad King2012-03-0712-3/+26
| | | | | | | | | | | | | | | | | | | | Verify that the command produces a FATAL_ERROR if and only if the missing package is REQUIRED.
* | | | Merge topic 'MakingConfigFilesEasier_ConfigureMacro'David Cole2012-03-082-5/+37
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 6973e2d wrap write_basic_config_version_file as write_basic_package_version_file() 204f5d4 add CMakePackageConfigHelpers: configure_package_config_file()
| * | | | wrap write_basic_config_version_file as write_basic_package_version_file()Alex Neundorf2012-03-071-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So the name fits better with configure_package_config_file(), as discussed on the mailing list. Adapt the documentation accordingly. Alex
| * | | | add CMakePackageConfigHelpers: configure_package_config_file()Alex Neundorf2012-03-072-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function configure_package_config_file() may be used instead of configure_file() for generating the Config.cmake files for installation, they help to make those files relocatable. Alex
* | | | | Merge topic 'fix-12189-support-SBCS-in-VS'David Cole2012-03-083-0/+32
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-173-0/+30
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 'target-include-directories'David Cole2012-03-083-0/+38
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d662dff Fix shadowed variable warning on dashboard results f66e735 Fix compiler warning reported on older Borland dashboard. d90eed4 Fix compiler error reported on older Borland dashboard. 8233636 Update the documentation regarding INCLUDE_DIRECTORIES. d899eb7 Call ExpandVariablesInString for each target's INCLUDE_DIRECTORIES c21db87 Make search paths ordered and unique 22021f0 Remove cmMakefile::GetIncludeDirectories 9106b56 Extract and use the INCLUDE_DIRECTORIES target properties. 840509b Keep the INCLUDE_DIRECTORIES target property up to date. a4d5f7b Add API to get the ordered includes for a target. 8adaee2 CMake: Eliminate cmMakefile::IncludeDirectories 7620932 Remove include flags memoization. 97a5faa Make it safe to call this method without creating duplicates. edd5303 Refactor GetIncludeFlags to take includes instead of fetching them
| * | | | Extract and use the INCLUDE_DIRECTORIES target properties.Stephen Kelly2012-02-223-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate callers of cmMakefile::GetIncludeDirectories. All callers of GetIncludeDirectories should go through the local generator object. Only the local generator calls cmTarget::GetIncludeDirectories directly.
* | | | | Merge topic 'test-getpropery'David Cole2012-03-0616-0/+122
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | b43cd12 add test for get_property() errors
| * | | | | add test for get_property() errorsRolf Eike Beer2012-03-0416-0/+122
| | |_|/ / | |/| | |
* | | | | Merge topic 'allfindmodules-versions'David Cole2012-03-061-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 234b7ca AllFindModules test: do not require TCLSH version
| * | | | | AllFindModules test: do not require TCLSH versionRolf Eike Beer2012-03-021-1/+1
| |/ / / /
* | | | | Merge topic 'fix-msys-cvs-local-repo'David Cole2012-03-062-0/+25
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e333602 Fix MSYS CVS local test repo path format (#13001)
| * | | | | Fix MSYS CVS local test repo path format (#13001)Brad King2012-03-022-0/+25
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MSYS cvs tool interprets "c:/" as a "machine:" name for SSH. Detect the MSYS cvs by looking for the string "msys" in the executable file itself. Then convert the repo path to an MSYS path such as "/c/...". Fix both the CTest.UpdateCVS and ExternalProject tests that use local CVS repositories.
* | | | | Merge topic 'remove-CheckSourceTree-cvs-support'David Cole2012-03-062-85/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 9012be2 CheckSourceTree: Remove CVS checkout support (#13001)
| * | | | | CheckSourceTree: Remove CVS checkout support (#13001)Brad King2012-03-022-85/+7
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | We no longer support CVS checkouts from the Git repository. Drop the case from the CheckSourceTree test. This will also prevent the test from running and failing when CVS is found but Git is not.
* | | | | Merge topic 'fix-CTestUpdateHG-url'David Cole2012-03-061-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0916cc8 CTest.UpdateHG: Fix repo URL for local filesystem (#13001)
| * | | | | CTest.UpdateHG: Fix repo URL for local filesystem (#13001)Brad King2012-03-021-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | Use "file:///c:/" instead of "file://c:/" because the latter looks like a machine:port URL instead of a local file URL.
* | | | | Merge topic 'qt4-deploy'David Cole2012-03-063-37/+154
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-293-3/+3
| | | | |
| * | | | 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-233-0/+120
| | |/ / | |/| |
* | | | 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.