Skip to content

Commit 57c72eb

Browse files
committed
Revert "Remove Duplicate Test"
This reverts commit 5c781a2.
1 parent 5c781a2 commit 57c72eb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/integration/examples/test_conan_cmake.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,26 @@ def test_simple(example_runner: CliRunner) -> None:
8484
publish_project = TestConanCMake._create_project(skip_upload=True)
8585
publish_project.publish()
8686

87+
@staticmethod
88+
def test_library(example_runner: CliRunner) -> None:
89+
"""Test library creation and packaging workflow"""
90+
# Create project and install dependencies
91+
project = TestConanCMake._create_project(skip_upload=False)
92+
project.install()
93+
94+
# Configure, build, and verify
95+
TestConanCMake._run_cmake_configure()
96+
TestConanCMake._run_cmake_build()
97+
build_path = TestConanCMake._verify_build_artifacts()
98+
99+
# Verify library files exist (platform-specific)
100+
lib_files = list(build_path.glob('**/libmathutils.*')) + list(build_path.glob('**/mathutils.lib'))
101+
assert len(lib_files) > 0, f'No library files found in {build_path}'
102+
103+
# Package the library to local cache
104+
publish_project = TestConanCMake._create_project(skip_upload=True)
105+
publish_project.publish()
106+
87107
@staticmethod
88108
def _publish_library_to_cache() -> None:
89109
"""Helper method to publish the library to local Conan cache"""

0 commit comments

Comments
 (0)