File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
tests/integration/examples Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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"""
You can’t perform that action at this time.
0 commit comments