summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
* | | ctest: Remove unnecessary and ambiguous tests-from-file comment syntaxBrad King2024-03-082-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Test names can contain `#`. Since we ignore lines that do not match any test names anyway, "commenting" can still work without explicit syntax. Also drop whitespace trimming for similar reasons. Fixes: #25741
* | | ctest: Honor tests-from-file options with empty inputBrad King2024-03-089-0/+29
| | | | | | | | | | | | If the `--tests-from-file` input file is empty, no tests should run.
* | | Tests: Make ctest tests-from-file expected output more preciseBrad King2024-03-087-3/+13
| | |
* | | Merge topic 'cxxmodules-target-objects' into release-3.29Brad King2024-03-084-0/+42
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 4ddf0453d5 Tests/CXXModules: add a test using `TARGET_OBJECTS` from modules Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9316
| * | Tests/CXXModules: add a test using `TARGET_OBJECTS` from modulesBen Boeckel2024-03-064-0/+42
| | | | | | | | | | | | See: #25732
| * | Merge topic 'cxxmodules-no-export-basedirs-as-include-paths' into release-3.28Brad King2024-02-297-0/+147
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 028f3134e5 cmExportFileGenerator: only export include paths for HEADERS file sets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9295
* | | | ctest: Exit with failure when tests-from-file input is missingBrad King2024-03-0614-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the options added by * commit 022f20f663 (ctest: add command line option to run the tests listed in a given file, 2023-11-29, v3.29.0-rc1~66^2~2) * commit dbacc1d5a8 (ctest: add command line option to exclude tests listed in a given file, 2023-11-30, v3.29.0-rc1~66^2~1) * commit 701029726f (ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILE, 2023-12-03, v3.29.0-rc1~66^2) are given a missing file, fail instead of ignoring it. Fixes: #25740
* | | | Tests: Generalize ctest tests-from-file test casesBrad King2024-03-066-9/+9
| |_|/ |/| |
* | | Merge topic 'cxxmodules-no-export-basedirs-as-include-paths' into release-3.29Brad King2024-02-297-0/+147
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65bd837786 Merge branch 'backport-3.28-cxxmodules-no-export-basedirs-as-include-paths' 028f3134e5 cmExportFileGenerator: only export include paths for HEADERS file sets Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9295
| * \ \ Merge branch 'backport-3.28-cxxmodules-no-export-basedirs-as-include-paths'Brad King2024-02-287-0/+147
| |\ \ \ | | | |/ | | |/|
| | * | cmExportFileGenerator: only export include paths for HEADERS file setsBen Boeckel2024-02-287-0/+147
| | | |
* | | | Merge topic 'test-cxxmodules-vs' into release-3.29Brad King2024-02-281-1/+1
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | 6925978f3e Tests/RunCMake/CXXModules: Update VS circular error message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9299
| * | Tests/RunCMake/CXXModules: Update VS circular error messageBrad King2024-02-281-1/+1
| |/ | | | | | | Match the message expected from MSBuild as of VS 17.9.
* | Swift: Ninja: Pass module name to all swift buildsEvan Wilde2024-02-232-1/+7
| | | | | | | | | | | | | | | | Executables that don't export a public API should not emit a swiftmodule, but the swift modulename is observable from within the program, so we should still set the module name on executable builds. Fixes: #25710
* | Merge topic 'test-BuildDepends-no-rosetta' into release-3.29Brad King2024-02-221-1/+3
|\ \ | | | | | | | | | | | | | | | | | | 6b8c99a1e3 Tests: Fix BuildDepends on macOS arm64 without rosetta Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9277
| * | Tests: Fix BuildDepends on macOS arm64 without rosettaBrad King2024-02-211-1/+3
| | |
* | | Merge topic 'restore-link-interface-objlib-with-unity' into release-3.29Brad King2024-02-226-1/+37
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | 5b8e9e068f Restore support for TARGET_OBJECTS in link interfaces with unity builds 1313c78a9c Tests: Update RunCMake.TargetObjects cmake_minimum_required version Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9279
| * | Restore support for TARGET_OBJECTS in link interfaces with unity buildsBrad King2024-02-215-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was broken by commit df08c37a42 (cmGlobalGenerator: Add unity/pch sources after computing compile features, 2024-02-02, v3.28.3~1^2~1^2), and 3.28.2's commit 76b5383123 (cmGlobalGenerator: add unity sources after computing target compile features, 2024-01-01, v3.28.2~17^2~1). The problem is very similar to that fixed by commit 4e8f24e977 (PCH: Clear link interface cache when adding PCH object to it, 2022-01-24, v3.23.0-rc1~44^2~9). Generalize that fix. Fixes: #25696
| * | Tests: Update RunCMake.TargetObjects cmake_minimum_required versionBrad King2024-02-211-1/+1
| | | | | | | | | | | | | | | This was missed in commit 1edf138506 (Tests/RunCMake: Update cmake_minimum_required versions, 2023-02-06, v3.27.0-rc1~508^2~1).
| * | Merge topic 'cxxmodules-transitive-std' into release-3.28Brad King2024-02-212-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | f0df692d21 Tests/CXXModules: test `cxx_std_20` coming from a dependency Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9276
* | \ \ Merge topic 'cxxmodules-transitive-std' into release-3.29Brad King2024-02-212-2/+2
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | f0df692d21 Tests/CXXModules: test `cxx_std_20` coming from a dependency Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9276
| * | | Tests/CXXModules: test `cxx_std_20` coming from a dependencyBen Boeckel2024-02-202-2/+2
| | | | | | | | | | | | | | | | Closes: #25569
* | | | Merge topic 'cxxmodules-transitive-modules-usage' into release-3.29Brad King2024-02-2118-4/+298
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| | | | | | | | | | | | | | | | | ec348ee4b9 cmGeneratorTarget: discover synthetic targets recursively 67466ddf65 cmExportFileGenerator: export link libraries as-is a2e3e61a31 Tests/CXXModules: test transitive modules usage Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9273
| * | cmExportFileGenerator: export link libraries as-isBen Boeckel2024-02-204-4/+4
| | | | | | | | | | | | | | | | | | | | | This allows for transitive modules to work because `$<COMPILE_ONLY>`-wrapped dependencies do not end up in the `linked-target-dirs` collator property. Test suite exported property tests updated to account for the change.
| * | Tests/CXXModules: test transitive modules usageBen Boeckel2024-02-2014-0/+294
| |/
* | Merge topic 'cxxmodules-transitive-target-usage' into release-3.29Brad King2024-02-2021-0/+307
|\ \ | |/ | | | | | | | | | | | | | | 8b6fc81fc3 cmTarget: copy link libraries from the right properties d4a517f82a Tests/CXXModules: add a test with transitive targets Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9265
| * Tests/CXXModules: add a test with transitive targetsBen Boeckel2024-02-1921-0/+307
| |
* | Merge topic 'cxxmodules-nmc-duplicate-synthetic-targets' into release-3.29Brad King2024-02-198-0/+119
|\ \ | |/ | | | | | | | | | | | | | | | | | | 5261af9424 cmGeneratorTarget: store synthetic targets in its cache e0633a9517 Tests/CXXModules: add a test importing from a `Ninja` install 150d7dbd68 Tests/CXXModules: support building a project with `Ninja` e48e5e5506 Tests/CXXModules: document `CMake_TEST_MODULE_COMPILATION` items Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9263
| * Tests/CXXModules: add a test importing from a `Ninja` installBen Boeckel2024-02-168-0/+78
| | | | | | | | | | | | | | This ensures that consuming from a single configuration generator works in all generators. See: #25568
| * Tests/CXXModules: support building a project with `Ninja`Ben Boeckel2024-02-161-0/+29
| | | | | | | | This allows testing mixed generator setups.
| * Tests/CXXModules: document `CMake_TEST_MODULE_COMPILATION` itemsBen Boeckel2024-02-161-0/+12
| |
| * Merge topic 'cxxmodules-collation-restat' into release-3.28Brad King2024-02-167-2/+59
| |\ | | | | | | | | | | | | | | | | | | | | | a7424b636b Ninja: make the collator rule use `restat = 1` e24eecfc33 Tests/CXXModules: add a test to ensure that `restat` works for collation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9259
| * \ Merge topic 'cxxmodules-visibility-change-rebuild' into release-3.28Brad King2024-02-166-0/+55
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 60a8736378 cmNinjaTargetGenerator: scanning depends on the module metadata 52036ce090 Tests/CXXModules: test that objects depend on dependent modules json files 9a45c9fbd5 cmNinjaTargetGenerator: use `emplace_back` for scanning deps Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9247