Merge "Add TestBasicSdkWithBootImage" am: e835389123
am: 04610e24a6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1645681 Change-Id: Id0eeb1bcb15c75c83b594583299630aff712bfa5
This commit is contained in:
@@ -67,3 +67,39 @@ sdk_snapshot {
|
|||||||
`),
|
`),
|
||||||
checkAllCopyRules(""))
|
checkAllCopyRules(""))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test that boot_image works with sdk.
|
||||||
|
func TestBasicSdkWithBootImage(t *testing.T) {
|
||||||
|
android.GroupFixturePreparers(
|
||||||
|
prepareForSdkTestWithApex,
|
||||||
|
prepareForSdkTestWithJava,
|
||||||
|
android.FixtureWithRootAndroidBp(`
|
||||||
|
sdk {
|
||||||
|
name: "mysdk",
|
||||||
|
boot_images: ["mybootimage"],
|
||||||
|
}
|
||||||
|
|
||||||
|
boot_image {
|
||||||
|
name: "mybootimage",
|
||||||
|
image_name: "art",
|
||||||
|
apex_available: ["myapex"],
|
||||||
|
}
|
||||||
|
|
||||||
|
sdk_snapshot {
|
||||||
|
name: "mysdk@1",
|
||||||
|
boot_images: ["mybootimage_mysdk_1"],
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuilt_boot_image {
|
||||||
|
name: "mybootimage_mysdk_1",
|
||||||
|
sdk_member_name: "mybootimage",
|
||||||
|
prefer: false,
|
||||||
|
visibility: ["//visibility:public"],
|
||||||
|
apex_available: [
|
||||||
|
"myapex",
|
||||||
|
],
|
||||||
|
image_name: "art",
|
||||||
|
}
|
||||||
|
`),
|
||||||
|
).RunTest(t)
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user