Convert boot_image_sdk_test.go to fixtures
Bug: 182638834 Test: m nothing Change-Id: I8c9cb399b15d04ec8465a3b3bb4b43561aef46fd
This commit is contained in:
parent
cf3ee2f87e
commit
4a1d451405
|
@ -14,20 +14,27 @@
|
||||||
|
|
||||||
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(
|
||||||
sdk {
|
prepareForSdkTestWithJava,
|
||||||
name: "mysdk",
|
android.FixtureWithRootAndroidBp(`
|
||||||
boot_images: ["mybootimage"],
|
sdk {
|
||||||
}
|
name: "mysdk",
|
||||||
|
boot_images: ["mybootimage"],
|
||||||
|
}
|
||||||
|
|
||||||
boot_image {
|
boot_image {
|
||||||
name: "mybootimage",
|
name: "mybootimage",
|
||||||
image_name: "art",
|
image_name: "art",
|
||||||
}
|
}
|
||||||
`)
|
`),
|
||||||
|
).RunTest(t)
|
||||||
|
|
||||||
CheckSnapshot(t, result, "mysdk", "",
|
CheckSnapshot(t, result, "mysdk", "",
|
||||||
checkUnversionedAndroidBpContents(`
|
checkUnversionedAndroidBpContents(`
|
||||||
|
|
Loading…
Reference in New Issue