summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'backport-3.28-visionOS' into visionOSBrad King2024-02-093-46/+39
|\
| * Tests: Enable visionOS tests with Xcode 15.2Brad King2024-02-092-44/+37
| | | | | | | | | | | | Xcode 15.2 officially includes the visionOS SDKs. Fixes: #25266
| * Tests: Update RunCMake.XcodeProject-Device for visionOS in Xcode 15.1 betaBrad King2024-02-091-2/+2
| | | | | | | | The target identification macros changed since the 15.0 beta.
* | Merge topic 'FindVulkan-glslang-14' into release-3.29Brad King2024-02-082-3/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 49ebf18dd0 FindVulkan: Update detection for glslang 14.0.0 9cefa2f08d Tests/FindVulkan: Allow easy way to switch between VulkanSDK installations b832767940 Tests/FindVulkan: Update for glslang 12.3+ output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9225
| * | Tests/FindVulkan: Allow easy way to switch between VulkanSDK installationsJuan Ramos2024-02-071-1/+2
| | | | | | | | | | | | | | | Running with `--fresh` resets the cache each time. Which is valuable for switching between SDK installations.
| * | Tests/FindVulkan: Update for glslang 12.3+ outputJuan Ramos2024-02-071-2/+4
| | | | | | | | | | | | | | | | | | Since 12.3.0 glslangValidator has been renamed to glslang. This fix maintains backcompat with older SDKs
* | | Merge topic 'clang-cl-showIncludes' into release-3.29Brad King2024-02-088-5/+21
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 0d933fc0d9 Ninja: Update showIncludes prefix detection for clang-cl 18 a88acb0a41 Tests/RunCMake/Ninja: Rename showIncludes case for clang-cl <= 17 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9229
| * | Ninja: Update showIncludes prefix detection for clang-cl 18Martin Storsjö2024-02-075-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit LLVM/Clang commit `5523fefb01c2` ([clang][lex] Use preferred path separator in includer-relative lookup, 2023-09-08), part of the upcoming 18.x release, the output format of the showIncludes flag has changed, where it now prints paths with double backslashes: Note: including file: .\\foo.h Previously, we expected to see the path name in the form "./foo.h". Extend the regex to match a path name starting with `.\`, in addition to the existing matched patterns.
| * | Tests/RunCMake/Ninja: Rename showIncludes case for clang-cl <= 17Brad King2024-02-075-5/+5
| | | | | | | | | | | | Make room for a new case for clang-cl 18.
* | | Merge topic 'findopengl-glu-include-dir'Brad King2024-02-061-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aebebf72df FindOpenGL: Add support for a separate GLU include directory Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !9216
| * | | FindOpenGL: Add support for a separate GLU include directoryJordan Williams2024-02-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a OPENGL_GLU_INCLUDE_DIR cache variable for `GL/glu.h` and attach it as an include directory to the `OpenGL::GLU` target. Also add a `OPENGL_INCLUDE_DIRS` result variable to list all include directories. Account for the GLU header when deciding whether GLU is found. Fixes: #25627
* | | | Tests/RunCMake: Add copyright and license notices to test infrastructureBrad King2024-02-053-0/+9
| |_|/ |/| |
* | | Merge topic 'restore-pch-with-unity'Brad King2024-02-053-0/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 30829da506 Unity: Clarify source comments on unity build transformation 87bf1c6c33 Merge branch 'unity-after-compile-features' into restore-pch-with-unity df08c37a42 cmGlobalGenerator: Add unity/pch sources after computing compile features 004c3c3986 Tests: Add case covering PCH in a unity build Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9215
| * | Merge branch 'unity-after-compile-features' into restore-pch-with-unityBrad King2024-02-023-0/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace commit 76b5383123 (cmGlobalGenerator: add unity sources after computing target compile features, 2024-01-01, v3.28.2~17^2~1) with an alternative change. This merge commit resolves conflicts such that future `git blame` calls will follow the second parent for the relevant lines and pretend the replaced commit never existed. Fixes: #25650
| | * | Tests: Add case covering PCH in a unity buildBrad King2024-02-023-0/+4
| | | | | | | | | | | | | | | | Issue: #25650
* | | | Merge topic 'GoogleTest-test-launcher'Brad King2024-02-026-1/+184
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f875c479f5 GoogleTest: Honor TEST_LAUNCHER in gtest_discover_tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9174
| * | | | GoogleTest: Honor TEST_LAUNCHER in gtest_discover_testsRalf Habacker2024-01-316-1/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We run test executables to discover tests. Use the same launchers that are used to run the tests. We already handle `CROSSCOMPILING_EMULATOR`. Update the logic to account for the `TEST_LAUNCHER` property added by commit 1ec0372ed4 (add_test: Optionally use a launcher for tests running in-project targets, 2023-11-11), and for the `CROSSCOMPILING_EMULATOR` behavior change in commit ca5a300d7f (add_test: Honor CROSSCOMPILING_EMULATOR only when cross-compiling, 2023-11-02). Fixes: #25603 Co-authored-by: Brad King <brad.king@kitware.com> Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
* | | | | Merge topic 'update-curl'Brad King2024-02-021-1/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01a9325027 Tests: Match curl 8.6.0 error in RunCMake.ctest_submit FailDrop-https case e28ea90c1b Merge branch 'upstream-curl' into update-curl 851cc904a0 curl 2024-01-31 (5ce164e0) 692463d271 curl: Update script to get curl 8.6.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9207
| * | | | Tests: Match curl 8.6.0 error in RunCMake.ctest_submit FailDrop-https caseBrad King2024-02-011-1/+1
| | | | |
* | | | | Merge topic 'add_custom_command-target-alias'Brad King2024-02-011-1/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b07ec631d add_custom_command: Allow adding build event via ALIAS target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9201
| * | | | | add_custom_command: Allow adding build event via ALIAS targetChen Linxuan2024-02-011-1/+3
| | |/ / / | |/| | | | | | | | | | | | | Signed-off-by: Chen Linxuan <me@black-desk.cn>
* | | | | Tests: Enable Fortran part of CompileOptions test on single-config generatorsBrad King2024-01-311-3/+3
| | | | |
* | | | | Tests: Add "Fortran" test labelBrad King2024-01-314-11/+29
| |/ / / |/| | | | | | | | | | | With this, `ctest -L Fortran` will run only tests covering Fortran.
* | | | Merge topic 'env-cmake-install-prefix'Brad King2024-01-317-0/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 06af18b9db cmake: Allow CMAKE_INSTALL_PREFIX to be set by environment variable Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9200
| * | | | cmake: Allow CMAKE_INSTALL_PREFIX to be set by environment variableSilvio Traversaro2024-01-307-0/+23
| |/ / / | | | | | | | | | | | | Fixes: #25023
* | | | Merge topic 'xcode-pch-swift-cxx'Brad King2024-01-315-0/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 77c4d2f9a2 Xcode: Fix PCH support with Swift & C++ Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9203
| * | | | Xcode: Fix PCH support with Swift & C++Mikko Lehtonen2024-01-305-0/+30
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Previously, when a mixed language target ends up with `Swift` as the `LINKER_LANGUAGE`, the PCH file was not set for the target at all. Fixes: #21224
* | | | Merge topic 'test-define-prop'Brad King2024-01-302-0/+89
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 6c3311d53b Help: Document property redefinition semantics 7aacae4e0e Tests: Add unit tests for property redefinition Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9136
| * | | Tests: Add unit tests for property redefinitionFeRD (Frank Dana)2024-01-292-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From reading `Source/cmDefinePropertyCommand.cxx` and `Source/cmPropertyDefinition.cxx`, attempts to use `define_property()` to redefine an existing property will be silently ignored. Once a property is defined, it cannot be redefined. Add some unit tests to confirm this behavior of `define_property()` remains as expected based on the current implementation.
* | | | Merge topic 'test-launcher-emulator-genex'Brad King2024-01-2915-37/+110
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 13ece67a58 Add genex support to TEST_LAUNCHER and CROSSCOMPILING_EMULATOR b9ad73fcb2 cmTestGenerator: De-duplicate TEST_LAUNCHER and CROSSCOMPILING_EMULATOR impl Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9198
| * | | | Add genex support to TEST_LAUNCHER and CROSSCOMPILING_EMULATORBrad King2024-01-2915-37/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Evaluate generator expressions in these properties, as they apply to `add_test`, `add_custom_command`, and `add_custom_target`. The `CMAKE_CROSSCOMPILING_EMULATOR` variable's `try_run` behavior occurs at configure time and so cannot support generator expressions.
* | | | | Merge topic 'autogen-makefile-depfile'Brad King2024-01-296-0/+29
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | d0bedb2170 Autogen: Forward dependencies when both Makefile and DEPFILE are used 4deb9c41b8 cmQtAutoGenInitializer: Improve Const-correctness Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9190
| * | | | Autogen: Forward dependencies when both Makefile and DEPFILE are usedOrkun Tokdemir2024-01-286-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit ebc9e448b3 (Autogen: Add depfile support for Makefiles, 2023-09-07, v3.28.0-rc1~101^2~1) CMake does not generate the correct dependency graph when both `Makefile` and `DEPFILE` are used. The build of `<target_name>_autogen_timestamp_deps` fails due to missing dependencies. To tackle that problem, forward target dependencies to both `<target_name>_autogen_timestamp_deps` and `<target_name>_autogen` instead of just `<target_name>_autogen`. Fixes: #25600
| * | | | Tests: Improve C compatibility of LoadCommand testsFlorian Weimer2024-01-252-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code used `char **` and `const char **`` types as if they were the same. But they are distinct types in C, so when passing these pointers as function arguments, their types have to match. Future C compilers will treat this as an error, similar to what C++ compilers do today.
* | | | | Merge topic 'productbuild-domains-policy'Brad King2024-01-298-0/+33
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 339ae33e55 CPack: Change CPACK_PRODUCTBUILD_DOMAINS default to true (CMP0161) 4e7f2397e4 CPack: Clear temporary variable after it is no longer needed Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9197
| * | | | CPack: Change CPACK_PRODUCTBUILD_DOMAINS default to true (CMP0161)Craig Scott2024-01-288-0/+33
| | | | | | | | | | | | | | | | | | | | Fixes: #23351
* | | | | Merge topic 'test-launcher-emulator'Brad King2024-01-2834-121/+389
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb766ff638 Tests: Improve RunCMake.add_test TEST_LAUNCHER coverage c5b58b0842 Tests: Improve RunCMake.add_test error formatting b440e0af3f Tests: Improve RunCMake.CrosscompilingEmulator coverage 54edf3471e Tests: Improve RunCMake.CrosscompilingEmulator error formatting 2b5447d4a8 Tests: Shorten RunCMake.CrosscompilingEmulator executable names 10f906106e Tests: Teach pseudo_emulator helper to pass by default Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9192
| * | | | Tests: Improve RunCMake.add_test TEST_LAUNCHER coverageBrad King2024-01-279-41/+89
| | | | | | | | | | | | | | | | | | | | Verify that ctest actually runs the test command lines as expected.
| * | | | Tests: Improve RunCMake.add_test error formattingBrad King2024-01-271-7/+13
| | | | |
| * | | | Tests: Improve RunCMake.CrosscompilingEmulator coverageBrad King2024-01-276-5/+172
| | | | | | | | | | | | | | | | | | | | Verify that ctest actually runs the test command lines as expected.
| * | | | Tests: Improve RunCMake.CrosscompilingEmulator error formattingBrad King2024-01-275-24/+45
| | | | |
| * | | | Tests: Shorten RunCMake.CrosscompilingEmulator executable namesBrad King2024-01-2715-44/+58
| | | | | | | | | | | | | | | | | | | | Also switch to pure C.
| * | | | Tests: Teach pseudo_emulator helper to pass by defaultBrad King2024-01-272-1/+13
| | | | |
* | | | | Merge topic 'ctest-tests-from-file'Brad King2024-01-268-0/+62
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 701029726f ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILE dbacc1d5a8 ctest: add command line option to exclude tests listed in a given file 022f20f663 ctest: add command line option to run the tests listed in a given file Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !9128
| * | | | | ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILEAlex Neundorf2024-01-254-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These options can be used to specify files which can be used to restrict the set of tests that will be executed. Fixes: #25455
| * | | | | ctest: add command line option to exclude tests listed in a given fileAlex Neundorf2024-01-252-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `--exclude-from-file <filename>` to exclude the tests listed in the given file. Issue: #25455
| * | | | | ctest: add command line option to run the tests listed in a given fileAlex Neundorf2024-01-253-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `--tests-from-file <filename>` to run only the tests listed in the given file. The test names must match exactly, no regexps or something. The listed tests can still be filtered with a regexp using -R. Issue: #25455
* | | | | | Merge topic 'cmuvprocesschain'Brad King2024-01-252-4/+5
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adb3e13d32 cmUVProcessChain: Tolerate fileno() of invalid FILE stream b6e4e4babc cmUVProcessChain: Simplify SetExternalStream usage 116bb2b70f cmUVProcessChain: Simplify builder initialization d32c30906a Tests: Add missing include in testUVProcessChainHelper on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9181
| * | | | | cmUVProcessChain: Simplify SetExternalStream usageBrad King2024-01-241-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is commonly called with the `fileno()` of a `FILE*` stream, so accept the latter directly.
| * | | | | Tests: Add missing include in testUVProcessChainHelper on WindowsBrad King2024-01-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | We use `STATUS_ACCESS_VIOLATION` from `windows.h`.