summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'vs2022'Brad King2021-06-286-12/+18
|\ | | | | | | | | | | | | | | | | | | 93c718791e VS: Use 64-bit MSBuild in VS 2022 c46b265839 VS: Add Visual Studio 17 2022 generator b610b7a35c VS: Update v142 CL flag table for VS 17.0 Preview 1 43375c6418 Help: Remove unnecessary Sphinx versionadded markup in VS toolset selection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6268
| * VS: Add Visual Studio 17 2022 generatorBrad King2021-06-256-12/+18
| | | | | | | | Fixes: #22339
* | Merge topic 'test-RunCMake.GenEx-names'Brad King2021-06-28221-176/+176
|\ \ | | | | | | | | | | | | | | | | | | a95cbf3890 Tests: Shorten RunCMake.GenEx-* case names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6269
| * | Tests: Shorten RunCMake.GenEx-* case namesBrad King2021-06-25221-176/+176
| |/ | | | | | | Reduce the length of the longest path on disk needed by the tests.
| * Merge topic 'test-xcode-13' into release-3.21Brad King2021-06-212-2/+2
| |\ | | | | | | | | | | | | | | | | | | 1dd0eae4fc Tests: Fix xcode version detection for Xcode 13 on ARM Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6248
* | | cmELF: Include the ELF parsing code unconditionallyAlex Richardson2021-06-242-6/+2
| | | | | | | | | | | | | | | Now that the ELF definitions are provided on all platforms there is no need to keep the CMake_USE_ELF_PARSER option.
* | | cmELF: Allow building without system ELF headersAlex Richardson2021-06-242-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ELF headers vendored in `Utilities/cmelf` to get the ELF constants and types. Using the same ELF definition header for all compilation targets allows removing some #ifdefs depending on the host OS since we know all required ELF constants will always be present. To reduce the size of this commit, the CMake_USE_ELF_PARSER definite will be removed in a separate commit. This allows me to use CMAKE_BUILD_WITH_INSTALL_RPATH=False and the Ninja generator on macOS, whereas before it would always give me the following error message (despite cross-compiling for an ELF-based platform): ``` The install of the <name> target requires changing an RPATH from the build tree, but this is not supported with the Ninja generator unless on an ELF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH variable may be set to avoid this relinking step. ```
* | | Merge topic 'test-xcode-13'Brad King2021-06-212-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 1dd0eae4fc Tests: Fix xcode version detection for Xcode 13 on ARM Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6248
| * | Tests: Fix xcode version detection for Xcode 13 on ARMBrad King2021-06-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running `xcode -version` on an ARM box prints content to stderr: objc[...]: Class ... is implemented in both... One of the two will be used. Which one is undefined. Capture and parse only stdout. Otherwise we might configure test behavior for the wrong version of Xcode.
* | | Merge topic 'FindPkgConfig-PKG_CONFIG-args'Brad King2021-06-214-0/+54
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 35d3e00e4e FindPkgConfig: split args if loaded from environment Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6222
| * | | FindPkgConfig: split args if loaded from environmentChristopher Degawa2021-06-184-0/+54
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's common for some people to use the PKG_CONFIG environment variable to not only load a custom pkg-config/pkgconf but also to load some default arguments such as `--static` or `--keep-system-libs` which often worked since shell scripts would call `$PKG_CONFIG --libs pkg` without quotes, but this breaks FindPkgConfig since it uses the full string as `argv[0]` and might try looking for a binary called `pkgconf --static`, instead of looking for `pkgconf` and adding `--static` as the `argv[1]` Additionally adds RunCMake.FindPkgConfig ARGN test case Fixes: #22305 Signed-off-by: Christopher Degawa <ccom@randomderp.com>
* | | Merge topic 'ctest_runtime_labels'Brad King2021-06-212-0/+41
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bd38749fd4 ctest: allow test output to add labels Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6234
| * | | ctest: allow test output to add labelsZack Galbreath2021-06-172-0/+41
| |/ / | | | | | | | | | | | | Parse test output for <CTestLabel>...</CTestLabel>. If found, add this value to the list of labels associated with this test.
* | | Tests/IncludeDirectories: support MSVC in system include testsBen Boeckel2021-06-173-12/+27
| | |
* | | Tests/IncludeDirectories: align sibling predicatesBen Boeckel2021-06-171-1/+2
| | |
* | | Tests/IncludeDirectories: factor out applying flags to targetsBen Boeckel2021-06-171-6/+10
| | |
* | | Tests/IncludeDirectories: fix copy pasta for otherlibBen Boeckel2021-06-171-1/+1
| | |
* | | Tests/IncludeDirectories: Include system headers via angle bracketsBrad King2021-06-173-3/+4
|/ / | | | | | | | | This is typically how projects include them, and cl's `-external:{I,W}` flags suppress warnings only when included through angle brackets.
* | Merge topic 'fix-flow-control-override'Brad King2021-06-173-0/+5
|\ \ | |/ | | | | | | | | | | c017098d4d CMake: Allow override of unexpected non-flow-control commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6232
| * CMake: Allow override of unexpected non-flow-control commandsKyle Edwards2021-06-163-0/+5
| | | | | | | | Fixes: #22310
| * Merge topic 'presets-build-fixes' into release-3.20Brad King2021-06-093-5/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 534c40e6d8 presets: Fix buildPreset "targets" not allowing a single string 5d67632813 presets: Fix buildPreset "jobs" 93e396b402 presets: Fix buildPreset "jobs" field test case Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !6190
* | | CMakeDependentOption: Allow parentheses in the depends stringDaniel Schürmann2021-06-144-0/+12
| | | | | | | | | | | | | | | | | | | | | `if()` takes the condition as a list of arguments. Parentheses need to be separated as well. Fixes: #22303
* | | Merge topic 'xcode13-linker-output'Brad King2021-06-142-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | a7bbbbf73b Tests: ignore Xcode DVTPlugInManager output 8dcdd4351f Tests: recognize Xcode 13 linker warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6216
| * | | Tests: ignore Xcode DVTPlugInManager outputGregor Jasny2021-06-101-0/+1
| | | |
| * | | Tests: recognize Xcode 13 linker warningGregor Jasny2021-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The linker shipped with Xcode 13 changed the architecture mismatch linker warning into: ``` ld: warning: ignoring file libfoo.a, building for macOS-x86_64 but attempting to link with file built for macOS-i386 ```
* | | | Merge topic 'dir-IMPORTED_TARGETS'Brad King2021-06-113-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e13704ce72 Add directory property to list imported targets ea6d338ea1 cmState: Record imported target names in each directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6215
| * | | | Add directory property to list imported targetsBrad King2021-06-103-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Model the change after commit cbca65826c (Add directory property to list buildsystem targets, 2016-09-19, v3.7.0-rc1~79^2~1). Fixes: #22291
* | | | | Merge topic 'ci-rpm'Brad King2021-06-113-2/+19
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 369725faa5 gitlab-ci: add job to run CPack RPM tests 1186ed64d0 ci: add rpm-build to Fedora base image 60380bd77c Tests: Fix RunCMake.CPack_RPM.DEBUGINFO test case 5130ff6878 Tests: Fix CPackComponentsForAll-RPM-IgnoreGroup test on Fedora 34 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6214
| * | | | | Tests: Fix RunCMake.CPack_RPM.DEBUGINFO test caseBrad King2021-06-101-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit c826745f5a (CPack/DEB: Do not crash when asked for debug symbols when there are none, 2020-10-29, v3.20.0-rc1~461^2) the test fails because CPackRPM warns about no sources in which to find debug symbols. Add expected output for this case.
| * | | | | Tests: Fix CPackComponentsForAll-RPM-IgnoreGroup test on Fedora 34Brad King2021-06-102-2/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the cross-arch case from commit f174b919d6 (Tests: CpackRPM test component architecture, 2015-02-19, v3.3.0-rc1~415^2~1) to use `armv7hl`, which is supported by current RPM versions. Fixes: #19983
* | | | | Merge topic 'test-CPackComponentsForAll-errors'Brad King2021-06-111-3/+12
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45935ac973 Tests: Improve CPackComponentsForAll test error formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6212
| * | | | | Tests: Improve CPackComponentsForAll test error formattingBrad King2021-06-101-3/+12
| |/ / / / | | | | | | | | | | | | | | | Format message content for `message(FATAL_ERROR)`.
* | | | | Merge topic 'FindBLAS-mkl-gnu'Brad King2021-06-112-16/+44
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | daa0a1f877 Find{BLAS,LAPACK}: Add tests covering Intel MKL with GNU compiler 624110b90d FindBLAS: Revert "Do not statically link against iomp5 ... Intel MKL" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6213
| * | | | Find{BLAS,LAPACK}: Add tests covering Intel MKL with GNU compilerBrad King2021-06-102-16/+44
| | | | |
* | | | | Merge topic 'vs-custom-depfile'Brad King2021-06-101-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 526e2ef71c VS: Add support for add_custom_command DEPFILE 794ad78abb Help: Generalize release note filename for add_custom_command DEPFILE 7291f31254 cmTransformDepfile: Add support for MSBuild AdditionalInputs format a6de8ec51b cmTransformDepfile: Make directory for transformed depfile automatically Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6206
| * | | | | VS: Add support for add_custom_command DEPFILEBrad King2021-06-091-1/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Transform the depfile into MSBuild `AdditionalInputs` content. Add MSBuild Targets to update `AdditionalInputs` and the `.tlog` files for future builds without actually modifying the `.vcxproj` file. Fixes: #20286
* | | | | Merge topic 'ctest_custom_details'Brad King2021-06-102-0/+28
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02f1271bdf ctest: allow test output to override the 'details' field Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6204
| * | | | | ctest: allow test output to override the 'details' fieldZack Galbreath2021-06-092-0/+28
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Parse test output for <CTestDetails>...</CTestDetails>. If found, use this value to override the default 'Details' string reported to CDash.
* | | | | Tests: Improve RunCMake.CPack*.SOURCE_PACKAGE test error formattingBrad King2021-06-092-11/+28
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format message content for `message(FATAL_ERROR)`. Apply the change from commit c54c284de7 (Tests: Improve RunCMake.CPack* test error formatting, 2021-04-22) to the `SOURCE_PACKAGE` script too. Also fix a typo from commit f5d79dec53 (Tests: Cleanup CPack message when files are expected and none are found, 2021-01-15, v3.20.0-rc1~89^2~22).
* | | | Merge topic 'ctest_measurement_file'Brad King2021-06-092-0/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cbcb92d1cb ctest: add support for attaching files to tests at run time Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6192
| * | | | ctest: add support for attaching files to tests at run timeZack Galbreath2021-06-082-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow tests to specify files to upload at runtime. Previously this was only possible to specify at configure time with the ATTACHED_FILES test properties. This commit also fixes a bug in how our test data tarballs were generated by CTest. Previously, if you tried to attach a file outside of the binary directory, CTest would generate a tar file with a relative path, and tar would not allow you to extract it. We resolve this problem by creating tar files with a flat directory structure instead. Fixes: #22284
* | | | | Merge topic 'presets-build-fixes'Brad King2021-06-093-5/+28
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | de2b14a711 Merge branch 'backport-3.20-presets-build-fixes' into presets-build-fixes 534c40e6d8 presets: Fix buildPreset "targets" not allowing a single string 5d67632813 presets: Fix buildPreset "jobs" 93e396b402 presets: Fix buildPreset "jobs" field test case efe7ac9022 presets: Fix buildPreset "targets" not allowing a single string Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !6190
| * \ \ \ \ Merge branch 'backport-3.20-presets-build-fixes' into presets-build-fixesSam Freed2021-06-083-4/+22
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| | * | | | presets: Fix buildPreset "targets" not allowing a single stringSam Freed2021-06-082-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #22272
| | * | | | presets: Fix buildPreset "jobs" field test caseBrad King2021-06-083-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid passing parallel build options to Make tools that do not support them.
| * | | | | presets: Fix buildPreset "targets" not allowing a single stringSam Freed2021-06-072-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #22272
* | | | | | Merge topic 'add_hip_language'Brad King2021-06-0951-5/+723
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8514ee9b31 HIP: analyze output of `hipcc` to determine default GPU architecture 20d086f1a2 HIP: All HIP tests now run on CMake's current AMD hardware 2e86e50c2f HIP: Add HIP to all the Check* modules 947dbed0aa HIP: Automatically inject the `hip::device` runtime target b50bfc8913 HIP: Add language to CMake ff0d2858e1 HIP: Extract clang compiler details from hipcc bd844387df ROCMClang: Add the ROCm toolkit derived clang compiler to CMake 590553f322 Compilers: protect use of __has_include ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Acked-by: Axel Huebl <axel.huebl@plasma.ninja> Merge-request: !6121
| * | | | | HIP: analyze output of `hipcc` to determine default GPU architectureZack Galbreath2021-06-074-4/+0
| | | | | |
| * | | | | HIP: All HIP tests now run on CMake's current AMD hardwareRobert Maynard2021-06-076-0/+6
| | | | | |
| * | | | | HIP: Add HIP to all the Check* modulesRobert Maynard2021-06-079-4/+94
| | | | | |