summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge topic 'test-eol'Brad King2022-11-012-3/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4180159758 Tests: Provide RunCMake.CommandLine compare_files data more robustly Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7852
| * | | | | | Tests: Provide RunCMake.CommandLine compare_files data more robustlyBrad King2022-10-312-3/+3
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `lf` and `crlf` files need to have exact LF and CRLF newlines, respectively. Previously we used the Git `eol` attribute for this, but occasionally the Git work tree ends up without the conversion. It is unclear why that happens, so try to avoid the problem by treating their content as binary instead.
* | | | | | Merge topic 'cmp0141-pch-reuse'Brad King2022-11-0116-30/+25
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 183b9a9eca CMP0141: Fix PCH REUSE_FROM under policy NEW behavior 4d13f472a2 Tests: Drop redundant project init from RunCMake.PrecompileHeaders cases 2e65fe92db cmLocalGenerator: Clarify name of local PDB type variable 17096aeba8 cmLocalGenerator: Factor out helper to compute MSVC_DEBUG_INFORMATION_FORMAT Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7854
| * | | | CMP0141: Fix PCH REUSE_FROM under policy NEW behaviorBrad King2022-10-314-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under the CMP0141 NEW behavior added by commit 0e96a20478 (MSVC: Add abstraction for debug information format, 2022-08-25, v3.25.0-rc1~142^2~1), the `-Zi` and `-ZI` flags do not appear in `CMAKE_<LANG>_FLAGS_<CONFIG>` anymore. Teach the PCH REUSE_FROM implementation to recognize the `EditAndContinue` and `ProgramDatabase` debug information formats through the policy's new abstraction. Fixes: #24106
| * | | | Tests: Drop redundant project init from RunCMake.PrecompileHeaders casesBrad King2022-10-3113-29/+19
| | | | | | | | | | | | | | | | | | | | | | | | | The `CMakeLists.txt` file already calls `cmake_minimum_required` and `project` before including each case's code.
| * | | | Merge topic 'vs-dotnetsdk-arm64' into release-3.25Brad King2022-10-311-2/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9a0ca7df67 Tests: Fix RunCMake.VsDotnetSdk with VS >= 17.3 on ARM64 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7842
| * \ \ \ \ Merge topic 'ninja-showIncludes-encoding' into release-3.25Brad King2022-10-3112-0/+104
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a0d4e3bf34 cmGeneratedFileStream: Drop unused WriteRaw method 2e5af30ce0 Ninja: Match showIncludes dependencies using console output code page e1c1679148 cm_codecvt: Add support for the Windows console output code page 328c15189d cmGeneratedFileStream: Add support for a temporary alternate encoding Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7845
* | \ \ \ \ \ Merge topic 'tests-FindPkgConfig'Brad King2022-10-313-31/+47
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fc8f8d82f2 Tests: Disable parts of FindPkgConfig tests without wide supported 96d7b5a6d1 Tests: pkg_check_modules() doesn't allow spaces in a moduleSpec afd1b28cea Tests: Disable broken FindPkgConfig test cases for Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7847
| * | | | | | | Tests: Disable parts of FindPkgConfig tests without wide supportedCraig Scott2022-10-291-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some pkg-config implementations on Windows don't return the same results as those on other platforms. They appear to be bugs in those implementations, the one that comes with Strawberry perl being one case where this was observed. The handling of Libs and Cflags entries is incomplete, resulting in some flags not being reported where they should be. These are faults in the pkg-config implementation, not in CMake or its tests, so we disable those parts of the tests on Windows to avoid reporting false positives.
| * | | | | | | Tests: pkg_check_modules() doesn't allow spaces in a moduleSpecCraig Scott2022-10-291-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation of pkg_check_modules() is a little ambiguous about whether spaces are allowed in a moduleSpec that includes a version constraint. All examples in the docs do not have spaces, so it could be claimed spaces are not supported. The tests fail on Windows when spaces are included, likely because some pkg-config implementations don't support that. Update the tests to not assume spaces are supported as part of a moduleSpec.
| * | | | | | | Tests: Disable broken FindPkgConfig test cases for WindowsCraig Scott2022-10-291-6/+11
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Windows implementation of these tests have been found to not handle Windows paths and path separators properly in a number of areas. The whole approach taken in these tests appears dubious, so they may need to be significantly rewritten. Disable them until then so we don't get false positives. Issue: #22031
* | | | | | | Merge topic 'vs-CLRSupport'Brad King2022-10-319-0/+127
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eef13a4b33 VS: Add COMMON_LANGUAGE_RUNTIME support for "netcore" 0815329dbc Help: Format COMMON_LANGUAGE_RUNTIME values as a definition list Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7807
| * | | | | | | VS: Add COMMON_LANGUAGE_RUNTIME support for "netcore"ζeh Matt2022-10-289-0/+127
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generate `CLRSupport` for Visual Studio projects. Fixes: #22054
* | | | | | | Merge topic 'vs-dotnetsdk-arm64'Brad King2022-10-311-2/+8
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9a0ca7df67 Tests: Fix RunCMake.VsDotnetSdk with VS >= 17.3 on ARM64 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7842
| * | | | | | Tests: Fix RunCMake.VsDotnetSdk with VS >= 17.3 on ARM64Anthony Roberts2022-10-281-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VS 17.3 provides an arm64-native version of the tool, but the test was looking for the x64 version.
* | | | | | | Merge topic 'ninja-showIncludes-encoding'Brad King2022-10-3112-0/+104
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a0d4e3bf34 cmGeneratedFileStream: Drop unused WriteRaw method 2e5af30ce0 Ninja: Match showIncludes dependencies using console output code page e1c1679148 cm_codecvt: Add support for the Windows console output code page 328c15189d cmGeneratedFileStream: Add support for a temporary alternate encoding Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7845
| * | | | | | Ninja: Match showIncludes dependencies using console output code pageBrad King2022-10-3012-0/+104
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generalize the fix from commit 37a279f8d1 (Ninja: Write msvc_deps_prefix as UTF-8 when console codepage is UTF-8, 2020-07-31, v3.19.0-rc1~349^2). `cl /showIncludes` output is encoded using the console output code page, so this is the byte sequence that Ninja must use to match its lines. Fixes: #24068
* | | | | | Merge topic 'xcode-obj-dir'Brad King2022-10-317-8/+19
|\ \ \ \ \ \ | |_|/ / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | 024e3d2bf6 Xcode: Put object files in a place that Xcode cleans Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7843
| * | | | Xcode: Put object files in a place that Xcode cleansBrad King2022-10-287-8/+19
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit dc5fc898f6 (Xcode: Set object file locations using TARGET_TEMP_DIR, 2022-09-29, v3.25.0-rc1~64^2~1), `xcodebuild clean` does not remove the object files in our explicit `TARGET_TEMP_DIR` because it is not under the `SYMROOT`. Put it there. Fixes: #24096
| * | | Merge topic 'cmake-presets-workflow-arguments' into release-3.25Brad King2022-10-276-3/+46
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7ecbe324b0 cmake --workflow: add --fresh option 7d9aa0f00c cmake::Workflow: Refactor to use enum class argument 322193afcd cmake --workflow: print usage and exit on unrecognized argument 70aef29427 cmake --workflow: print usage message Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7825
| * \ \ \ Merge topic 'ninja-intl-paths' into release-3.25Brad King2022-10-274-0/+22
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | a12050666c Tests: Add case for ninja with non-ascii chars 02a04dd9c7 Ninja: Restore support for non-ascii paths on Windows with ninja<=1.10 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7833
| * | | | Merge topic 'try_compile-CMP0128' into release-3.25Brad King2022-10-251-4/+5
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 90287792b6 Tests: Avoid running C++11 test on GNU < 4.7 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7821
* | | | | | string(TIMESTAMP): Add %z and %Z for adding time zone stringVasiliy Koyrev2022-10-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #24056
* | | | | | Merge topic 'cmake-presets-workflow-arguments'Brad King2022-10-276-3/+46
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7ecbe324b0 cmake --workflow: add --fresh option 7d9aa0f00c cmake::Workflow: Refactor to use enum class argument 322193afcd cmake --workflow: print usage and exit on unrecognized argument 70aef29427 cmake --workflow: print usage message Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7825
| * | | | | cmake --workflow: add --fresh optionKyle Edwards2022-10-263-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #24073
| * | | | | cmake --workflow: print usage and exit on unrecognized argumentKyle Edwards2022-10-264-0/+9
| |/ / / / | | | | | | | | | | | | | | | Issue: #24073
| * | | | Merge topic 'cmake-presets-output-junit' into release-3.25Brad King2022-10-1910-2/+66
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bea4ed5430 CTest: Add support for outputJUnitFile in presets 9270a02003 CMakePresets.json: Add outputJUnitFile to test presets schema 757786bb73 Tests: Add test for outputLogFile in CMakePresets.json b68c3596e7 CMakePresets.json: Disallow extra properties in test output schema Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !7806
| * \ \ \ \ Merge topic 'try_compile-CMP0128' into release-3.25Brad King2022-10-195-0/+66
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 50e90e2828 try_compile: Honor CMP0128 setting in test project Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !7803
* | \ \ \ \ \ Merge topic 'ninja-intl-paths'Brad King2022-10-274-0/+22
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | / | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | a12050666c Tests: Add case for ninja with non-ascii chars 02a04dd9c7 Ninja: Restore support for non-ascii paths on Windows with ninja<=1.10 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7833
| * | | | | Tests: Add case for ninja with non-ascii charsBrad King2022-10-264-0/+22
| | |_|_|/ | |/| | | | | | | | | | | | | Issue: #24089
* | | | | Merge topic 'try_compile-CMP0128'Brad King2022-10-251-4/+5
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | 90287792b6 Tests: Avoid running C++11 test on GNU < 4.7 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7821
| * | | | Tests: Avoid running C++11 test on GNU < 4.7Brad King2022-10-241-4/+5
| | |/ / | |/| | | | | | | | | | | | | | | | | | The test added in commit 50e90e2828 (try_compile: Honor CMP0128 setting in test project, 2022-10-18, v3.25.0-rc2~4^2) requires that the compiler support C++11 mode, so do not run it on GNU compilers that are too old.
* | | | Merge topic 'CheckSourceCompiles-Swift'Brad King2022-10-253-1/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3fc971c38b CheckSourceCompiles: For Swift executable, name source 'main.swift' 2345139ab5 CheckSourceCompiles: Add support for Swift 4451a1f54f Tests: Factor out a CMake_TEST_Swift variable for Swift test conditions f78ad6223a Tests: Provide Apple inspection results to CMakeOnly and RunCMake tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Saleem Abdulrasool <compnerd@compnerd.org> Merge-request: !7783
| * | | | CheckSourceCompiles: Add support for SwiftEvan Wilde2022-10-243-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | Plumb through swift `check_source_compiles` support. Add tests to check that valid swift sources compile and invalid sources don't.
* | | | | Merge topic 'set_environment_generator'Brad King2022-10-244-0/+11
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3c3bce133d cmake: Honor CMAKE_GENERATOR env var in --help output Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Merge-request: !7808
| * | | | | cmake: Honor CMAKE_GENERATOR env var in --help outputJuan Ramos2022-10-214-0/+11
| | | | | |
* | | | | | Merge topic 'cmake-presets-output-junit'Brad King2022-10-1910-2/+66
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bea4ed5430 CTest: Add support for outputJUnitFile in presets 9270a02003 CMakePresets.json: Add outputJUnitFile to test presets schema 757786bb73 Tests: Add test for outputLogFile in CMakePresets.json b68c3596e7 CMakePresets.json: Disallow extra properties in test output schema Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !7806
| * | | | | CTest: Add support for outputJUnitFile in presetsKyle Edwards2022-10-186-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #22400
| * | | | | Tests: Add test for outputLogFile in CMakePresets.jsonKyle Edwards2022-10-183-1/+12
| | | | | |
| * | | | | CMakePresets.json: Disallow extra properties in test output schemaKyle Edwards2022-10-184-0/+21
| | |_|_|/ | |/| | | | | | | | | | | | | And add test for testOutputTruncation being unsupported.
* | | | | Merge topic 'try_compile-CMP0128'Brad King2022-10-195-0/+66
|\ \ \ \ \ | |_|/ / / |/| | | / | | |_|/ | |/| | | | | | | | | | | | | | 50e90e2828 try_compile: Honor CMP0128 setting in test project Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !7803
| * | | try_compile: Honor CMP0128 setting in test projectBrad King2022-10-185-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some projects pass a raw `-std=` flag to the compiler in the `try_compile` project. If they do not set CMP0128 to NEW, we should not append a `-std=` flag where we did not before the policy was added. Fixes: #24063
| * | | cmake: In -P mode ignore extra paths on the command lineRobert Maynard2022-07-223-0/+13
| | | | | | | | | | | | | | | | Fixes: #23748
* | | | Merge topic 'trace-try_compile'Brad King2022-10-175-0/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5ba51621af try_compile: Propagate --trace through try_compile Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7757
| * | | | try_compile: Propagate --trace through try_compileMatthew Woehlke2022-10-115-0/+23
| | |_|/ | |/| | | | | | | | | | | | | | Add ability to specify another cmake instance from which to get the trace output target. Use this during try_compile.
* | | | Merge topic 'more-cpp-module-tests'Brad King2022-10-1711-1/+110
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 52e82dbb23 Tests/RunCMake/CXXModules: add a test with duplicate modules e67f5d41af Tests/RunCMake/CXXModules: add a test with circular imports Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7776
| * | | | Tests/RunCMake/CXXModules: add a test with duplicate modulesBen Boeckel2022-10-115-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not in the same executable (as that is IFNDR), but in the same project. This tests to make sure that there's not some project-wide cache that gets confused.
| * | | | Tests/RunCMake/CXXModules: add a test with circular importsBen Boeckel2022-10-117-1/+44
| |/ / / | | | | | | | | | | | | | | | | | | | | The build should fail. However, the error message is completely generator-dependent as it is the build tool which (should) eventually detect this case.
* | | | Merge topic 'xcode-framework-consumption'Brad King2022-10-172-0/+27
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | 4aa86da827 Xcode: ensure framework with custom output directory can be consumed Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jason Juang <jasjuang@gmail.com> Merge-request: !7791
| * | | Xcode: ensure framework with custom output directory can be consumedMarc Chevrier2022-10-142-0/+27
| | | | | | | | | | | | | | | | Fixes: #24046