summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'pch-makefile-depends'Brad King2019-10-184-4/+29
|\ | | | | | | | | | | | | | | 797689ab35 PCH: Fix Makefile dependencies to rebuild PCH on header changes 0b10b3ed6b cmMakefileTargetGenerator: Inline WriteObjectBuildFile in only call site Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3928
| * PCH: Fix Makefile dependencies to rebuild PCH on header changesBrad King2019-10-174-4/+29
| | | | | | | | | | | | | | | | Teach the Makefile generator to scan the implicit dependencies of PCH creation. When a header named by `target_precompile_headers` changes the corresponding PCH must be rebuilt and all consumers recompiled. Fixes: #19830
* | Merge topic 'graphviz'Brad King2019-10-1742-0/+1004
|\ \ | | | | | | | | | | | | | | | | | | | | | 553658393c Graphviz: added test suite, fixes, enhancements Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: slodki <slodki_dom@poczta.onet.pl> Merge-request: !3766
| * | Graphviz: added test suite, fixes, enhancementsCorentin Plouet2019-10-0842-0/+1004
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added a fairly comprehensive test suite * Separated the graph traversal logic from the Graphviz generation code by introducing a new class, cmLinkItemsGraphVisitor{.h,cxx} * Made the graph traversal logic less ad-hoc by using existing methods in the GlobalGenerator; this fixed a few bugs * Added support for new target types: custom targets, object and unknown libraries * Improved support for ALIAS libraries by showing the alias(es) in the graph * Introduced new flags to control those new libraries (consistent with existing flags) * Updated the documentation * Removed useless setting to set graph type in dot file * Improved the node/edge shapes (nicer, more consistent) * Added a legend to the graph * Some refactoring and cleanup of the Graphviz generation code * Added test and fix for issue 19746
* | | Merge topic 'doc-pch-compile-language'Brad King2019-10-172-1/+18
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ac75886525 PCH: Document and test COMPILE_LANGUAGE genex for per-language header Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3925
| * | | PCH: Document and test COMPILE_LANGUAGE genex for per-language headerBrad King2019-10-162-1/+18
| | |/ | |/| | | | | | | Fixes: #19839
* | | Merge topic 'export-target-lang-name'Brad King2019-10-171-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0e436c573c install,export: Do not treat language names as target names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3927
| * | | install,export: Do not treat language names as target namesBrad King2019-10-161-0/+5
| |/ / | | | | | | | | | | | | | | | | | | When generating `IMPORTED_LINK_INTERFACE_LANGUAGES`, do not treat the entries as target names. Fixes: #19846
* | | VS: Add VS_DOTNET_DOCUMENTATION_FILE propertyCharly Mourglia2019-10-153-0/+35
| | | | | | | | | | | | | | | | | | | | | Add a `VS_DOTNET_DOCUMENTATION_FILE` target property to tell VS generators to add a `DocumentationFile` setting in `.csproj` files. Fixes: #19784
* | | Merge topic 'cmake-initial-cache-relative'Brad King2019-10-1512-10/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | c9d73b26b0 cmake: Fix relative path regression in -C Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3912
| * | | cmake: Fix relative path regression in -CPeter Waller2019-10-1412-10/+38
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 4ca0526f8a (cmake: Pass -S and -B into PreLoad.cmake and -C scripts, 2019-08-20, v3.16.0-rc1~195^2) the value of `CMAKE_SOURCE_DIR` is the source directory rather than the current working directory. This was correct on its own, but the place storing that value is also used as the base for relative paths specified on the command line. The latter should of course be relative to the current working directory. The fix is to switch to use a full path internally, unless a full path is already specified. Add tests for the behaviour of `-C` under these four circumstances: {with -S, without -S} x {full path, relative path} Fixes: #19827
* | | Merge topic 'feature/CMAKE_MESSAGE_CONTEXT'Craig Scott2019-10-1317-10/+93
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7cf79f4419 message: Support logging a context with each message 5bf85e2517 message: Add new CMAKE_MESSAGE_LOG_LEVEL variable aa59badd6f Tests: Message log level tests must fail on unwanted output 7c579f0a03 Help: Move CMAKE_MESSAGE_INDENT variable to correct section 4b021bd3e9 message: Minor refactor to make code less verbose Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3680
| * | | message: Support logging a context with each messageAlex Turbov2019-10-125-0/+63
| | | |
| * | | message: Add new CMAKE_MESSAGE_LOG_LEVEL variableAlex Turbov2019-10-123-0/+20
| | | |
| * | | Tests: Message log level tests must fail on unwanted outputCraig Scott2019-10-1210-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | The previous regular expressions were allowing output from lower log levels. The tests still pass after these changes but will now catch regressions (previously they would not have).
* | | | Merge topic 'objc-c++flags'Brad King2019-10-123-0/+28
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | 806e01d638 Objective-C: Do not treat Objective-C files as C++ files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3904
| * | | Objective-C: Do not treat Objective-C files as C++ filesCristian Adam2019-10-113-0/+28
| |/ / | | | | | | | | | | | | When both C and C++ langauges are enabled, the Objective-C files should be treated as C files and not as C++ files.
* | | Merge topic 'intel-19-compile-features'Brad King2019-10-112-1/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3fb146cb11 Tests: Update CompileFeatures test for Intel 19 with VS 2015 847e8bc98c Intel: Fix default C++ dialect detection on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3900
| * | | Tests: Update CompileFeatures test for Intel 19 with VS 2015Brad King2019-10-101-0/+6
| | | | | | | | | | | | | | | | | | | | Blacklist `cxx_relaxed_constexpr` for this case because the compiler does not advertise the support in this mode but compiles our example.
| * | | Intel: Fix default C++ dialect detection on WindowsBrad King2019-10-101-1/+11
| |/ / | | | | | | | | | | | | | | | For the Intel Compiler for Windows we have some subtle preprocessor checks in compiler feature detection to detect C++11 and C++14 modes. Use these when detecting the default C++ dialect too.
* | | Merge topic 'deprecate-policy-old'Brad King2019-10-103-1/+32
|\ \ \ | |/ / |/| | | | | | | | | | | | | | d00bb419ca Add deprecation warnings for policies CMP0069 and below Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3893
| * | Add deprecation warnings for policies CMP0069 and belowBrad King2019-10-103-1/+32
| |/ | | | | | | | | | | | | The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.9 and below to encourage projects to port away from setting policies to OLD.
* | CLI: Rename --loglevel to --log-level for naming consistencyCraig Scott2019-10-1015-40/+136
|/ | | | | | | Other multi-word command line options use hyphens to separate the words, so the --loglevel option introduced in CMake 3.15 was inconsistent in this regard. Rename it to --log-level but still support the original --loglevel name to preserve backward compatibility.
* Merge topic 'export-genex-under-prefix'Brad King2019-10-071-1/+4
|\ | | | | | | | | | | | | 3ded5b6da8 install,export: Fix export of a genex following $<INSTALL_PREFIX> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3886
| * install,export: Fix export of a genex following $<INSTALL_PREFIX>Brad King2019-10-041-1/+4
| | | | | | | | | | | | | | | | | | The relative path check added by commit 5838aba1aa (Export: Report error on relative include with genex., 2013-11-26, v3.0.0-rc1~285^2) was added one condition too early. If the value starts in `${_IMPORT_PREFIX}` (which comes from `$<INSTALL_PREFIX>`) then it is an absolute path. Fixes: #19791
* | Tests: Enable ConfigSources test on every configurationBrad King2019-10-049-23/+71
| | | | | | | | | | Revise the test itself to work in all configurations and verify that certain sources are only built by whatever configuration is tested.
* | PCH: Fix CMake test files indentationCristian Adam2019-10-034-20/+20
| |
* | PCH: Add multi-language PCH generation supportCristian Adam2019-10-033-0/+27
|/ | | | | | | | | If the target has C files, it will get a C PCH file. The same for C++ files. The linker language is no longer used to determine which language to use for PCH. Fixes: #19790
* Merge topic 'ctest-hardware-allocation'Brad King2019-10-0392-5/+2050
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | e9500271a3 Help: Add documentation for CTest hardware allocation d1f100a415 CTest: Add Json output for PROCESSES property b741ee820d Tests: Add test for CTest hardware allocation feature 3c8a5aad46 Tests: Write tests for cthwalloc helper tool 2d74e54661 Tests: Write cthwalloc helper tool e34de0691b CTest: Allocate hardware to tests aee0964851 CTest: Add bin-packing algorithm c494b2973a CTest: Add cmCTestHardwareAllocator class ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3858
| * CTest: Add Json output for PROCESSES propertyKyle Edwards2019-10-022-4/+62
| |
| * Tests: Add test for CTest hardware allocation featureKyle Edwards2019-10-0223-26/+204
| |
| * Tests: Write tests for cthwalloc helper toolKyle Edwards2019-10-0245-0/+284
| | | | | | | | | | This helper tool is sufficiently complex that it warrants having its own test suite.
| * Tests: Write cthwalloc helper toolKyle Edwards2019-10-022-0/+428
| |
| * CTest: Add bin-packing algorithmKyle Edwards2019-10-022-0/+301
| | | | | | | | | | | | | | This algorithm is used to determine whether or not a test can execute with the available resources. It uses a recursive largest- first algorithm to try to place the tests into their respective slots.
| * CTest: Add cmCTestHardwareAllocator classKyle Edwards2019-10-022-0/+427
| |
| * CTest: Add parser for hardware spec fileKyle Edwards2019-10-0220-0/+230
| |
| * CTest: Add lexer for PROCESSES propertyKyle Edwards2019-10-022-1/+140
| |
* | Merge topic 'FindJava-all-versions'Brad King2019-10-034-43/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | 3d02593986 FindJava: ensure all versions can be found 14ac253af7 FindJava: tests clean-up Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3871
| * | FindJava: tests clean-upMarc Chevrier2019-10-024-43/+27
| |/
* | Xcode: Restore CMAKE_XCODE_GENERATE_SCHEME for custom targetsBrad King2019-10-022-0/+12
|/ | | | | | | | | The target property introduced by commit 413b71485a (Xcode: Create Xcode schemes per target, 2019-03-11, v3.15.0-rc1~347^2) was accidentally not initialized by `CMAKE_XCODE_GENERATE_SCHEME` for custom targets. Fix it and update the test. Fixes: #19759
* Merge topic 'ninja-depend-shared-symlinks'Brad King2019-10-022-2/+27
|\ | | | | | | | | | | | | 4891f0f966 Ninja: Ensure shared library version symlinks are created for dependents Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3875
| * Ninja: Ensure shared library version symlinks are created for dependentsBrad King2019-10-012-2/+27
| | | | | | | | | | | | | | | | When linking to a shared library target that has version symlinks, add an order-only dependency on the build statement that creates the links. This ensures that the links exist for use at runtime. Fixes: #19774
* | Merge topic 'clang-format-normalize-headers-presentation'Brad King2019-10-02160-213/+299
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | ed98209ddc Revise include order using clang-format-6.0 185fe49f29 clang-format: Normalize headers presentation 42ef28b4f3 Remove unused uid_t/gid_t types on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Sebastian Holtermann <sebholt@web.de> Merge-request: !3851
| * | Revise include order using clang-format-6.0Kitware Robot2019-10-01150-209/+279
| | | | | | | | | | | | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
| * | clang-format: Normalize headers presentationMarc Chevrier2019-10-0110-4/+20
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By using clang-format directives 'IncludeBlocks' and 'IncludeCategories' headers are regrouped by categories: 1. "cmConfigure.h" which must be first 2. header matching current implementation file 3. standard language headers 4. CMake replacement ones 5. external headers (i.e. #include directive with '<' and '>') 6. Qt headers 7. cmsys/* headers 8. cm_* headers 9. CMake headers (i.e. starting with 'cm[A-Z]') 10. all other headers Fixes: #19674
* | Merge topic 'pch-compile-pdb'Brad King2019-10-024-0/+18
|\ \ | | | | | | | | | | | | | | | | | | e6e189e02b PCH: Report error when setting COMPILE_PDB_NAME property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3864
| * | PCH: Report error when setting COMPILE_PDB_NAME propertyCristian Adam2019-10-014-0/+18
| | | | | | | | | | | | | | | Reusable precompile headers require specific COMPILE_PDB_NAME property values. Report error if the user tries to set a different value.
* | | Merge topic 'test-iface-paths'Brad King2019-10-028-13/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 335236b0cb Tests: Shorten name RunCMake.IfacePaths_{INCLUDE_DIRECTORIES => INCDIRS} Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3873
| * | Tests: Shorten name RunCMake.IfacePaths_{INCLUDE_DIRECTORIES => INCDIRS}Brad King2019-10-018-13/+13
| |/ | | | | | | | | The original name was responsible for the longest path in our build tree. Use a shorter name to enable longer build tree names on Windows.
* | Tests: Cover EXCLUDE_FROM_ALL OFF on sub/sub/tgt in sub/allBrad King2019-09-304-0/+5
| | | | | | | | Issue: #19753