Propagate transitive missing optional_uses_libs.
Bug: 331528424 Test: m --no-skip-soong-tests Ignore-AOSP-First: Depends on internal changes. Will cherry-pick once merged. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:22154d8c3e82225c2d295f137ec37eebbef70235) Merged-In: Ied2821f11b6a5056ecf577e1e25765bc6dd212c0 Change-Id: Ied2821f11b6a5056ecf577e1e25765bc6dd212c0
This commit is contained in:
committed by
Cherrypicker Worker
parent
2665d27939
commit
b7bc8d9508
@@ -3244,7 +3244,10 @@ func TestUsesLibraries(t *testing.T) {
|
||||
name: "static-y",
|
||||
srcs: ["a.java"],
|
||||
uses_libs: ["runtime-required-y"],
|
||||
optional_uses_libs: ["runtime-optional-y"],
|
||||
optional_uses_libs: [
|
||||
"runtime-optional-y",
|
||||
"missing-lib-a",
|
||||
],
|
||||
sdk_version: "current",
|
||||
}
|
||||
|
||||
@@ -3341,7 +3344,8 @@ func TestUsesLibraries(t *testing.T) {
|
||||
`--optional-uses-library bar ` +
|
||||
`--optional-uses-library runtime-optional-x ` +
|
||||
`--optional-uses-library runtime-optional-y ` +
|
||||
`--missing-optional-uses-library missing-lib-b `
|
||||
`--missing-optional-uses-library missing-lib-b ` +
|
||||
`--missing-optional-uses-library missing-lib-a`
|
||||
android.AssertStringDoesContain(t, "verify cmd args", verifyCmd, verifyArgs)
|
||||
|
||||
// Test that all libraries are verified for an APK (library order matters).
|
||||
|
Reference in New Issue
Block a user