Convert boot_image_sdk_test.go to fixtures am: 4a1d451405
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1645679 Change-Id: Ib0c44f2606238f9e438bfbeeda9a9929c87cd7bf
This commit is contained in:
@@ -14,10 +14,16 @@
|
|||||||
|
|
||||||
package sdk
|
package sdk
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"android/soong/android"
|
||||||
|
)
|
||||||
|
|
||||||
func TestSnapshotWithBootImage(t *testing.T) {
|
func TestSnapshotWithBootImage(t *testing.T) {
|
||||||
result := testSdkWithJava(t, `
|
result := android.GroupFixturePreparers(
|
||||||
|
prepareForSdkTestWithJava,
|
||||||
|
android.FixtureWithRootAndroidBp(`
|
||||||
sdk {
|
sdk {
|
||||||
name: "mysdk",
|
name: "mysdk",
|
||||||
boot_images: ["mybootimage"],
|
boot_images: ["mybootimage"],
|
||||||
@@ -27,7 +33,8 @@ func TestSnapshotWithBootImage(t *testing.T) {
|
|||||||
name: "mybootimage",
|
name: "mybootimage",
|
||||||
image_name: "art",
|
image_name: "art",
|
||||||
}
|
}
|
||||||
`)
|
`),
|
||||||
|
).RunTest(t)
|
||||||
|
|
||||||
CheckSnapshot(t, result, "mysdk", "",
|
CheckSnapshot(t, result, "mysdk", "",
|
||||||
checkUnversionedAndroidBpContents(`
|
checkUnversionedAndroidBpContents(`
|
||||||
|
Reference in New Issue
Block a user