diff --git a/tests/conanfile.txt b/tests/conanfile.txt index 4f9b601..0e3dab4 100644 --- a/tests/conanfile.txt +++ b/tests/conanfile.txt @@ -2,3 +2,4 @@ zlib/1.3 libxml2/2.11.4 openssl/3.1.3 +lightgbm/4.3.0 diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 05fb3fe..cace399 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -90,3 +90,18 @@ fn host_and_build_profiles() { std::io::stderr().write_all(output.stderr()).unwrap(); assert!(output.is_success()); } + +#[test] +fn test_shared_and_exe_link_flags() { + let output = ConanInstall::with_recipe(Path::new("tests/conanfile.txt")) + .output_folder(Path::new(env!("CARGO_TARGET_TMPDIR"))) + .detect_profile() + .build("missing") + .verbosity(ConanVerbosity::Debug) + .run(); + + assert!(output.is_success()); + let cargo = output.parse(); + let emitted_instructions = String::from_utf8(cargo.as_bytes().to_vec()).expect("Invalid UTF-8"); + assert!(emitted_instructions.contains("cargo:rustc-link-arg-bins=-fopenmp")); +}