Skip to content

cmake: extend integration tests #17203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 44 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 27, 2025

  • GHA: add cmake integration tests for Windows.
  • make them run faster with prefill, unity, Ninja, omitting curl tool.
  • also test static libcurl.
  • add old-cmake support with auto-detection.
  • auto-detect Ninja.
  • run consumer test apps to see if they work.
  • add support for Windows.
  • make it more verbose.
  • re-add ExternalProject cmake consumer test. It's broken.
  • tidy up terminology.

Cherry-picked from #16973

@vszakats vszakats marked this pull request as draft April 27, 2025 10:27
@github-actions github-actions bot added tests CI Continuous Integration labels Apr 27, 2025
vszakats added 26 commits April 27, 2025 12:59
To avoid weird error affected new cmake, --verbose seems to
accept an option?
This reverts commit de2be21.
Broken (both with old and new cmake):
```
-- TEST_INTEGRATION_MODE: ExternalProject
CMake Error at CMakeLists.txt:49 (find_package):
  Could not find a package configuration file provided by "CURL" with any of
  the following names:

    CURLConfig.cmake
    curl-config.cmake

  Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
  "CURL_DIR" to a directory containing one of the above files.  If "CURL"
  provides a separate development package or SDK, be sure it has been
  installed.
```
@vszakats vszakats changed the title [TEST] cmake: integration tests w/o imported targets cmake: extend integration tests Apr 27, 2025
@vszakats vszakats marked this pull request as ready for review April 27, 2025 11:05
@vszakats
Copy link
Member Author

Curious surprise this works out of the box. It either means these tests still
don't actually test stuff we'd like to test, or that the notion of IMPORTED
targets is unnecessary. It'd guess it's the former. Either way this PR is fine
to merge.

@vszakats vszakats closed this in e2a23d5 Apr 27, 2025
@vszakats vszakats deleted the cm-test-wo-iface-tgt branch April 27, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration tests
Development

Successfully merging this pull request may close these issues.

1 participant