Skip to content
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

glib: refactor test package #24054

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

ErniGH
Copy link
Contributor

@ErniGH ErniGH commented May 21, 2024

Simplify the test_package in according to our policies:

  • Write the minimal test that tests the package (the compiler can find the correct includes, the static linker can resolve
    symbols, the runtime linker can resolve symbols).
  • Do not perform heavy logic in CI.
  • Remove binary blob - these have not been allowed anywhere in the repository for a while now, it's time to drop them where they exist

@ericLemanissier
Copy link
Contributor

The build is now finished. You can take a look at the results here

Copy link
Contributor

@ericLemanissier ericLemanissier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the PR description could be reworded to match the actual change: Remove pkg-config from the test, and use only CMake on all platforms
Because apart from that, the test is not more minimal (same test_package.c, and same executable is run), there is no suppression of either heavy logic or binary blob

Comment on lines -29 to -35
if self.settings.os == "Macos":
env = Environment()
# Avoid conflicts with system libiconv
# see: https://github.com/conan-io/conan-center-index/pull/17610#issuecomment-1552921286
env.define_path("DYLD_FALLBACK_LIBRARY_PATH", "$DYLD_LIBRARY_PATH")
env.define_path("DYLD_LIBRARY_PATH", "")
env.vars(self, scope="run").save_script("conanrun_macos_runtimepath")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@conan-center-bot

This comment has been minimized.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 5 (6da8cefaa91bc690d42df1ec53420bb70a0c060c):

  • glib/2.78.3:
    All packages built successfully! (All logs)

  • glib/2.78.1:
    All packages built successfully! (All logs)

  • glib/2.78.0:
    All packages built successfully! (All logs)

  • glib/2.77.2:
    All packages built successfully! (All logs)

  • glib/2.77.3:
    All packages built successfully! (All logs)

  • glib/2.77.1:
    All packages built successfully! (All logs)

  • glib/2.77.0:
    All packages built successfully! (All logs)

  • glib/2.75.3:
    All packages built successfully! (All logs)

  • glib/2.76.3:
    All packages built successfully! (All logs)

@ericLemanissier
Copy link
Contributor

The build is now finished. You can take a look at the results here

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost ghost mentioned this pull request May 23, 2024
3 tasks
@conan-center-bot conan-center-bot merged commit bd117f0 into conan-io:master Jun 3, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants