summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* CLI: Suppress the unused warning if the key value pair is cached.Stephen Kelly2013-06-043-11/+33
| | | | | | | | | | | | | | | It is common to specify a CMAKE_TOOLCHAIN_FILE and get a warning for using it despite it not being used. The WarnUnusedCliUnused test relies on the warning being emitted each time cmake is run on an existing build. That behavior is changed by this patch to warn only on the first invokation of CMake, and not on subsequent invokations (because the variable is in the cache with the same value). For that test, a clean target is added which clears the cache and cause the warning to be emitted each time. As the Ninja generator does not support the feature needed to test this, it is not tested with that generator.
* Merge topic 'ExternalData-no-re-stage'Brad King2013-05-283-0/+43
|\ | | | | | | | | c35961b ExternalData: Do not re-stage staged object files
| * ExternalData: Do not re-stage staged object filesBrad King2013-05-243-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | The ExternalData_LINK_CONTENT option tells ExternalData to convert real data files it finds into content links and to "stage" the original content in a ".ExternalData_<algo>_<hash>" file. However, after a data object has been staged it is possible that a user-provided pattern in the "REGEX:" option will later match the staged object file. We must not process staged object files even when a user pattern matches them. Fix the implementation to not match a staged object file as a normal data file for conversion. Extend the RunCMake.ExternalData test to cover this case.
* | Merge topic 'silence-vs6-warnings'Brad King2013-05-284-4/+18
|\ \ | | | | | | | | | | | | 015309f Tests/CompileDefinitions: Avoid spaces in defines on VS 6
| * | Tests/CompileDefinitions: Avoid spaces in defines on VS 6Stephen Kelly2013-05-244-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | The VS 6 IDE does not like spaces in definition values so CMake drops them and warns. The Tests/CompileDefinitions test C code that looks for the dropped definitions already knows to skip them, but CMake still warns. Silence the warnings by avoiding such values in the first place on VS 6.
* | | Merge topic 'genex-generate-file'Brad King2013-05-2820-0/+71
|\ \ \ | |/ / |/| | | | | | | | b983a58 file: Add GENERATE command to produce files at generate time
| * | file: Add GENERATE command to produce files at generate timeStephen Kelly2013-05-2420-0/+71
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | The idea is to write to a temp file which contains generator expressions, and at generate time, evaluate the generator expressions, and write the result to a file. Because executables on Windows are limited in the length of command line it is possible to use, it is common to write command line arguments to a file instead and specify the file as a source of arguments. This new FILE(GENERATE) subcommand allows the use of generator expressions to create such files so that they can be used with add_custom_command for example.
* | Merge topic 'geh-cleanup-identifiers'Brad King2013-05-245-0/+44
|\ \ | | | | | | | | | | | | 7e24997 GenerateExportHeader: Generate only C identifiers as defines
| * | GenerateExportHeader: Generate only C identifiers as definesStephen Kelly2013-05-245-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The variables in this module are used to configure a header file with defines whose name depends on the name of the target. As valid names of targets may be invalid for use as defines, convert the names of the defines used to C identifiers first. This is already done in C++ code for the DEFINE_SYMBOL property. This is not as simple as ensuring that the BASE_NAME is a C identifier, because most of the define names are configurable, and because use of a BASE_NAME which is not a C identifier, such as 4square can become a C identifier by specifying a prefix in the generate_export_header macro.
* | | Merge topic 'geh-add-missing-test'Brad King2013-05-241-0/+1
|\ \ \ | | | | | | | | | | | | | | | | 74f24b2 Tests/Module/GenerateExportHeader: Test exported free-function
| * | | Tests/Module/GenerateExportHeader: Test exported free-functionStephen Kelly2013-05-241-0/+1
| |/ /
* | | Merge topic 'geh-output-tweak'Brad King2013-05-241-2/+2
|\ \ \ | | | | | | | | | | | | | | | | bb412d0 GenerateExportHeader: Add newlines to separate the compiler output.
| * | | GenerateExportHeader: Add newlines to separate the compiler output.Stephen Kelly2013-05-231-2/+2
| |/ / | | | | | | | | | Make the error logs more readable.
* | | Merge topic 'language-generator-expressions'Brad King2013-05-248-0/+116
|\ \ \ | | | | | | | | | | | | | | | | 3241014 Add $<LINK_LANGUAGE> generator expression
| * | | Add $<LINK_LANGUAGE> generator expressionStephen Kelly2013-05-248-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | They can't be used when evaluating link libraries, but they can be used for include directories and compile definitions. Later they can be used for compile options.
* | | | Merge topic 'fix-include_directories-whitespace-handling'Brad King2013-05-241-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | a97240b Tests/IncludeDirectories: Avoid shared library with no symbols
| * | | | Tests/IncludeDirectories: Avoid shared library with no symbolsBrad King2013-05-231-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parent commit added a empty_entry_test shared library to the IncludeDirectories test. Some toolchains fail to create a shared library with no user-defined symbols, so provide a dummy symbol.
* | | | | Merge topic 'Memchecker-Mac-fix'Brad King2013-05-241-1/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | 0aed09f Tests: ignore GuardMalloc messages on all Apple build, not just XCode ones
| * | | | Tests: ignore GuardMalloc messages on all Apple build, not just XCode onesRolf Eike Beer2013-05-231-1/+1
| | | | |
* | | | | Merge topic 'join-genex'Brad King2013-05-224-3/+29
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | a7ba452 Add the JOIN generator expression. 96ec314 Make it possible for any genex to have arbitrary content at the end. bd638ee Rename the method determining if a genex accepts arbitrary content. dc742fe Extract the ProcessArbitraryContent method.
| * | | | Add the JOIN generator expression.Stephen Kelly2013-05-164-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This generator expression joins a list with a separator. The separator may contain arbitrary content, such as commas, which is ordinarily a delimiter in the generator expression syntax.
* | | | | Merge topic 'Memchecker-AIX-fix'Brad King2013-05-221-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 1a2a6ba Tests: fix build of dummy memtester on AIX
| * | | | | Tests: fix build of dummy memtester on AIXRolf Eike Beer2013-05-211-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Both <string> and <cmSystemTools.h> include <stdio.h> one or the other way. It looks like the CMake header adds a define that will cause another part of the system header to be used, resulting in conflicting definitions.
* | | | | Merge topic 'string-MAKE_C_IDENTIFIER-subcommand'Brad King2013-05-221-0/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0ab50ae string: Add MAKE_C_IDENTIFIER subcommand
| * | | | | string: Add MAKE_C_IDENTIFIER subcommandStephen Kelly2013-05-211-0/+6
| | |_|_|/ | |/| | |
* | | | | Merge topic 'add-EXPORT_NAME-property'Brad King2013-05-229-7/+65
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | b5d6f5d Add EXPORT_NAME property.
| * | | | Add EXPORT_NAME property.Stephen Kelly2013-05-189-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for example, the buildsystem to use names like 'boost_any' instead of the overly generic 'any', and still be able to generate IMPORTED targets called 'boost::any'.
* | | | | Merge topic 'fix-include_directories-whitespace-handling'Brad King2013-05-212-0/+12
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | 2f84dfe include_directories: Fix handling of empty or space-only entries
| * | | | include_directories: Fix handling of empty or space-only entriesStephen Kelly2013-05-212-0/+12
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a regression introduced in commit 0d46e9a0 (Store includes from the same include_directories call together., 2013-01-20). Reported at http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/46695/focus=7847
* | | | Merge topic 'fix-genex-comma-parse'Brad King2013-05-212-0/+20
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | 05bf972 Fix handling of commas in arbitrary content in genexes.
| * | | Fix handling of commas in arbitrary content in genexes.Stephen Kelly2013-05-162-0/+20
| |/ / | | | | | | | | | | | | As the comma is the parameter separator, it needs to be re-added when evaluating to reconstruct arbitrary content.
* | | Merge topic 'implicit-link-sanitize-regex'Brad King2013-05-211-0/+1
|\ \ \ | | | | | | | | | | | | | | | | ffda082 Sanitize linker name to parse implicit link line (#14154)
| * | | Sanitize linker name to parse implicit link line (#14154)Brad King2013-05-171-0/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | Teach CMakeParseImplicitLinkInfo to convert the CMAKE_LINKER file name to a regular expression that matches only the original name. Escape special characters like '+' so they are not treated as regex syntax. Extend the ImplicitLinkInfoTest to test handling of a CMAKE_LINKER value with many special characters.
* | | Merge topic 'error-on-exported-missing-include-dir'Brad King2013-05-214-0/+15
|\ \ \ | | | | | | | | | | | | | | | | eabefa8 Error on relative path in INCLUDE_DIRECTORIES target property.
| * | | Error on relative path in INCLUDE_DIRECTORIES target property.Stephen Kelly2013-05-214-0/+15
| | |/ | |/| | | | | | | | | | Add policy CMP0021 to preserve existing behavior in projects expecting it from earlier CMake versions.
* | | Merge topic 'vs-windows-forms'Brad King2013-05-217-0/+193
|\ \ \ | | | | | | | | | | | | | | | | 79ec786 VS: Add Windows Forms Support
| * | | VS: Add Windows Forms SupportJohn Farrier2013-05-167-0/+193
| |/ / | | | | | | | | | | | | | | | | | | Add support to maintain designer functionality for Visual Studio C++ Windows Forms projects. Also add a test project showing how to use the CMakeLists.txt file and, when successfully configured, will allow use of the designer for the included form.
* | | Merge topic 'test-moc-with-empty-COMPILE_DEFINITIONS'Brad King2013-05-213-0/+47
|\ \ \ | | | | | | | | | | | | | | | | 5c0f2a1 Test the use of target transitive compile definitions with moc.
| * | | Test the use of target transitive compile definitions with moc.Stephen Kelly2013-05-153-0/+47
| | | |
* | | | Merge topic 'Automoc-Qt4-Qt5'Brad King2013-05-215-15/+55
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | 6489015 Remove an endif() followed by an if() for the same condition. e7813b1 Add a test for Qt5Automoc 27fb96b Make the QtAutomoc test compile with either Qt 4 or Qt 5
| * | Remove an endif() followed by an if() for the same condition.Stephen Kelly2013-03-161-2/+1
| | |
| * | Add a test for Qt5AutomocStephen Kelly2013-03-163-8/+42
| | | | | | | | | | | | The same source is used as for the Qt4Automoc test.
| * | Make the QtAutomoc test compile with either Qt 4 or Qt 5Stephen Kelly2013-03-162-6/+13
| | |
* | | Merge topic 'MemChecker-improvements'Brad King2013-05-1634-369/+199
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 10bc50e Tests: ignore Guard Malloc messages in MemChecker tests 159c3e9 Tests: add a test with custom options passed to valgrind 61ddb93 CTest: fix comment documenting cmBoundsCheckerParser class cbdfcb0 Tests: add test for non-existent Valgrind suppression file 3b5b758 CTest: drop suppression for gcc 2.9.6 errors from default Valgrind flags 7752253 Tests: verify that memory checker output files are always present abf1df4 Tests: remove code duplication in CTestTestMemCheck tests f499422 CTest: remove unreachable code and CTestTestMemcheckUnknown test dde6306 CTest: use an output file for Valgrind (#14110) bcc0f3f Tests: create output files for all memory checkers
| * | | Tests: ignore Guard Malloc messages in MemChecker testsRolf Eike Beer2013-05-141-1/+7
| | | |
| * | | Tests: add a test with custom options passed to valgrindRolf Eike Beer2013-05-092-0/+15
| | | |
| * | | Tests: add test for non-existent Valgrind suppression fileRolf Eike Beer2013-05-091-1/+7
| | | |
| * | | Tests: verify that memory checker output files are always presentRolf Eike Beer2013-05-092-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | All supported memory checkers now write their output to a file. Use a dummy checker that ignores the given filename and ensure that the missing file is reported as error.
| * | | Tests: remove code duplication in CTestTestMemCheck testsRolf Eike Beer2013-05-0929-319/+55
| | | | | | | | | | | | | | | | | | | | | | | | The code for the tests is basically the same for all those subtests, so have one template and configure that for as many tests as possible to make it easier maintainable.
| * | | CTest: remove unreachable code and CTestTestMemcheckUnknown testRolf Eike Beer2013-05-094-36/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The memory checker command can't be quoted at this point, because previously it has been tested that the given file exists, which will fail if the name is quoted. The CTestTestMemcheckUnknown test aimed to test this case, has always failed to do so and serves no useful purpose therefore.