summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge topic 'hip-std'Brad King2024-05-299-2/+35
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c299fd8266 Tests/CompileFeatures: Cover hip_std_## meta-features 5d93c421f1 HIP: Populate CMAKE_HIP_KNOWN_FEATURES global property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9555
| * | | | | | Tests/CompileFeatures: Cover hip_std_## meta-featuresBrad King2024-05-289-2/+35
| | | | | | |
* | | | | | | Merge topic 'swift-multi-config'Brad King2024-05-2914-114/+142
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5bb7f8a4dd Swift: Use per-config module file locations in multi-config generators b2e042d77a cmGeneratorTarget: Adopt Swift-related methods from the Ninja generator 45b3387c50 Tests/RunCMake/Swift: Enable more cases with Ninja Multi-Config Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9501
| * | | | | | Swift: Use per-config module file locations in multi-config generatorsDave Abrahams2024-05-248-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Place `.swiftmodule` files a subdirectory named after the configuration. Fixes: #25864 Fixes: #25997 - Swift/RunCMakeTest.cmake: - CMP0157-OLD was enabled for Xcode, where it works. - A test was added that verifies .swiftmodule's are generated into separate directories with multi-config generators. - Tests/SwiftOnly/CMakeLists.txt: tests were added that validate that cross-subdirectory module dependencies (via target_link_libraries) work.
| * | | | | | Tests/RunCMake/Swift: Enable more cases with Ninja Multi-ConfigDave Abrahams2024-05-247-114/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also factor out testing that's common across Xcode and Ninja.* generators. - Ninja expected output files were extended to accept directories named after the configuration in paths. - Tests that previously ran with Ninja were allowed to run with Ninja Multi-Config. - Swift/RunCMakeTest.cmake: - Checks for conditions where little or no testing could be done were moved to the top of the file, with return()s to limit nesting of the remainder of the code ("Early bailouts"). - CMP0157 tests, which were being performed for all generators, were factored out into a block at the top of the file. - RunCMake_TEST_OPTIONS is set initially for all multi-config generators and list(APPEND)'ed-to in each block() where it was previously set() and unset().
* | | | | | | Merge topic 'execute_process-child-startup-info'Brad King2024-05-284-0/+34
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | / | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | fa8c04b421 Tests/RunCMake/execute_process: Check STARTUPINFOW reserved members d98df689ab Merge branch 'libuv-win-process-no-extra-stdio' a590382850 libuv: win/spawn: disable extra-file-descriptor support not needed by CMake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9541
| * | | | | 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
* | | | | | FetchContent: Make FetchContent_Populate() honor CMP0168Craig Scott2024-05-251-0/+16
| |_|_|/ / |/| | | |
* | | | | Merge topic 'doc-test-RunCMake'Brad King2024-05-242-30/+205
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0dbf2c24bf Tests/RunCMake: Document how to write multi-step test cases 61a08b0856 Tests/RunCMake: Document commands/variables available to RunCMakeTest scripts aebf6b8b29 Tests/RunCMake: Clarify documentation of platform-specific output matching c2f8a6729f Tests/RunCMake: Rename "sub-test" terminology to "case" 0add7a802f Tests/RunCMake: Organize README as multiple sections aff4dc47c4 Tests/RunCMake: Cross-reference README from main Tests/README Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9548
| * | | | | Tests/RunCMake: Document how to write multi-step test casesBrad King2024-05-231-0/+26
| | | | | |
| * | | | | Tests/RunCMake: Document commands/variables available to RunCMakeTest scriptsBrad King2024-05-231-8/+132
| | | | | |
| * | | | | Tests/RunCMake: Clarify documentation of platform-specific output matchingBrad King2024-05-231-5/+2
| | | | | |
| * | | | | Tests/RunCMake: Rename "sub-test" terminology to "case"Brad King2024-05-231-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | We've long used the latter term in commit messages and comments.
| * | | | | Tests/RunCMake: Organize README as multiple sectionsBrad King2024-05-231-1/+13
| | | | | |
| * | | | | Tests/RunCMake: Cross-reference README from main Tests/READMEBrad King2024-05-232-2/+18
| | |_|/ / | |/| | |
* | | | | Merge topic 'genex-compiler-frontend-variant'Brad King2024-05-2412-4/+64
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | af81b8667e GenEx: Add generator expr. for CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT 8a11a39c51 Help: Use correct programming language names in docs of generator expr. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9538
| * | | | | GenEx: Add generator expr. for CMAKE_<LANG>_COMPILER_FRONTEND_VARIANTDeniz Bahadir2024-05-2212-4/+64
| |/ / / /
* | | | | Merge topic 'ninja-parallel'Brad King2024-05-2413-0/+77
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0e5250e63c Ninja: Add option for parallel install daeb8fffa2 Help: Add Builtin Targets section to Ninja help Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9505
| * | | | | Ninja: Add option for parallel installMartin Duffy2024-05-2313-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the global property ``INSTALL_PARALLEL`` to enable a parallel install target for Ninja. Fixes: #25459
* | | | | | Tests: Improve documentation of ADD_TEST_MACRODave Abrahams2024-05-231-2/+10
| |/ / / / |/| | | |
* | | | | Merge topic 'test-CMAKE_Swift_MODULE_DIRECTORY'Brad King2024-05-221-0/+11
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | acfcce7e1b Swift: test that CMAKE_Swift_MODULE_DIRECTORY is respected. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9524
| * | | | | Swift: test that CMAKE_Swift_MODULE_DIRECTORY is respected.Dave Abrahams2024-05-161-0/+11
| | | | | |
* | | | | | GenEx: Add support for custom transitive link propertiesBrad King2024-05-218-0/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the `$<TARGET_PROPERTY:...>` generator expression to check for a new `TRANSITIVE_LINK_PROPERTIES` property in the target's link closure to enable transitive evaluation of named properties through the link closure, including entries guarded by `$<LINK_ONLY:...>`. Fixes: #20416
* | | | | | GenEx: Add support for custom transitive compile propertiesBrad King2024-05-2112-0/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the `$<TARGET_PROPERTY:...>` generator expression to check for a new `TRANSITIVE_COMPILE_PROPERTIES` property in the target's link closure to enable transitive evaluation of named properties through the link closure, excluding entries guarded by `$<LINK_ONLY:...>`. Issue: #20416
* | | | | | Merge topic 'test-race-aix'Brad King2024-05-211-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ced5932cf Tests/RunCMake/CompileFeatures: Avoid intermittent failures on AIX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9537
| * | | | | | Tests/RunCMake/CompileFeatures: Avoid intermittent failures on AIXBrad King2024-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply the fix from commit b3245f33ef (Tests/RunCMake/install: Avoid intermittent failures on AIX, 2024-05-10) to `RunCMake.CompileFeatures` too.
* | | | | | | Tests/RunCMake/Swift: Update for ninja post-1.12 developmentBrad King2024-05-201-1/+0
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream ninja commit `8e6c741a4b` ("explain" debug prints just before each command is run, 2022-01-06) changed the `ninja -d explain` output for our test case. The `IncrementalSwift-second` case primarily needs to match stdout, so update our stderr expectation to work for either form of ninja's output.
* | | | | | Merge topic 'fetchcontent-direct'Craig Scott2024-05-1819-54/+105
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7bf15e49a8 ExternalProject: Fix misleading git update output b2496bf14c FetchContent: Populate directly without a sub-build 173daad58d ExternalProject: Move more internal commands out of main file 462e583267 ExternalProject: Switch download, update and patch to use _EP_ vars 0ccc8e340d ExternalProject: Provide ExternalProject_Add keywords through a macro 91e1015722 ExternalProject: Don't treat YES as a keyword a1743ce1ef ExternalProject: Fix minor formatting error Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9513
| * | | | | FetchContent: Populate directly without a sub-buildCraig Scott2024-05-1712-43/+94
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21703
| * | | | | ExternalProject: Move more internal commands out of main fileCraig Scott2024-05-137-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commands moved to shared_internal_commands.cmake will soon be used directly by FetchContent, which cannot always include the full ExternalProject.cmake file (e.g. it may be used in CMake script mode). Issue: #21703
* | | | | | Merge topic 'ewilde/swift-static-try-compile'Brad King2024-05-172-0/+15
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c6e52ef7f2 Swift: Support static-library try-compile type Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9520
| * | | | | | Swift: Support static-library try-compile typeEvan Wilde2024-05-152-0/+15
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Top-level code only works as part of executables, which breaks when `CMAKE_TRY_COMPILE_TARGET_TYPE` is set to `STATIC_LIBRARY`. This patch fixes the test to something agnostic between executables and libraries while still verifying that we can import types from the standard library. Fixes: #25984
* | | | | | Merge topic 'LINK_LIBRARY-Feature-properties'Brad King2024-05-1624-3/+127
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6e5e7968c3 GenEx $<LINK_LIBRARY>: Add the support of properties attached to features Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9510
| * | | | | | GenEx $<LINK_LIBRARY>: Add the support of properties attached to featuresMarc Chevrier2024-05-1524-3/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #24504, #25954
* | | | | | | Merge topic 'custom-command-output-hash-character'Brad King2024-05-167-27/+18
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d2a503c1e add_custom_command: Allow OUTPUT filenames containing a hash '#' character b38000d774 cmGlobalXCodeGenerator: Re-implement legacy makefile path escaping d929089687 cmGlobalXCodeGenerator: Do not use legacy makefile escaping in shell commands d61fc2c52e cmGlobalXCodeGenerator: Migrate legacy makefile path escaping to local helper 6010e007c7 cmState: Add method to check for the Borland Makefiles generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9514
| * | | | | | | add_custom_command: Allow OUTPUT filenames containing a hash '#' characterGlenn Coombs2024-05-157-27/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most generators now support this character after escaping and quoting cleanups over time. Disallow it only on generators that do support it. Fixes: #25604
* | | | | | | | Merge topic 'import-std-experimental-docs'Brad King2024-05-162-2/+2
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a46395df06 importstd: clarify when the experimental UUID must be available Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9522
| * | | | | | | importstd: clarify when the experimental UUID must be availableBen Boeckel2024-05-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25980
* | | | | | | | Merge topic 'test-execute_process-abnormal-exit'Brad King2024-05-158-17/+31
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 151a7d63dd Tests: Cover execute_process with abnormal exit on all platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9518
| * | | | | | | | Tests: Cover execute_process with abnormal exit on all platformsBrad King2024-05-148-17/+31
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a dedicated helper program instead of a Python script. This also avoids an interactive popup on macOS. Fixes: #25973
* | | | | | | | Merge topic 'cmp0037-message'Brad 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
* | | | | | | | | | ci: Enable CPack NuGet generator tests in a nightly job on WindowsBrad King2024-05-141-7/+2
| |_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Drop the environment-based heuristic.
* | | | | | | | | Merge topic 'FindPython-WIN32-DEBUG'Brad King2024-05-1438-42/+48
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c164404b2e FindPython: On Windows, Enhance python debug version support Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Osyotr <zhenchik35026@gmail.com> Merge-request: !9482
| * | | | | | | | | FindPython: On Windows, Enhance python debug version supportMarc Chevrier2024-05-0938-42/+48
| | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following variables: * Python_EXECUTABLE_DEBUG * Python_INTERPRETER * Python_DEBUG_POSTFIX and target Python::InterpreterDebug. python_add_library() command Manage DEBUG_POSTFIX target property based on the value of Python_DEBUG_POSTFIX variable. Fixes: #25874
* | | | | | | | | Tests: Avoid running VS 16+ tests when using a pre-v140 toolsetBrad King2024-05-132-2/+4
| |_|_|_|/ / / / |/| | | | | | |
* | | | | | | | Merge topic 'test-race-aix'Brad King2024-05-131-0/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b3245f33ef Tests/RunCMake/install: Avoid intermittent failures on AIX Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9507