Skip to content

Commit

Permalink
add PkgConfigDeps check
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Jan 14, 2025
1 parent 7556383 commit 0dfebbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/graph/test_replace_requires.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ def package_info(self):
self.cpp_info.location = "lib/zlib.lib"
self.cpp_info.set_property("cmake_file_name", "ZLIB")
self.cpp_info.set_property("cmake_target_name", "ZLIB::ZLIB")
self.cpp_info.set_property("pkg_config_name", "ZLIB")
""")
openssl = textwrap.dedent("""
from conan import ConanFile
Expand All @@ -418,7 +419,7 @@ class App(ConanFile):
settings = "build_type"
requires = "openssl/0.1", {zlib}
package_type = "application"
generators = "CMakeDeps"
generators = "CMakeDeps", "PkgConfigDeps"
""")
profile = textwrap.dedent("""
[settings]
Expand All @@ -445,6 +446,10 @@ class App(ConanFile):
assert "add_library(openssl::openssl STATIC IMPORTED)" in cmake
assert "target_link_libraries(openssl::openssl INTERFACE ZLIB::ZLIB)" in cmake

pkg_config = c.load("app/ZLIB.pc")
print(pkg_config)
# TODO: Check here the contents of both ZLIB.pc and openssl.pc

@pytest.mark.parametrize("diamond", [True, False])
def test_openssl_components(self, diamond):
c = TestClient()
Expand Down

0 comments on commit 0dfebbc

Please sign in to comment.