summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* 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`.
* | | | Merge topic 'swift-windows'Brad King2024-01-259-28/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b2129a14f4 Tests: Fix SwiftMix tests' runtime library selection on Windows 4f49f7fc0b Tests: Fix SwiftOnly test on Windows 2dec0c0308 Tests: Fix RunCMake.Swift expected output on Windows 79f1f509b1 Tests: Fix RunCMake.Swift's build output checks Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jeremy Day <jadaytime@gmail.com> Merge-request: !9169
| * | | | Tests: Fix SwiftMix tests' runtime library selection on WindowsBrad King2024-01-242-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Swift on Windows provides only a release runtime. Use it for C and CXX too, in all configurations, to match. Issue: #25573 Suggested-by: Saleem Abdulrasool <compnerd@compnerd.org>
| * | | | Tests: Fix SwiftOnly test on WindowsEvan Wilde2024-01-242-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add public symbols to SubA and SubB. The test was broken due to a broken build graph. The build graph expects libraries to emit the `.lib` file. `link.exe` only emits the implib if the library exports at least one symbol. Because these two libraries were empty, nothing was generated. Fixing by adding a public symbol to both libraries. Issue: #25573
| * | | | Tests: Fix RunCMake.Swift expected output on WindowsEvan Wilde2024-01-244-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Artifact file extensions differ. Issue: #25573
| * | | | Tests: Fix RunCMake.Swift's build output checksBrad King2024-01-241-20/+22
| | | | |
* | | | | Merge topic 'validate_read-only_target_properties'Brad King2024-01-2417-4/+714
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0cfd8fe8ad cmTarget: Don't allow setting read-only properties Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9133
| * | | | | cmTarget: Don't allow setting read-only propertiesRobert Maynard2024-01-2317-4/+714
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that all documented read-only target properties now produce errors when trying to set.
* | | | | | Merge topic 'cuda-clang-windows'Brad King2024-01-235-4/+12
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 88c740462c CUDA/Clang: Add support for MSVC ABI on Windows using GNU-like frontend Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !9172
| * | | | | CUDA/Clang: Add support for MSVC ABI on Windows using GNU-like frontendBrad King2024-01-225-4/+12
| | |_|_|/ | |/| | | | | | | | | | | | | Fixes: #20776
* | | | | MSVC: Teach find_library to consider the 'libfoo.a' naming conventionBrad King2024-01-193-0/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When targeting the GNU ABI, we consider `.a` libraries first but also accept `.lib`. For symmetry, when targeting the MSVC ABI, we now consider `.lib` first but also accept `.a`. This adds support for meson-generated static libraries, which are named with the pattern `lib${foo}.a`: * https://mesonbuild.com/FAQ.html#why-does-building-my-project-with-msvc-output-static-libraries-called-libfooa Note that this was previously attempted by * commit be848a71b0 (MSVC: Teach find_library to consider the 'libfoo.a' naming convention, 2022-09-19, v3.25.0-rc1~111^2) but was reverted by * commit 955d6245c1 (MSVC: Revert "Teach find_library to consider the 'libfoo.a' naming convention", 2022-11-28, v3.25.1~6^2) due to problems finding GNU ABI libraries in PATH-derived prefixes. Since then, * commit 0a81110b84 (find_(library|file|path): Drop PATH-derived search prefixes, 2023-09-14, v3.28.0-rc1~91^2) removed the problematic search paths, so we can restore this change. Fixes: #23975
* | | | Merge topic 'cuda-test-cleanup'Brad King2024-01-1920-54/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 607d271b1f Tests: Do not expect nvToolsExt in CUDA 12 toolkit 5eb26fb943 Tests: Fix CudaOnly.Toolkit coverage of npp libs af85fa7ac1 Tests: Remove unused dllexport markup from CudaOnly.DeviceLTO d40bca5a8c Tests: Remove unused iostream from CUDA sources a9bb2606c1 Tests: Fix condition adding nvcc-only flags in CudaOnly.SeparateCompilation Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !9167
| * | | | Tests: Do not expect nvToolsExt in CUDA 12 toolkitBrad King2024-01-182-2/+10
| | | | |
| * | | | Tests: Fix CudaOnly.Toolkit coverage of npp libsBrad King2024-01-181-1/+1
| | | | |
| * | | | Tests: Remove unused dllexport markup from CudaOnly.DeviceLTOBrad King2024-01-182-14/+2
| | | | | | | | | | | | | | | | | | | | The test does not use shared libraries.
| * | | | Tests: Remove unused iostream from CUDA sourcesBrad King2024-01-1815-36/+0
| | | | |
| * | | | Tests: Fix condition adding nvcc-only flags in CudaOnly.SeparateCompilationBrad King2024-01-181-1/+1
| | |/ / | |/| |
* | | | Merge branch 'backport-cxxmodules-export-file-collisions'Brad King2024-01-185-11/+73
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | cxxmodules: make export trampoline script files uniqueBen Boeckel2024-01-185-11/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include the name of the `EXPORT` in the filename when generating export information for C++ modules. This allows the same directory to be used for multiple sets of C++ module-using targets. For `export(TARGETS)` uses, generate a name based on the hash of the concatenation of the target names involved with the `export()` call. Fixes: #25609
* | | Merge topic 'autogen-exe-per-config'Brad King2024-01-1815-69/+552
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 596e84b0d5 NinjaMultiConfig: Update tests for the new dependency change 7c39dabdbc Autogen: AUTO*_EXECUTABLE: add support for per-config values Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8919
| * | | NinjaMultiConfig: Update tests for the new dependency changeOrkun Tokdemir2024-01-173-22/+85
| | | | | | | | | | | | | | | | | | | | | | | | * Tests were updated for the cases both `AUTOGEN_BETTER_GRAPH_MULTI_CONFIG` is ON and OFF This commit reimplements e454314daaed0ab5f86bba0015747eb296efb8da
| * | | Autogen: AUTO*_EXECUTABLE: add support for per-config valuesOrkun Tokdemir2024-01-1712-47/+467
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Per-config values were added to `AUTO*_EXECUTABLE`. * Dependency order was refactored for `cmake_autogen` and `cmake_autorcc` to avoid unnecessary rebuilds. * A new parameter was added for `cmake_autogen` and `cmake_autorcc` to specify the config name of the `auto*_executable` to be used. * Add `AUTOGEN_BETTER_GRAPH_MULTI_CONFIG` target property to change the behavior of the dependency graph. * The timestamp target is split into three targets for per-config to avoid redundant `mocs_compilation` builds when `AUTOGEN_BETTER_GRAPH_MULTI_CONFIG` is ON * Per-config `DEP_FILE_RULE_NAME` values were added to `AutogenInfo.json` for `Multi-Config` usage. * Some functions were refactored to avoid code duplication. This commit reimplements fddd0f0443b4ce81d61f15ee1b2f13105967b25a Fixes: #20074
* | | | Merge topic 'fix_CTestUpdateGIT'Brad King2024-01-181-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ab1241035 Tests: Improve CTest.UpdateGIT robustness to user gitconfig Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9160
| * | | | Tests: Improve CTest.UpdateGIT robustness to user gitconfigAshish Sadanandan2024-01-171-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | Previously the test failed when the user's gitconfig has `push.default=nothing` set.
* | | | Merge topic 'cmake-language-exit-code'Brad King2024-01-1726-0/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1bb1769235 cmake_language: Add EXIT subcommand 4f160f7906 cmakemain: Return the SCRIPT_MODE exit code if it was set b62dcbf5d2 cmMakefile: check cmake script mode exit code after command 3d9d504646 cmMakefile: Store the exit code from cmExecutionStatus to cmake instance 9f6c937408 Source/cmake.h: Add ScriptModeExitCode for proper storing exit code 1082b9cb9a cmExecutionStatus: Add ability to set optional custom exit code Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Leonid Pospelov <pospelovlm@yandex.ru> Acked-by: NoMaY (a user of Renesas Rulz Japanese Forum) <nomay-jp@outlook.com> Merge-request: !8228
| * | | | cmake_language: Add EXIT subcommandleha-bot2024-01-1626-0/+39
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests to cover these cases: * run as regular CMake module, in NORMAL_MODE (expected to fail); * run as CMake script in SCRIPT_MODE (expected to exit with given code); * run as CMake script that `include()`-s another script with EXIT subcommand; * run as CMake script which EVAL-uates EXIT subcommand via `cmake_language(EVAL CODE "<cmake code>")`. Fixes: #23162
* | | | Merge topic 'lcc-updates-2024-01'Brad King2024-01-171-5/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 202f4b3161 Tests: Exclude some tests on broken libc on Elbrus 9dd0ab9c88 LCC: Make CMake build without warnings on LCC 1.21 1dbb31cea2 libarchive: avoid lchmod not implemented warning on old LCC 83af26d9ad LCC: Don't enable debugger on LCC that don't have <future> fa764ce311 liblzma: Make cmliblzma buildable on LCC 1.21 77e046b47c jsoncpp: fix missing template deletion support on LCC < 1.23 67de0c197b cmcurl: fix X509_STORE_up_ref issue not just on LCC 1.23, but on LCC <= 1.23 9bc2aba3b4 LCC: get rid of ambiguous assignments of {} for LCC ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9157
| * | | | Tests: Exclude some tests on broken libc on Elbrusmakise-homura2024-01-161-5/+9
| |/ / / | | | | | | | | | | | | | | | | These tests found to be occasionally failing, so just in case CMake is used in such environment, don't test this at all.
* | | | Merge topic 'cxxmodules-obj-lib'Brad King2024-01-174-0/+20
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | | | | c09f8d27cd cxxmodules: compute link information for C++ module-consuming targets Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9154
| * | cxxmodules: compute link information for C++ module-consuming targetsMatheus Izvekov2024-01-144-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Compute link information for all C++ targets which support modules instead of just those which may provide modules, as they may import modules as well. This captures `OBJECT` libraries using modules which otherwise do not have link steps. Fixes: #25592
| * | Merge topic 'vs-scan-for-modules' into release-3.28Brad King2024-01-106-3/+40
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 405dc7d19c Tests/CXXModules/scan_properties: use `ixx` extension 029ddc3410 cmVisualStudio10TargetGenerator: always specify scanning 6c9614cbf4 Tests/CXXModules: add a test case for VS generation without flags 34f4423851 cmVisualStudio10TargetGenerator: fix typo in flag name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9104
| * \ \ Merge topic 'cxxmodules-no-unity' into release-3.28Brad King2024-01-107-0/+68
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63bbb3768d cmLocalGenerator: ignore scanned sources for unity builds 76b5383123 cmGlobalGenerator: add unity sources after computing target compile features 7fc2a83fe6 Tests/CXXModules: add a test with unity build support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9118