summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix typos and spelling in commentsJosef Angstenberger2021-05-076-6/+6
|
* 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
| |_|/ |/| |
* | | Merge topic 'ctest_junit'Brad King2021-04-276-0/+84
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 25bf514447 ctest: Add support for writing test results in JUnit XML format Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Acked-by: MvdHurk <maikelvandenhurk@hotmail.com> Acked-by: Alexander Richardson <arichardson.kde@gmail.com> Merge-request: !6020
| * | | ctest: Add support for writing test results in JUnit XML formatZack Galbreath2021-04-266-0/+84
| | | | | | | | | | | | | | | | Addresses #18654
* | | | MSYS: Add support for running under MSYS runtime environmentOrgad Shaneh2021-04-2639-54/+194
| |/ / |/| | | | | | | | Detect MSYS as CYGWIN, with the required adaptations.
* | | Merge topic 'SWIG'Brad King2021-04-261-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e3e005dbd8 UseSWIG: use swig dependencies for Xcode generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6042
| * | | UseSWIG: use swig dependencies for Xcode generatorMarc Chevrier2021-04-231-1/+2
| | | |
* | | | Merge topic 'xcode_app_extensions'Brad King2021-04-2613-40/+122
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb5e33ba47 Xcode: Add support for embedding app extensions f62a2bf44f Tests: Factor out XcodeProject-Embed check function findAttribute() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5934
| * | | | Xcode: Add support for embedding app extensionsAlexander Akhundzhanov2021-04-229-1/+94
| | | | | | | | | | | | | | | | | | | | Co-Authored-By: Craig Scott <craig.scott@crascit.com>
| * | | | Tests: Factor out XcodeProject-Embed check function findAttribute()Craig Scott2021-04-114-39/+28
| | | | |
* | | | | Merge topic 'lzma-threads'Brad King2021-04-261-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c5c130e675 cmArchiveWrite: Consolidate multiple ways to set thread count 5380d858ff liblzma: Enable multi threaded stream encoding support e9065e96dc Merge branch 'upstream-liblzma' into lzma-threads ee909a8e8b liblzma 2020-03-17 (2327a461) 741b85b42b liblzma: Revise update script to get version 5.2.5 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6014
| * | | | | cmArchiveWrite: Consolidate multiple ways to set thread countNils Gladitz2021-04-221-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge use of SetFilterOption() into more abstract thread count in cmArchiveWrite constructor. libarchive defaulting of threads for threads == 0 seems to be configuration dependent. Preemptively default thread count via std::thread::hardware_concurrency(). Also allow negative values for the thread count in which case the detected hardware concurrency is also used but the given absolute thread count is used as an upper limit.
* | | | | Merge topic 'autogen-moc-version'Brad King2021-04-263-0/+36
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5b0ea5874a AutoGen: Retrieve Qt version from moc as fallback Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6027
| * | | | | AutoGen: Retrieve Qt version from moc as fallbackJoerg Bornemann2021-04-233-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consider the case where the find_package call for QtCore is wrapped in a function call. Then AutoGen cannot determine the Qt version, because it only looks at variables and directory properties. The former don't leave the function scope and the latter are not set by default. As a fallback, locate the moc executable via its target and call it with the --version argument to determine the Qt version. Issue: #22028
* | | | | | Merge topic 'file-REAL_PATH-EXPAND_TILDE'Brad King2021-04-262-12/+35
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4b793c614 file(REAL_PATH): add option EXPAND_TILDE Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !6033
| * | | | | | file(REAL_PATH): add option EXPAND_TILDEMarc Chevrier2021-04-212-12/+35
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | This option enables the replacement of any leading tilde with the path to the user's home directory.
* | | | | | Merge topic 'ninja-multi-custom-target-post-build'Brad King2021-04-263-0/+14
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | f8e2a74712 Ninja Multi-Config: Correctly generate POST_BUILD custom targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6040
| * | | | Ninja Multi-Config: Correctly generate POST_BUILD custom targetsKyle Edwards2021-04-223-0/+14
| | | | | | | | | | | | | | | | | | | | Fixes: #22096
* | | | | Tests: Improve RunCMake.CPack* test error formattingBrad King2021-04-221-13/+23
| |_|/ / |/| | | | | | | | | | | Format message content for `message(FATAL_ERROR)`.
* | | | Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Intel MKLBrad King2021-04-212-2/+2
| | | |
* | | | Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Generic vendorBrad King2021-04-212-0/+26
| | | |
* | | | Merge topic 'autogen-clear-early-source-cache'Brad King2021-04-212-0/+11
|\ \ \ \ | |/ / / | | / / | |/ / |/| | | | | | | | b84f1e6159 Autogen: Restore mocs_compilation in OBJECT libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6024
| * | Autogen: Restore mocs_compilation in OBJECT librariesBrad King2021-04-202-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit f65f20938c (Autogen: Avoid processing CSharp targets, 2020-11-12, v3.20.0-rc1~301^2) we collect all sources for a target earlier than previously. Clear the sources cache so that it will be re-computed later after AUTOGEN processing. Fixes: #22085
* | | Merge topic 'Xcode-add_custom_command-DEPFILE'Brad King2021-04-202-3/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 253aff6c94 Xcode: Add support of DEPFILE for add_custom_command, part 2 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6015
| * | | Xcode: Add support of DEPFILE for add_custom_command, part 2Marc Chevrier2021-04-172-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | This MR extend the support of 'DEPFILE' to buildsystem version 1. Issue: #20286
* | | | Merge topic 'tests-clang-analyzer'Brad King2021-04-191-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ae2c24b0ba Tests: Fix warning clang-analyzer-cplusplus.NewDeleteLeaks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6010