summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'ctest-repeat-until-pass'Brad King2019-11-0123-4/+156
|\ | | | | | | | | | | | | | | | | 39ac8b4eb5 ctest: Add --repeat-after-timeout option 80c2c9d14c ctest: Add --repeat-until-pass option 0187e52244 cmCTestRunTest: Use inline member initializers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3960
| * ctest: Add --repeat-after-timeout optionBrad King2019-10-2911-0/+75
| | | | | | | | | | Add an option to re-run tests if they timeout. This will help tolerate sporadic timeouts on busy machines.
| * ctest: Add --repeat-until-pass optionBrad King2019-10-2913-4/+81
| | | | | | | | | | | | | | | | | | Add an option to re-run tests if they fail. This will help tolerate sporadic failures. Issue: #17010 Co-Author: Ben Boeckel <ben.boeckel@kitware.com> Co-Author: Chuck Atkins <chuck.atkins@kitware.com>
* | Merge topic 'scanbuild-fixes'Brad King2019-10-301-0/+2
|\ \ | |/ |/| | | | | | | | | | | fe5ba71bd0 Tests: Suppress clang scan-build warning in UTF8 test 3cf71e8c7d cmLocalGenerator: Drop unused initializer in AddUnityBuild Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3958
| * Tests: Suppress clang scan-build warning in UTF8 testBrad King2019-10-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Clang scan-build 7 reports: ``` Tests/CMakeLib/testUTF8.cxx:12:3: warning: 4th function call argument is an uninitialized value printf("[0x%02X,0x%02X,0x%02X,0x%02X]", static_cast<int>(d[0]), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` Manual tracing of all call sites shows that all values are initialized.
* | FindPackageModeMakefileTest: macOS needs isysroot flagCraig Scott2019-10-282-1/+10
|/ | | | | | | macOS/Xcode no longer populate /usr/include. Building with the compiler directly instead of using /usr/bin/c++ can result in missing headers without the -isysroot flag. Relates: #19885
* Merge topic 'framework-tests-multiarch-old-macos'Brad King2019-10-283-5/+3
|\ | | | | | | | | | | | | | | 3e30c4cc1f Tests: Match file command output for older macOS (Framework test) 89ad3b3959 Tests: Prevent CMP0012 policy warnings in Framework test output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3954
| * Tests: Match file command output for older macOS (Framework test)Craig Scott2019-10-272-4/+2
| |
| * Tests: Prevent CMP0012 policy warnings in Framework test outputCraig Scott2019-10-271-1/+1
| |
* | Merge topic 'ExternalProject-git-no-recurse'Brad King2019-10-282-0/+60
|\ \ | | | | | | | | | | | | | | | | | | 5bc6230741 ExternalProject: Option to turn off recursive update of git submodules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3923
| * | ExternalProject: Option to turn off recursive update of git submodulesCharis Marangos2019-10-242-0/+60
| | | | | | | | | | | | Fixes: #19832
* | | Merge topic 'project-version-buffer-overflow'Craig Scott2019-10-282-0/+33
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82cdb26c93 project: Fix potential buffer write-past-end for version components 15a0b0d046 Help: math() expressions must be representable as signed 64-bit Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3948
| * | | project: Fix potential buffer write-past-end for version componentsCraig Scott2019-10-262-0/+33
| | |/ | |/| | | | | | | This fixes two errors: not accounting for the trailing null and a misunderstanding of what std::numeric_limits::digits10 means.
| * | Merge branch 'pch-makefile-depends' into release-3.16Brad King2019-10-174-4/+29
| |\ \ | | | | | | | | | | | | Merge-request: !3928
| * \ \ Merge branch 'export-target-lang-name' into release-3.16Brad King2019-10-171-0/+5
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !3927
| * \ \ \ Merge branch 'doc-pch-compile-language' into release-3.16Brad King2019-10-162-1/+18
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !3925
| * \ \ \ \ Merge branch 'cmake-initial-cache-relative' into release-3.16Brad King2019-10-1412-10/+38
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !3912
| * \ \ \ \ \ Merge branch 'objc-c++flags' into release-3.16Brad King2019-10-113-0/+28
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !3904
* | \ \ \ \ \ \ Merge topic 'project-include-before'Brad King2019-10-213-0/+20
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f7acc1266c project: Add variable CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFORE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3936
| * | | | | | | | project: Add variable CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFOREDeniz Bahadir2019-10-183-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up commit 0761186949 (project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE, 2019-03-28, v3.15.0-rc1~294^2) with a project-specific variant. This variable will be used similar to the already existing `CMAKE_PROJECT_INCLUDE_BEFORE` and `CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE` variables. Fixes: #19854
* | | | | | | | | Merge topic 'export-compile-commands-environment-variable'Brad King2019-10-216-0/+35
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8065a686dd Initialize CMAKE_EXPORT_COMPILE_COMMANDS from envvar of the same name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3914
| * | | | | | | | | Initialize CMAKE_EXPORT_COMPILE_COMMANDS from envvar of the same nameDaan De Meyer2019-10-186-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #18386
* | | | | | | | | | Merge topic 'FindOpenMP-include-dir'Brad King2019-10-211-0/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 409891baf7 FindOpenMP: Allow try_compile() to find omp.h for AppleClang Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3916
| * | | | | | | | | | FindOpenMP: Allow try_compile() to find omp.h for AppleClangCraig Scott2019-10-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #18098 #18470 #18520
* | | | | | | | | | | Merge topic 'vs-per-config-sources'Brad King2019-10-212-3/+7
|\ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 55a0bebdd3 VS: Add support for per-config sources bcaecf6bcd Teach check for single-language targets to consider all configurations 324988a6b1 cmGeneratorTarget: Add GetAllConfigCompileLanguages method fd2c9fac10 cmGeneratorTarget: Return non-const sources from GetAllConfigSources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3882
| * | | | | | | | | | VS: Add support for per-config sourcesBrad King2019-10-172-3/+7
| | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 97cc29c766 (VS: Teach generators how to mark per-config source files, 2017-04-10, v3.9.0-rc1~268^2~2) the VS generators have known how to generate per-config sources. We've now converted most other code paths to support per-config sources, so drop the check that disallows it. This leaves only per-config support for precompiled headers and unity build transformations, but those are optional features that can be addressed later. Fixes: #18233 Issue: #19789
* | | | | | | | | | Merge topic 'variable_watch-modernize'Brad King2019-10-186-18/+18
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4bedf6c9fa Refactor: Modernize `cmVariableWatchCommand` a little Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3892
| * | | | | | | | | | Refactor: Modernize `cmVariableWatchCommand` a littleAlex Turbov2019-10-176-18/+18
| | | | | | | | | | |
* | | | | | | | | | | Merge topic 'vs-vctargetspath'Brad King2019-10-188-39/+106
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e7d57bc3c3 VS: Propagate CMAKE_VS_GLOBALS into custom targets 45b4b4b930 VS: Propagate CMAKE_VS_GLOBALS into compiler id projects 548e9051a4 VS: Add support to override VCTargetsPath through toolset 99e83d4235 cmake: Teach --build mode to load CMAKE_GENERATOR_TOOLSET Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3817
| * | | | | | | | | | | VS: Propagate CMAKE_VS_GLOBALS into compiler id projectsAlexander Boczar2019-10-172-39/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: #19708
| * | | | | | | | | | | VS: Add support to override VCTargetsPath through toolsetAlexander Boczar2019-10-156-0/+45
| | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19708
* | | | | | | | | | | 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.