summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | cmake_parse_arguments: Set variable if empty string given after keywordCraig Scott2024-08-223-1/+59
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a single-value keyword is followed by an empty string, the command unsets the variable for that keyword instead of setting it to the empty string. This is inconsistent and unexpected. Add policy CMP0174 which ensures the variable for a single-value keyword is always set when any value is given, not just for a non-empty value. The new CMP0174 policy only affects the PARSE_ARGV form of cmake_parse_arguments. The older form silently drops all empty string arguments before processing the argument list. Fixes: #25972
* | | | | Merge topic 'improve-CMakeLibTests'Brad King2024-08-2613-15/+71
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cc20644c71 testCommon.h: Introduce `ASSERT_EQUAL(actual, expected)` macro Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9752
| * | | | | testCommon.h: Introduce `ASSERT_EQUAL(actual, expected)` macroAlex Turbov2024-08-2013-15/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Performs `==` on given arguments and print an error if they are not equal also printing their values. Both arguments must be printable to `std::ostream`!
* | | | | | Merge topic 'fileapi-config-dir'Brad King2024-08-268-3/+20
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1df94443fe fileapi: Add support for user-wide queries a991a5019b Tests: Isolate test suite from user-wide configuration 320b81847d Tests: Remove unused cvs anonymous access credentials Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9744
| * | | | | fileapi: Add support for user-wide queriesMartin Duffy2024-08-226-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19168
| * | | | | Tests: Isolate test suite from user-wide configurationBrad King2024-08-222-2/+7
| | | | | |
| * | | | | Tests: Remove unused cvs anonymous access credentialsBrad King2024-08-221-1/+0
| | | | | |
* | | | | | Merge topic 'swift-test-windows'Brad King2024-08-201-0/+12
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0b0c70d1bf Swift: Enable SwiftMixLib Test on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9746
| * | | | | | Swift: Enable SwiftMixLib Test on WindowsEvan Wilde2024-08-191-0/+12
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SwiftMixLib test was failing on Windows due to a missing link against swiftCore. On macOS and Linux, there are mechanisms for extracting the libraries that the object depends on and passing that to the linker so that the library dependencies don't need to be listed explicitly. The Windows Swift toolchain does not have this mechanism. In the future, it would likely make sense for CMake to pass some of the implicitly required libraries for linking Swift via `CMAKE_Swift_IMPLICIT_LINK_LIBRARIES`. Unlike the normal mechanisms though, these libraries would need to be passed even when the link language is Swift. For now though, we should get the test up and running again. Fixes: #25573
* | | | | | Merge topic 'fix-dependencies-searching'Brad King2024-08-204-1/+87
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4d4e008e69 file(GET_RUNTIME_DEPENDENCIES): Fix resolution of repeated ELF dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9704
| * | | | | | file(GET_RUNTIME_DEPENDENCIES): Fix resolution of repeated ELF dependenciesAliaksandr Averchanka2024-08-194-1/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a library file name is encountered multiple times, reuse the result from the first time. This more closely matches the behavior of the dynamic loader on Linux. Fixes: #24621
* | | | | | | Merge topic 'cpack-nsis-reserved-component-names'Brad King2024-08-202-0/+41
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | / / | | |_|_|/ / | |/| | | | | | | | | | | | | | | | b1f956529a CPack/NSIS: Fix matching of reserved component names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9757
| * | | | | CPack/NSIS: Fix matching of reserved component namesK. R. Walker2024-08-192-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Console" unexpectedly matches the reserved name regex. This revealed that `cmCPackNSISGenerator::CreateComponentDescription()` needs to use the name returned by `GetSanitizedDirOrFileName()` for the component file glob. Fix the change from commit a1af593291 (CPack: Support arbitrary component name when packaging, 2024-05-01, v3.30.0-rc1~151^2~1) to address these issues and add related checks to the `CPackNSISGenerator` test case. Issue: #23612
| * | | | | Merge topic 'swift-install-names' into release-3.30Brad King2024-08-024-3/+38
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8669176576 Swift: Fix INSTALL_NAME_DIR under CMP0157 NEW behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9692
* | | | | | Merge topic 'improve-cmJSONHelpers'Brad King2024-08-192-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 17de44e99b cmJSONHelpers.h: Add some empty lines to split code blocks 0b334e5bfb cmJSONHelpers.h: Add generic predicate checking helper 503a73b183 cmJSONHelpers.h: Use `map::emplace()` instead of `operator[]` e7dcd51a61 cmJSONHelpers.h: Remove useless `cmStrCat()` call 5096ea7a92 cmJSONHelpers.h: Optimize of adding `Member`s to a vector f4a2070731 cmJSONHelpers.h: Remove redundant `;` 23be530275 cmJSONHelpers.h: Move variable declaation close to first usage Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Martin Duffy <martin.duffy@kitware.com> Merge-request: !9731
| * | | | | | cmJSONHelpers.h: Add generic predicate checking helperAlex Turbov2024-08-152-2/+2
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And use it in the `cmCMakePresetsGraphReadJSON.cxx` to check presets schema version in the declarative way. Co-authored-by: Martin Duffy <martin.duffy@kitware.com>
* | | | | | Merge topic 'imprve-CMakeLibTests'Brad King2024-08-1922-430/+142
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c553be501d CMakeLibTests: Use `runTests` 0146fca12d CMakeLibTests: include `testCommon.h` for `ASSERT_TRUE` 3d9c018f31 CMakeLibTests: Generate `testConfig.h` with source/build paths defined Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9724
| * | | | | | CMakeLibTests: Use `runTests`Alex Turbov2024-08-1313-372/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, improve it a little.
| * | | | | | CMakeLibTests: include `testCommon.h` for `ASSERT_TRUE`Alex Turbov2024-08-135-39/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And remove duplicate definitions.
| * | | | | | CMakeLibTests: Generate `testConfig.h` with source/build paths definedAlex Turbov2024-08-136-19/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And use it in all tests that had their particular files before.
* | | | | | | CMakeFindFrameworks: Deprecate the module subject to policy CMP0173Craig Scott2024-08-1611-0/+72
| |/ / / / / |/| | | | | | | | | | | | | | | | | Fixes: #20446
* | | | | | Merge topic 'cuda_unity'Brad King2024-08-1314-1/+210
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b90ae10dda Add support for unity builds with CUDA sources c99ff40b21 Unity: refactor unity extension logic to single function Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9655
| * | | | | | Add support for unity builds with CUDA sourcesRobert Maynard2024-08-0214-1/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #22750
* | | | | | | Merge topic 'lfortran-link-info'Brad King2024-08-137-4/+62
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 509e8be784 LFortran: Add support for mixed-language linking with Fortran cb6e8698ff CMakeParseImplicitLinkInfo: Refactor conditions to detect specific compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9700
| * | | | | | LFortran: Add support for mixed-language linking with FortranBrad King2024-08-027-4/+62
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse implicit link information for this compiler to support mixed-language linking. This was missed by commit 98d0f918ba (LFortran: Add support for this compiler, 2024-01-25). Also activate mixed-language test cases that would have caught this. Fixes: #26145
* | | | | | find_package(): Debug re-rooting behaviorKyle Edwards2024-08-025-0/+69
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | find_package()'s debug mode provides information about which prefixes are searched, but not which roots are prepended to each prefix. Display this information if debugging is enabled.
* | | | | Merge topic 'swift-install-names'Brad King2024-08-024-3/+38
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 8669176576 Swift: Fix INSTALL_NAME_DIR under CMP0157 NEW behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9692
| * | | | Swift: Fix INSTALL_NAME_DIR under CMP0157 NEW behaviorEvan Wilde2024-08-014-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting `CMAKE_INSTALL_NAME_DIR` or the `INSTALL_NAME_DIR` on Swift targets had no effect when CMP0157 was set to `NEW`. This was a result of missing the `<TARGET_INSTALLNAME_DIR>` before the `<TARGET_SONAME>`. Fix that and add a test to verify that the install name directory is included in the install name. Fixes: #26175
| * | | | Merge topic 'backport-test-curl-output' into release-3.29Brad King2024-07-291-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 13fb20f4d3 Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9690
* | \ \ \ \ Merge topic 'presets-graphviz'Brad King2024-08-0112-0/+44
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31c0e0de49 presets: Add graphviz support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9691
| * | | | | | presets: Add graphviz supportAliaksandr Averchanka2024-07-3012-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes: #22164
* | | | | | | Merge topic 'test-xcode-command-line-tools'Brad King2024-08-011-0/+1
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | / | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | 369052b5d8 Tests: Restore suppression of xcodebuild error with Xcode Command-Line Tools Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9696
| * | | | | Tests: Restore suppression of xcodebuild error with Xcode Command-Line ToolsBrad King2024-07-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 40fa2c1c90 (Tests: Cleanup CMake_TEST_XCODE_VERSION code, 2024-04-29, v3.30.0-rc1~183^2) we accidentally stopped capturing the stderr from `xcodebuild`, causing it to appear in cmake's output. The error is incidental and tolerated, so do not let the user see it.
| * | | | | Merge topic 'backport-test-curl-output' into release-3.30Brad King2024-07-291-1/+1
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 13fb20f4d3 Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9690
| | * | | | Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9Brad King2024-07-291-1/+1
| | | | | |
* | | | | | PkgC: Add cmake_pkg_config(EXTRACT) commandVito Gamberini2024-07-2944-0/+641
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Wraps the llpkgc parser with cmPkgConfigParser * Adds various resolution and mangling code under cmPkgConfigResolver * Documents new command cmake_pkg_config(EXTRACT). Documentation is written with the assumption additional subcommands will be added soon. * Adds various tests for the above
* | | | | Merge topic 'install-parallel-manifest'Brad King2024-07-2616-84/+146
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9799491c7e install: Write manifest file in parallel install Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9673
| * | | | | install: Write manifest file in parallel installMartin Duffy2024-07-2516-84/+146
| | | | | | | | | | | | | | | | | | | | | | | | Updates the parallel install to generate the install_manifest.txt file.
* | | | | | Merge topic 'update-curl'Brad King2024-07-261-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 080d876a79 Utilities: Update hard-coded try_compile results for curl 8.9.0 c1a62dd104 curl: Set build options the way we need for CMake 54c5367320 Merge branch 'upstream-curl' into update-curl 8defd39611 curl 2024-07-24 (5040f7e9) 60bd6acfbf curl: Update script to get curl 8.9.0 7bfe120c07 Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9683
| * | | | | | Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9Brad King2024-07-251-1/+1
| | | | | | |
* | | | | | | Tests: Removed unused LABELS on CMake's own testsBrad King2024-07-243-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 44ad3f0b7f (ctest: Support multiple -L and -LE options to mean "AND", 2021-03-20, v3.21.0-rc1~424^2) we added several labels to CMake's own tests, perhaps as a way to demonstrate the change made by the commit. However, they have not been maintained or added to other tests they cover. Since commit 49e9f817de (ctest: Display test labels in failure summary, 2024-06-14) the labels are displayed next to failed test names, making them more visible. Remove these unnecessary labels.
* | | | | | | Tests: Move ctest --print-labels case into RunCMake.CTestCommandLineBrad King2024-07-243-5/+20
|/ / / / / /
* | | | | | Merge topic 'system-include-cache'Brad King2024-07-242-52/+59
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb978f001d GeneratorTarget: Fix missing system include cache key 7d8d239574 GeneratorTarget: Factor out AddSystemIncludeCacheKey() Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9681
| * | | | | | GeneratorTarget: Fix missing system include cache keyOrkun Tokdemir2024-07-232-52/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When 033dc7ee2f02b0ebdfd1bc4edbcb24d1fc8c4152 introduced `AddSystemIncludeDirectory()`, the function was not handling the situation which a system include cache key is not added properly like in `IsSystemIncludeDirectory()`. The error was not exposed when `AUTOMOC` is `ON` and `AUTOUIC` is `ON` because `GetIncludeDirectoriesImplicit()` inside `initMoc()` was triggering `IsSystemIncludeDirectory()`. This commit adds calling `AddSystemIncludeCacheKey()` inside `AddSystemIncludeDirectory()` when the system include cache key is not added before. Fixes: #26146
* | | | | | | Merge topic 'lfortran'Brad King2024-07-2410-7/+45
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aff38fed4f ci: Add nightly jobs for LFortran on Fedora a0def56402 ci: Add lfortran to Fedora base image 98d0f918ba LFortran: Add support for this compiler c6f81bdacf Tests/RunCMake: Pass Fortran compiler id into more tests fa1b748389 Tests/RunCMake/DependencyGraph: Specify Fortran function return type Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Acked-by: Matthew Thompson <fortran@gmail.com> Merge-request: !9188
| * | | | | | | LFortran: Add support for this compilerChristoph Junghans2024-07-227-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25419
| * | | | | | | Tests/RunCMake: Pass Fortran compiler id into more testsBrad King2024-07-223-5/+17
| | | | | | | |
| * | | | | | | Tests/RunCMake/DependencyGraph: Specify Fortran function return typeBrad King2024-07-221-0/+1
| | | | | | | |
* | | | | | | | Merge topic 'cmake-list-cached-variables'Brad King2024-07-246-0/+38
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c55239e286 cmake: Add flag to list cache entries matching a regex Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9644
| * | | | | | | cmake: Add flag to list cache entries matching a regexMin Hsu2024-07-236-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `-LR[A][H] <regex>` flag with similar functionality to `-L[A][H]`, but instead of listing all cached variables, it show only specific variables that match the name regex.