summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Add some unit tests for md5sumAndré Klitzing2017-07-0910-0/+17
|
* XCTest: Speed up test by only enabling C languageGregor Jasny2017-06-281-1/+1
|
* Merge topic 'feature/include_guard'Brad King2017-06-2819-0/+126
|\ | | | | | | | | | | | | | | | | | | | | c96f43b7 include_guard: add tests for the feature 80f1221f include_guard: add doc pages and a release note 85b52a04 include_guard: add vim syntax highlighting rules d44bd1c2 include_guard: implement new command Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Craig Scott <craig.scott@crascit.com> Merge-request: !928
| * include_guard: add tests for the featurePavel Solodovnikov2017-06-2219-0/+126
| |
* | Merge topic 'vs_csharp_custom_command'Brad King2017-06-277-0/+83
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | ec409a11 Vs: fix CSharp custom command by introducing inline MSBuild <Targets>s dcdab5cf Vs: factor out computation of <Link> tag for CSharp source files 0a8f469a Vs: refactor WriteCustomRule for preparation of CSharp support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !970
| * | Vs: fix CSharp custom command by introducing inline MSBuild <Targets>sMichael Stürmer2017-06-227-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | The custom command implementation is based on the Microsoft support article: https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-extend-the-visual-studio-build-process Fixes: #16960
* | | Merge topic 'fix-crash-on-non-enabled-language-features'Brad King2017-06-2726-12/+30
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | e03a1b3b target_compile_features: Do not crash on non-enabled language 86990427 Tests: Enable languages explicitly in RunCMake.target_compile_features Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1010
| * | | target_compile_features: Do not crash on non-enabled languageBrad King2017-06-264-0/+8
| | | | | | | | | | | | | | | | Fixes: #17011
| * | | Tests: Enable languages explicitly in RunCMake.target_compile_featuresBrad King2017-06-2622-12/+22
| | | | | | | | | | | | | | | | | | | | Enable C or CXX (or nothing) as needed in each test case. This will allow us to add test cases that do not enable CXX.
| * | | Merge branch 'vs-rc-flags' into release-3.9Brad King2017-06-221-0/+4
| |\ \ \
| * \ \ \ Merge branch 'vs-cuda-fix-flags' into release-3.9Brad King2017-06-213-0/+9
| |\ \ \ \
* | \ \ \ \ Merge topic 'vs-cuda-fix-flags'Brad King2017-06-271-0/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bbc1f364 VS: Fix support for nvcc flags not in our flag table Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1007
| * | | | | | VS: Fix support for nvcc flags not in our flag tableBrad King2017-06-271-0/+5
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in commit v3.9.0-rc4~3^2 (VS: Improve workaround for CUDA -Xcompiler placement bug, 2017-06-21) accidentally appended to the `AdditionalOptions` as if it were a `;`-separated list, but it is actually a command-line string. Append with a space instead. While at it, fix the same problem for the `AdditionalOptions` added to `CudaLink` by commit v3.9.0-rc3~1^2 (CUDA: When linking device code suppress CUDA 8.0+ deprecation warnings, 2017-06-09). Fixes: #17008
* | | | | | Merge topic 'vs-rc-flags'Brad King2017-06-221-0/+4
|\ \ \ \ \ \ | | |_|/ / / | |/| | / / | |_|_|/ / |/| | | | | | | | | | | | | | 974f4333 VS: Fix support for rc /nologo flag in per-source COMPILE_FLAGS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !998
| * | | | VS: Fix support for rc /nologo flag in per-source COMPILE_FLAGSBrad King2017-06-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.9.0-rc1~160^2 (VS: Use tool-specific flag table for COMPILE_FLAGS parsing, 2017-05-03) we now correctly use the `rc` flag table to process the COMPILE_FLAGS flags of `.rc` source files instead of incorrectly using the `cl` flag table as before. However, our `rc` flag table is not complete. The `/nologo` flag was working before only by accident because the `cl` flag table entry for it happened to match. Add the proper entry to the `rc` flag table. Fixes: #16991
* | | | | Merge topic 'vs-cuda-fix-flags'Brad King2017-06-223-0/+9
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b754215 VS: Improve workaround for CUDA -Xcompiler placement bug f2059585 VS: Fix target_compile_options for CUDA Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !996
| * | | | VS: Improve workaround for CUDA -Xcompiler placement bugBrad King2017-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit v3.9.0-rc1~431^2~6 (VS: Place CUDA host compiler options in proper project file fields, 2017-03-07) we worked around a bug in the CUDA VS integration by dropping `AdditionalCompilerOptions`. However, this silently drops `-Xcompiler=` options given by the user that don't map to one of CudaCompile's dedicated settings. Improve the workaround to instead put the remaining `AdditionalCompilerOptions` into the `AdditionalOptions` field behind `-Xcompiler=` ourselves.
| * | | | VS: Fix target_compile_options for CUDABrad King2017-06-212-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the VS generator to honor `COMPILE_OPTIONS` for CUDA. The exclusion added by commit v3.9.0-rc1~431^2~7 (VS: Do not pass CUDA compile options to C compiler, 2017-03-07) was correct but we need additional logic to pass the CUDA compile options to the CUDA compiler. Also we should still pass the CXX or C options to MSVC (ClCompile) when those languages are enabled even if the link language is CUDA.
* | | | | Merge topic 'cuda-macos-rpath-in-tests'Brad King2017-06-227-23/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fff782f6 Tests: Simplify CUDA rpath on macOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !995
| * | | | | Tests: Simplify CUDA rpath on macOSBrad King2017-06-217-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the `BUILD_RPATH` property and reference the CMake-computed location of the runtime libraries.
* | | | | | Merge topic 'vs_fix_configuration_error'Brad King2017-06-221-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0db4c7a0 Tests: Verify registry value is not "/registry" before using Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !994
| * | | | | | Tests: Verify registry value is not "/registry" before usingMichael Stürmer2017-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #17002
* | | | | | | Merge topic 'vs_csharp_link_to_managed_cxx'Brad King2017-06-225-0/+54
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | / / | | |_|_|/ / | |/| | | | | | | | | | | | | | | | 51865fc6 Vs: allow CSharp targets to be linked to CXX targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !993
| * | | | | Vs: allow CSharp targets to be linked to CXX targetsMichael Stürmer2017-06-215-0/+54
| | |/ / / | |/| | | | | | | | | | | | | Fixes: #16755
* | | | | Autogen: Q_OBJECT behind brace testSebastian Holtermann2017-06-206-9/+65
| |/ / / |/| | |
* | | | Merge topic 'doc-test-layout'Brad King2017-06-152-39/+31
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1c547152 Tests: Document test directory layout in a README.rst 4e3483c0 Help/dev: Update source code guide to cover source tree layout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !967
| * | | | Tests: Document test directory layout in a README.rstBrad King2017-06-142-39/+31
| | | | | | | | | | | | | | | | | | | | | | | | | Cross-reference the CMake Source Code Guide document. Also drop the outdated `Tests/README` file.
* | | | | Merge topic 'vs_csharp_prop_for_all_extensions'Brad King2017-06-152-15/+42
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c90630c5 Vs: add support for VS_CSHARP_* target property for additional file extensions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !961
| * | | | | Vs: add support for VS_CSHARP_* target property for additional file extensionsMichael Stürmer2017-06-132-15/+42
| | |_|_|/ | |/| | | | | | | | | | | | | Fixes: #16726
* | | | | Merge topic 'ipo-per-lang'Brad King2017-06-159-13/+13
|\ \ \ \ \ | |_|/ / / |/| | / / | | |/ / | |/| | | | | | | | | | ba247cca IPO: Consider support for each language separately Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !964
| * | | IPO: Consider support for each language separatelyBrad King2017-06-149-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only define `INTERPROCEDURAL_OPTIMIZATION` behavior for C, CXX, and Fortran languages. Do not try to enable support for other languages. Furthermore, each language builds with a different compiler, so check for support by CMake and the compiler for each language independently. Fixes: #16944
* | | | Merge topic 'vs-dotnet-custom-reference-tags'Brad King2017-06-143-0/+69
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 07ec212a VS: add target property VS_DOTNET_REFERENCEPROP_<refname>_TAG_<tagname> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !960
| * | | | VS: add target property VS_DOTNET_REFERENCEPROP_<refname>_TAG_<tagname>Michael Stürmer2017-06-133-0/+69
| | |/ / | |/| | | | | | | | | | Fixes: #16689
* | | | Autogen: Tests: Disable some tests on non ASCII build pathsSebastian Holtermann2017-06-132-23/+51
| | | |
* | | | Autogen: Tests fix for utf8 pathsSebastian Holtermann2017-06-121-2/+2
|/ / /
* | | Merge topic 'execute_process-pipeline-results'Brad King2017-06-125-1/+171
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | d6051ca3 execute_process: Add option to get results of every child Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !702
| * | | execute_process: Add option to get results of every childAdam Weisi2017-06-105-1/+171
| |/ / | | | | | | | | | | | | Add a `RESULTS_VARIABLE` option to get the results of all children in a pipeline of one or more `COMMAND`s.
* | | Merge topic 'cuda-compiler-launcher'Brad King2017-06-127-5/+26
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 414438b2 CUDA: Add option to run the compiler through launcher tools Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !949
| * | | CUDA: Add option to run the compiler through launcher toolsBrad King2017-06-097-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `CUDA_COMPILER_LAUNCHER` target property like those added for C and CXX by commit v3.4.0-rc1~450^2 (Add options to launch the compiler through tools like ccache or distcc, 2015-06-04). Fixes: #16953
* | | | file(GENERATE): Add policy CMP0070 to define relative path behaviorBrad King2017-06-099-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously `file(GENERATE)` did not define any behavior for relative paths given to the `OUTPUT` or `INPUT` arguments. Define behavior consistent with CMake conventions and add a policy to provide compatibility for projects that relied on the old accidental behavior. Fixes: #16786
* | | | Tests: Use full output paths in file(GENERATE) callsBrad King2017-06-0815-16/+16
|/ / / | | | | | | | | | | | | We don't define behavior for relative paths to the OUTPUT argument. Fix our tests to use full paths.
* | | cmake_host_system_information: Add more keywordsFlorian Maushart2017-06-051-0/+19
|/ / | | | | | | | | Extend the `cmake_host_system_information()` command to add processor identification keywords.
* | Merge topic 'GoogleTest-disabled-tests'Brad King2017-06-052-1/+29
|\ \ | | | | | | | | | | | | | | | | | | | | | 92bbb706 GoogleTest: Add support for disabled tests Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Craig Scott <craig.scott@crascit.com> Merge-request: !920
| * | GoogleTest: Add support for disabled testsChuck Atkins2017-06-052-1/+29
| | | | | | | | | | | | Fixes: #10612
* | | Merge topic 'test-GNUInstallDirs-FreeBSD'Brad King2017-06-057-8/+136
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 913736f1 Tests: Fix RunCMake.GNUInstallDirs on BSD platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !921
| * | | Tests: Fix RunCMake.GNUInstallDirs on BSD platformsBrad King2017-06-027-8/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The `GNUInstallDirs` module has different defaults on BSD platforms. Update the test expected output to account for the difference. Fixes: #16887
* | | | Merge topic 'ninja-mingw'Brad King2017-06-011-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82badfff Ninja: Fix CMP0058 on MinGW c5ff50fc Tests: Fix CustomCommandByproducts regex for phony rules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !919
| * | | | Tests: Fix CustomCommandByproducts regex for phony rulesBrad King2017-05-311-1/+1
| |/ / / | | | | | | | | | | | | Update the regex to match phony rules that have no inputs.
* | | | Merge topic 'add-common-record-features-macros'Brad King2017-06-017-44/+87
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3c1ecb52 Intel: Fix missing C std default for 12.0 <= ver < 12.1 f70b0bb3 SunPro: Make sure all known versions get CXX98 defaults 220ede74 GNU: Fix language defaults for 3.4 a40e6ba8 Clang: Fix language defaults for 2.1 9b112a84 Compilers: Port to use default cmake_record_lang_compile_features macros 37221529 MSVC: Add empty definitions for std compile options e556f1b9 CompileFeatures: Makes tests work with meta-feature only 20ffa147 Tests: Allow test macro to take no executable arguments ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !833
| * | | | CompileFeatures: Makes tests work with meta-feature onlyChuck Atkins2017-05-297-42/+81
| | | | |