summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Cache coverage.Bill Hoffman2012-05-014-0/+330
| | | | | 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-016-0/+1619
| | | | | 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 topic 'test-generated-def'David Cole2012-04-034-1/+14
|\ | | | | | | | | 89987c2 Test generated module .def files
| * Test generated module .def filesBrad King2012-04-024-1/+14
| | | | | | | | | | Teach the ModuleDefinition test to cover the case that a .def file is generated by a custom command.
* | automoc: add define to test which caused bug #13018Alex Neundorf2012-03-261-1/+1
| | | | | | | | | | | | | | | | | | This does not really test that the bug is fixed, but at least it makes it easy to check manually whether the bug is there or not. I have to see whether I can build a test which does test that a target is not rebuilt everytime. Alex
* | Merge topic 'fix-CTestUpdateHG-url'Brad King2012-03-231-1/+4
|\ \ | | | | | | | | | | | | d0702f8 CTest.UpdateHG: Fix repo URL for leading slash
| * | CTest.UpdateHG: Fix repo URL for leading slashBrad King2012-03-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use "file:///..." instead of "file:////..." when the file system path starts in a slash. Commit 0916cc88 (CTest.UpdateHG: Fix repo URL for local filesystem, 2012-03-02) added a third slash after "file://" unconditionally. This worked for many file systems but not on Cygwin where "file:////cygdrive/..." looks like "file://" followed by a network file path "//cygdrive/...". Add the slash only if the file system path does not already start with one.
* | | Merge topic 'fix-AllFindModules-version-check'David Cole2012-03-211-3/+13
|\ \ \ | | | | | | | | | | | | | | | | a5ee628 Tests: Relax restrictions on version variable contents
| * | | Tests: Relax restrictions on version variable contentsDavid Cole2012-03-201-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our only expectation of version number variables should be that they begin with a decimal digit for VERSION_LESS, VERSION_EQUAL and VERSION_GREATER comparison purposes. If people put extra blah blah after a version number like "1.2.3 (this is some super special extra information about our funky proprietary build of the official 1.2.3 release)" then we should be ok with that. So: now we have the following expectations for version number variable content for the purposes of the AllFindModules test: - it should start with a decimal digit (match "^[0-9]") - it should not be empty - it should not be VERSION_EQUAL 0 - it should not be NOT VERSION_GREATER 0
* | | | Merge topic 'watcom-object-library'David Cole2012-03-214-12/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | fb7348f Fix ObjectLibrary test on Watcom
| * | | | Fix ObjectLibrary test on WatcomBrad King2012-03-204-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Watcom compiler interprets "-DB" as option -db generate browsing information so define "A_DEF" and "B_DEF" instead of just "A" and "B". Skip CMAKE_SHARED_LIBRARY_C_FLAGS for Watcom because it is set to -bd build Dynamic link library which adds a DLL entry point to each object.
* | | | | Merge topic 'vs10-object-items'David Cole2012-03-212-0/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b291d9e VS10: Fix external objects generated outside target (#13047) 328c0f6 Simplify cmVisualStudio10TargetGenerator source classification
| * | | | | VS10: Fix external objects generated outside target (#13047)Brad King2012-03-202-0/+5
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 9a6ff950 (Fix for bug where VS2010 did not use .obj files, 2011-04-01) assumed that if an external object is GENERATED that it is the output of a custom command in the current target. If it is generated by another target then VS will not automatically include the external object in the current target. This bug was preserved by the refactoring in the parent commit. Instead use <None> for external objects generated by a custom command in the current target and <Object> for all other external objects. Update the ExternalOBJ test to cover this case.
* | | | | Merge topic 'ImprovedCOMPONENTSSupportInFindPackage2'David Cole2012-03-217-0/+43
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6d100f9 find_package: Test rejection of required+optional components d81d83c add macro check_required_components() to configure_package_config_file() b15c0b4 FPHSA(): add HANDLE_COMPONENTS option 34108cd find_package: add documentation for OPTIONAL_COMPONENTS cdabde8 FPHSA(): add missing "]" to documentation f2e0a18 find_package: add OPTIONAL_COMPONENTS keyword
| * | | | find_package: Test rejection of required+optional componentsBrad King2012-03-194-0/+11
| | | | |
| * | | | add macro check_required_components() to configure_package_config_file()Alex Neundorf2012-03-192-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As discussed on cmake-developers, this patch adds a macro check_required_components() to the file configured via configure_package_config_file(), so for proper handling of components in Config.cmake files users can simply call check_required_components(PackageName) and this will do the right thing. Alex
| * | | | FPHSA(): add HANDLE_COMPONENTS optionAlex Neundorf2012-03-192-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if the HANDLE_COMPONENTS is used, FPHSA() now also checks all required COMPONENTS, i.e. all elements from <name>_FIND_COMPONENTS for which <name>_FIND_REQUIRED_<comp> is true, and sets <name>_FOUND only to true if all have been found. As discussed on cmake-developers. Alex
* | | | | 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