summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* install: Implement new install(CODE|SCRIPT) option ALL_COMPONENTSNils Gladitz2021-05-1910-0/+72
| | | | | | | | | | | In a per-component installation the generated installation scripts are invoked once for each component. Per default custom installation script code added by install(CODE|SCRIPT) only runs for one specific component in this context. The new ALL_COMPONENTS option allows custom script code to be run once for each component being installed.
* INTERFACE_POSITION_INDEPENDENT_CODE must be transitive for OBJECT libraryMarc Chevrier2021-05-141-0/+3
| | | | Fixes: #22174
* Merge topic 'VS-include_external_msproject-CSharp-targets-references'Brad King2021-05-143-0/+47
|\ | | | | | | | | | | | | | | c7aa3bdefc Tests/include_external_msproject: Check C# project reference 65b58b0316 VS Generator: Properly reference included external C# projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6123
| * Tests/include_external_msproject: Check C# project referenceDario Passet2021-05-133-0/+47
| |
* | Merge topic 'cmake_build_and_install_command_error_when_given_bad_arguments'Brad King2021-05-1413-0/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | f78b167a23 cmCommandLineArgument: Provide more information syntax error messages 5aa0dec6b0 cmake: `--build` and `--install` error out when encountering bad flags 928cdb17c5 cmCommandLineArgument: Correctly record parsing failures Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6119
| * | cmCommandLineArgument: Provide more information syntax error messagesRobert Maynard2021-05-132-2/+2
| | |
| * | cmake: `--build` and `--install` error out when encountering bad flagsRobert Maynard2021-05-1313-0/+30
| | | | | | | | | | | | Fixes #22186
* | | Merge topic 'find_item-consistent-behavior-cache-variables'Brad King2021-05-1323-0/+397
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | 08db1341a6 find_*: ensure consistent behavior for cache variables f5fa6d53b0 class cmake: Store working directory at cmake launch b1729200c3 find_*: refactor cache variable handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6110
| * | find_*: ensure consistent behavior for cache variablesMarc Chevrier2021-05-1223-0/+397
| | | | | | | | | | | | Fixes: #22121
* | | Merge topic 'xcode-inherited-params'Brad King2021-05-123-0/+58
|\ \ \ | |/ / |/| | | | | | | | | | | | | | dfaf55fbfd Xcode: add extra '$(inherited)' entries using InheritBuildSettingAttribute. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6077
| * | Xcode: add extra '$(inherited)' entries using InheritBuildSettingAttribute.Danny Parker2021-05-053-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | These have been added to: GCC_PREPROCESSOR_DEFINITIONS OTHER_CFLAGS OTHER_LDFLAGS This is to allow Cocoapods to work correctly as it uses xcconfig files to alter build settings in Xcode, and requires these build settings to inherit from their parent, not overwrite.
* | | Merge topic 'UseJava-add_jar-resource-namespace'Brad King2021-05-113-0/+56
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3e03f359a7 UseJava: Add RESOURCES with NAMESPACE to add_jar() Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Smit-tay <damnedyankee@gmail.com> Merge-request: !6071
| * | | UseJava: Add RESOURCES with NAMESPACE to add_jar()Smit tay2021-05-103-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add_jar() currently requires (undocumented) that resources be supplied as relative paths. The resources *may* then end up in a path which does not reflect the original path particularly when performing out-of-source builds. This change adds a RESOURCE (and NAMESPACE) parameter and a function to add the names resources into the named namespace within the jar- and thus address both of these problems. Fixes: #22101
* | | | Merge topic 'codespell'Brad King2021-05-1012-13/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd02f10103 Xcode: Fix typos and spelling in error message 5950e54325 Source: Fix typos and spelling in comments 7072d83772 Help: Fix typos and spelling in documentation 03b1140ddc CONTRIBUTING: Fix typos and spelling 87f8843d8b FindMatlab: Fix spelling in warning and documentation 15cc39ed7f Modules: Fix typos and spelling in documentation f015c36c5a Modules: Fix typos and spelling in comments of generated code dad5b9d845 Modules: Fix typos and spelling in comments ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6099
| * | | | Xcode: Fix typos and spelling in error messageJosef Angstenberger2021-05-071-1/+1
| | | | |
| * | | | Tests: Fix typos and spelling in test stringsJosef Angstenberger2021-05-072-2/+2
| | | | |
| * | | | Tests: Fix typos and spelling in test error messageJosef Angstenberger2021-05-072-3/+3
| | | | |
| * | | | Tests: Fix typos and spelling in test nameJosef Angstenberger2021-05-071-1/+1
| | | | |
| * | | | Tests: Fix typos and spelling in commentsJosef Angstenberger2021-05-076-6/+6
| | | | |
* | | | | Merge topic 'install-symlink-to-directory'Brad King2021-05-105-0/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d71a7cc19d install(FILES): Allow installation of symlinks to directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6098
| * | | | | install(FILES): Allow installation of symlinks to directoryJens Carl2021-05-065-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow symbolic links to a directory to be installed via install(FILES ...). Fixes: #22159
* | | | | | Merge topic 'windows-symlink-errors'Brad King2021-05-105-6/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d7522b8f86 cmSystemTools: Improve CreateLink and CreateSymlink error codes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6096
| * | | | | | cmSystemTools: Improve CreateLink and CreateSymlink error codesBrad King2021-05-075-6/+6
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 7f89053953 (cmSystemTools: Return KWSys Status from CreateLink and CreateSymlink, 2021-04-15) we just took the `-err` from libuv and treated it as a POSIX error. This is accurate on POSIX, but on Windows does not match the POSIX error codes. Use `uv_fs_get_system_error` to get the actual system error code. This requires libuv 1.38 or higher. Require that for Windows, but fall back to the previous approach on POSIX.
* | | | | | Merge topic 'ep-update-git-hash-missing'Brad King2021-05-103-3/+20
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5e941a545b ExternalProject: Ensure git fetch if updating to hash we don't have yet Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6109
| * | | | | ExternalProject: Ensure git fetch if updating to hash we don't have yetCraig Scott2021-05-093-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In ac6a4d4884 (ExternalProject: Improve robustness of update step, 2020-10-17), the method used to check whether we already have a commit or not was changed from using git rev-list to git rev-parse. The new logic assumed rev-parse would output nothing if given a commit hash it didn't know about, but it simply prints the hash again without raising an error in this scenario. Amend that logic by adding ^{commit} to the ref to ensure we do get an error if that ref is not currently known. Fixes: #22166
* | | | | | FindProtobuf: Add PLUGIN parameter to protobuf_generateFrank Lange2021-05-064-0/+28
| |/ / / / |/| | | | | | | | | | | | | | | | | | | This allows for example reusing the function for generating gRPC code by specifying which grpc plugin to use.
* | | | | Tests: Fix RunCMake.CMakePresets example PATH formatBrad King2021-05-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 94c955e508 (Tests: Test the CMakePresets.json example in the documentation, 2020-10-09, v3.19.0-rc1~8^2) we transform the documented preset example for testing by replacing the generator. Extend the transformation with a step to fix `PATH` env var syntax.
* | | | | Merge topic 'generate-cmake-build-command-parallel'Brad King2021-05-054-0/+19
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d2b856bc92 ctest_build: Add the PARALLEL_LEVEL argument fc2ac46043 build_command: Add the PARALLEL_LEVEL argument 4dd4e9dd6c cmGlobalGenerator: Add parallel parameter to GenerateCMakeBuildCommand Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !6069
| * | | | | ctest_build: Add the PARALLEL_LEVEL argumentfriendlyanon2021-05-042-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19712
| * | | | | build_command: Add the PARALLEL_LEVEL argumentfriendlyanon2021-05-042-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Issue: #19712
* | | | | | Merge topic 'extend_toolchain_flag_to_cmake_preset'Brad King2021-05-049-2/+90
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a9b968bb98 cmake-presets: Introduce `toolchainFile` preset option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6045
| * | | | | | cmake-presets: Introduce `toolchainFile` preset optionRobert Maynard2021-04-289-2/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In v3 of the presets, the `--toolchain` command line argument now has a preset mapping.
* | | | | | | Merge topic 'vs-config-specific-csproj'Brad King2021-05-044-1/+36
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d8786bfa16 VS: Add support for per-config C# sources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6055
| * | | | | | | VS: Add support for per-config C# sourcesThomas Vaughan2021-05-034-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #22108
* | | | | | | | Merge topic 'vs-csharp-link'Brad King2021-05-043-0/+27
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31bbcd1905 VS: Fix CSharp sources inside build directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6065
| * | | | | | | | VS: Fix CSharp sources inside build directoryKinan Mahdi2021-05-033-0/+27
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Fixes: #22104
* | | | | | | | Merge topic 'compile-features-lang-vars'Brad King2021-05-043-0/+10
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd16a985fc CompilerId/Features: Tolerate variables named for languages Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Timothy Brackett <brackett.tc@gmail.com> Merge-request: !6060
| * | | | | | | CompilerId/Features: Tolerate variables named for languagesBrad King2021-05-033-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a `CMakeLists.txt` or `CMAKE_TOOLCHAIN_FILE` sets a variable named `C`, `CXX`, or `CUDA`, we were previously comparing each enabled language name to the value of that variable, rather than the name itself. Double-quote the string to take advantage of policy `CMP0054`, but also add "x" prefixes to support projects that do not set the policy. Fixes: #22125
* | | | | | | | Merge topic 'ninja-multi-long-command-line-config'Brad King2021-05-033-0/+12
|\ \ \ \ \ \ \ \ | | |_|_|_|/ / / | |/| | | | / / | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | ad08f93ee4 Ninja Multi-Config: Split long command lines by config Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6067
| * | | | | | Ninja Multi-Config: Split long command lines by configKyle Edwards2021-04-303-0/+12
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | Fixes: #22123
* | | | | | Merge topic 'foreach-loop-variable'Brad King2021-05-033-0/+106
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 46896d98bb foreach(): loop variables are only available in the loop scope Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !6044
| * | | | | foreach(): loop variables are only available in the loop scopeMarc Chevrier2021-04-283-0/+106
| | |/ / / | |/| | | | | | | | | | | | | Fixes: #20553
* | | | | Merge topic 'test-ifort-windows'Brad King2021-04-291-0/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82470e24ae Tests: Fix FortranOnly test with Intel compiler on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6058
| * | | | | Tests: Fix FortranOnly test with Intel compiler on WindowsBrad King2021-04-281-0/+5
| |/ / / / | | | | | | | | | | | | | | | | | | | | The test regularly fails updating the `vc*.pdb` compiler-generated PDB file. Add the `/Z7` flag as the compiler suggests for this.
* | | | | Merge topic 'test-GEH-vs6'Brad King2021-04-291-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d59afbd92e Tests: Fix RunCMake.GenerateExportHeader use of size_t Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6059
| * | | | | Tests: Fix RunCMake.GenerateExportHeader use of size_tBrad King2021-04-281-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit ddcd1469e8 (MSYS: Add support for running under MSYS runtime environment, 2021-04-01) the test uses `std::size_t` without including `<cstddef>`. Also, the type does not exist under `std::` on VS 6. Use just `size_t` instead.
* | | | | Merge topic 'test_driver_tap13_support'Brad King2021-04-291-4/+32
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3f6ff4b5db create_test_sourcelist: add test driver option to run all tests a3aa5596a1 Tests: Isolate TestDriver build directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3661
| * | | | create_test_sourcelist: add test driver option to run all testsSergey Bronnikov2021-04-281-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New option `-A` passed to test binary allows to run all testcases at once and prints a report in a standard format - TestAnythingProtocol v.13 [1]. Execution of test whose names will be passed after an option will be skipped. Sample of output: TAP version 13 1..6 ok 1 TestCryptoHash # 0.030000 ok 2 TestCryptoRand # 0.008000 not ok 3 TestCryptoCipher # 0.005000 ok 4 TestCryptoProtectData # 0.000000 cbPlainText: 21 cbCipherText: 32 PlainText: MySecretPassword123! (cbPlainText = 21, cbCipherText = 32) Decrypted CipherText: MySecretPassword123! ok 5 TestCryptoProtectMemory # 0.014000 ok 6 TestCryptoCertEnumCertificatesInStore # 0.000000 1. https://testanything.org/ Fixes: #19367
| * | | | Tests: Isolate TestDriver build directoriesBrad King2021-04-281-4/+6
| | |_|/ | |/| |
* | | | Tests: Add cases for CTest extra measurements from testsZack Galbreath2021-04-273-1/+36
| |_|/ |/| |