summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Ensure CUDA bin2c output is null terminatedRobert Maynard2024-10-181-1/+1
| | | | | | | | The default behavior of bin2c is to create binary arrays that have no null termination. So to use it as a C array we need to explicitly tell it to create valid null terminated strings. This will safely allow us to run PTX tests across all CUDA drivers.
* Tests: Simplify CUDA kernels avoid crash with nvidia driver 550Robert Maynard2024-10-181-7/+0
| | | | | Avoid having two identical kernels in PTX. We don't need a second kernel anyway.
* 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
| * Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9Brad King2024-07-291-1/+1
| |
* | Tests/RunCMake/execute_process: Check STARTUPINFOW reserved membersBrad King2024-05-244-0/+34
| | | | | | | | | | | | | | | | Verify that `execute_process` launches processes on Windows such that `GetStartupInfoW` in the child does not populate `STARTUPINFOW` members reserved for the MSVC C run-time. Issue: #25996
* | Merge topic 'cmp0037-message' into release-3.29Brad King2024-05-159-0/+40
|\ \ | |/ | | | | | | | | | | | | | | c773d5b436 CMP0037: Restore diagnostic message for invalid ALIAS target names Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9519
| * CMP0037: Restore diagnostic message for invalid ALIAS target namesBrad King2024-05-149-0/+40
| | | | | | | | | | | | | | | | | | Refactoring in commit 7a4c02cb38 (cmGlobalGenerator: factor out messaging for CMP0037, 2023-09-24, v3.28.0-rc1~39^2~7) incorrectly switched to reporting the aliased target name instead of the invalid name of the alias itself. Fixes: #25979
| * Merge topic 'cxxmodules-build-export-different-directory' into release-3.28Brad King2024-05-0310-0/+149
| |\ | | | | | | | | | | | | | | | | | | ec35251510 cmDyndepCollation: look at all `export(TARGETS)` calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9485
| * \ Merge topic 'export-name-safe-name' into release-3.28Brad King2024-05-017-0/+298
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 142a85f9c1 cxxmodules: use filesystem-safe export names in filenames 4452d41488 cmGeneratorTarget: add method to get a filesystem-safe export name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9474
* | \ \ Merge branch 'cxxmodules-build-export-different-directory-3.28' into ↵Ben Boeckel2024-05-0210-0/+149
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | cxxmodules-build-export-different-directory * cxxmodules-build-export-different-directory-3.28: cmDyndepCollation: look at all `export(TARGETS)` calls
| * | | cmDyndepCollation: look at all `export(TARGETS)` callsBen Boeckel2024-05-0210-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, only `export()` calls in the same directory were noticed. Also add a test that exports in a different directory than the target itself resides in. Fixes: #25813
* | | | Merge topic 'export-name-safe-name' into release-3.29Brad King2024-05-017-0/+298
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | 142a85f9c1 cxxmodules: use filesystem-safe export names in filenames 4452d41488 cmGeneratorTarget: add method to get a filesystem-safe export name Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9474
| * | | cxxmodules: use filesystem-safe export names in filenamesBen Boeckel2024-04-307-0/+298
| |/ / | | | | | | | | | | | | | | | Also add tests. Fixes: #25828
* | | Merge topic 'exported-modules-with-headers' into release-3.29Brad King2024-04-3010-0/+184
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | 2041f7c9bf cmGeneratorTarget: add the original target as a COMPILE_ONLY link 051c2110c8 Tests/CXXModules: test exporting modules which include headers Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9469
| * | Tests/CXXModules: test exporting modules which include headersBen Boeckel2024-04-2710-0/+184
| |/ | | | | | | | | Test that headers that are part of the same target are available to modules in the target itself.
* | generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIRCraig Scott2024-04-193-0/+60
| | | | | | | | Issue: #25827
* | Tests/RunCMake/CMakePackage: Define variable closer to where it is usedBrad King2024-04-151-3/+4
| |
* | CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variableBrad King2024-04-115-102/+0
| | | | | | | | | | | | | | | | | | | | | | Revert commit 6ddf8712cd (CMakePackageConfigHelpers: Use unique variable name for pkg prefix, 2024-03-30, v3.29.1~8^2). It regressed existing projects that rely on the undocumented `PACKAGE_PREFIX_DIR` variable in package configuration files generated by `CMakePackageConfigHelpers`. Fixes: #25873 Fixes: #25885 Issue: #25827
* | Fix regression on reconfigure with unnormalized -DCMAKE_<LANG>_COMPILER=Brad King2024-04-103-0/+15
| | | | | | | | | | | | | | | | | | | | Since commit 3f2a5971c0 (Modules: CMAKE_*_COMPILER convert path to cmake path, 2023-12-02, v3.29.0-rc1~292^2) we normalize the path to the compiler. Update our logic that checks whether the compiler has changed to account for path normalization. Fixes: #25883 Issue: #25456
* | Tests/RunCMake/CompilerChange: Simplify test casesBrad King2024-04-107-39/+20
| |
* | Swift: Ninja: Remove module dependency for executablesEvan Wilde2024-04-091-0/+3
| | | | | | | | | | | | | | We shouldn't include the swiftmodule in the ninja dependency graph unless that target emits a swiftmodule. Fixes: #25869
* | Swift: Add CMAKE_LINKER_TYPE supportEvan Wilde2024-04-026-5/+42
| | | | | | | | | | | | Extend commit 96a953b1ed (Add options to specify linker tool, 2023-09-27, v3.29.0-rc1~577^2) with the `CMAKE_Swift_USING_LINKER_*` variables needed to support `CMAKE_LINKER_TYPE` for Swift.
* | ctest: Restore enforcement of RESOURCE_LOCK test propertyBrad King2024-04-017-74/+21
| | | | | | | | | | | | | | | | | | Refactoring in commit 5ff0b4ed57 (cmCTestMultiProcessHandler: Consolidate test readiness checks, 2023-10-20, v3.29.0-rc1~378^2~4) accidentally broke `RESOURCE_LOCK`. Fix it and replace the previous test with one that would have caught this. Fixes: #25843
* | CMakePackageConfigHelpers: Use unique variable name for pkg prefixCraig Scott2024-03-315-0/+102
| | | | | | | | Fixes: #25827
* | try_compile(): Include languages with _ or - when passing linker varsCraig Scott2024-03-224-0/+40
| | | | | | | | Fixes: #25809
* | Merge topic 'ninja-fortran-include' into release-3.29Brad King2024-03-204-8/+15
|\ \ | |/ | | | | | | | | | | | | 36dc8d6d50 Ninja: Fix Fortran module deps in files INCLUDEd by preprocessed sources Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9351
| * Ninja: Fix Fortran module deps in files INCLUDEd by preprocessed sourcesBrad King2024-03-194-8/+15
| | | | | | | | | | | | | | If a preprocessed source also uses the Fortran `INCLUDE` directive, search the original source file's directory. Fixes: #25792
* | generate_apple_*_selection_file: Add option to capture errorsBrad King2024-03-1911-0/+75
| | | | | | | | | | | | | | Add an option to capture error messages in a variable instead of terminating with a fatal error. Fixes: #25778
* | generate_apple_architecture_selection_file: Document $(ARCHS_STANDARD) supportBrad King2024-03-194-1/+6
| | | | | | | | | | | | Also add a test case. Fixes: #25780
* | generate_apple_architecture_selection_file: Simplify signatureBrad King2024-03-191-3/+3
| | | | | | | | | | | | | | Allow callers to pass multiple values to list-valued arguments instead of putting the entire list in a single quoted argument. Fixes: #25779
* | Tests/RunCMake/CMakePackage: Fix Apple architecture selection argument orderBrad King2024-03-191-1/+4
| | | | | | | | | | Call `generate_apple_architecture_selection_file` with matching order in `SINGLE_ARCHITECTURES` and `SINGLE_ARCHITECTURE_INCLUDE_FILES`.
* | Tests/RunCMake/CMakePackage: Add architecture i386 for macOS on Xcode < 10Brad King2024-03-191-4/+10
| | | | | | | | Use every architecture each version of Xcode has in `$(ARCHS_STANDARD)`.
* | Merge topic 'Apple-TBD-in-subdirecory' into release-3.29Brad King2024-03-142-3/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | bcc26ce465 Apple Text Based Stubs: should be usage in subdirectories Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9341
| * | Apple Text Based Stubs: should be usage in subdirectoriesMarc Chevrier2024-03-142-3/+14
| | | | | | | | | | | | Fixes: #25765
* | | Merge topic 'autogen-makefile-depfile' into release-3.29Brad King2024-03-146-1/+28
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | d2d1763f88 cmQtAutoGenInitializer: De-duplicate autogen/timestamp target depend logic 6193d15556 Autogen: Restore target-ordering dependencies in Makefiles with DEPFILE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9340
| * | Autogen: Restore target-ordering dependencies in Makefiles with DEPFILEBrad King2024-03-146-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit aebfbcaa46 (AutoGen: Use depfiles for the XXX_autogen ninja targets, 2020-01-14, v3.17.0-rc1~58^2) the `_autogen_timestamp_deps` target was given target ordering dependencies through its custom command rather than direct target dependencies as on the `_autogen` target. Then commit 895fa3433f (cmQtAutoGenInitializer: support IMPLIB-only imported targets, 2021-09-23, v3.22.0-rc1~80^2) converted some target-level dependencies into file-level dependencies on the custom command. This only works with a monolithic build graph like Ninja. Since commit ebc9e448b3 (Autogen: Add depfile support for Makefiles, 2023-09-07, v3.28.0-rc1~101^2~1) we use the `_autogen_timestamp_deps` target in Makefile generators too. This exposed the missing target ordering dependency. Fixes: #25766
* | | Merge topic 'LINKER_TYPE-mold-support' into release-3.29Brad King2024-03-148-4/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | 801ae06952 LINKER_TYPE: Support MOLD only on GCC versions that support it 939ac5287e LINKER_TYPE: fix spelling error in message 922883782b LINKER_TYPE: Document that linker tool should be in the PATH Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9334
| * | LINKER_TYPE: Support MOLD only on GCC versions that support itMarc Chevrier2024-03-138-4/+13
| | | | | | | | | | | | Fixes: #25748
* | | Merge topic 'export-find_dependency-calls' into release-3.29Brad King2024-03-1319-0/+50
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3a739d4dcb EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gate Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9336
| * | | EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gateBrad King2024-03-1219-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some design concerns have been raised after trying the 3.29 release candidates. Avoid committing to a stable public interface for now. Issue: #25767
* | | | Merge branch 'backport-3.28-ci-xcode-15.3'Brad King2024-03-123-3/+10
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | Tests: Update RunCMake.CheckCompilerFlag for Xcode 15.3Brad King2024-03-121-2/+2
| | | | | | | | | | | | | | | | | | Xcode passes a new `-use-frontend-parseable-output` flag to Swift that conflicts with our `-parseable-output` flag. Use a different flag for the test case.
| * | Tests: Update RunCMake.CompileFeatures for Xcode 15.3Brad King2024-03-122-1/+8
| | | | | | | | | | | | Xcode no longer puts an extra backslash in its `-std=` flags.
* | | install(EXPORT): Drop REQUIRED from exported find_dependency callsBrad King2024-03-112-5/+5
| |/ |/| | | | | | | | | | | | | | | | | In commit c6e6861e63 (install(EXPORT): Export find_dependency() calls, 2023-11-07, v3.29.0-rc1~439^2~1) we made the calls `REQUIRED`. However, a dependency is only required if the dependent package is required. `find_dependency` already forwards the `REQUIRED` mark, and also already marks the dependent package as not found if the dependency is missing. Fixes: #25756
* | Merge topic 'ctest-j-default' into release-3.29Brad King2024-03-1136-128/+241
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5de1e21659 ctest: Allow passing -j without value to choose a contextual default bbcbcff7d9 cmCTestMultiProcessHandler: Modernize member initialization 7457b474a1 Tests: Remove unnecessary parallel suppression from CTestCoverageCollectGCOV ae69801d96 Tests: Convert CTestTestSkipReturnCode to RunCMake.ctest_test case 30dda49416 Tests: Convert CTestTestSerialOrder to RunCMake.ctest_test case Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9315
| * | ctest: Allow passing -j without value to choose a contextual defaultBrad King2024-03-1028-4/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under job server integration, added by commit 80fe56c481 (ctest: Add support for running under a make job server on POSIX systems, 2023-11-15, v3.29.0-rc1~324^2), use a very high default so that parallelism is effectively limited only by available job server tokens. Otherwise, choose a default limit based on the number of processors. Also allow passing `0` to specify unbounded parallelism. Fixes: #25739
| * | Tests: Remove unnecessary parallel suppression from CTestCoverageCollectGCOVBrad King2024-03-101-1/+0
| | | | | | | | | | | | | | | | | | This hasn't been necessary since commit ab7eda2591 (Tests: Remove unnecessary pass regex on CTestCoverageCollectGCOV, 2020-04-29, v3.18.0-rc1~239^2~2).
| * | Tests: Convert CTestTestSkipReturnCode to RunCMake.ctest_test caseBrad King2024-03-106-48/+15
| | |
| * | Tests: Convert CTestTestSerialOrder to RunCMake.ctest_test caseBrad King2024-03-105-75/+31
| | |