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
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"android/soong/android"
|
||||
)
|
||||
|
||||
func TestSnapshotWithBootImage(t *testing.T) {
|
||||
result := testSdkWithJava(t, `
|
||||
sdk {
|
||||
name: "mysdk",
|
||||
boot_images: ["mybootimage"],
|
||||
}
|
||||
result := android.GroupFixturePreparers(
|
||||
prepareForSdkTestWithJava,
|
||||
android.FixtureWithRootAndroidBp(`
|
||||
sdk {
|
||||
name: "mysdk",
|
||||
boot_images: ["mybootimage"],
|
||||
}
|
||||
|
||||
boot_image {
|
||||
name: "mybootimage",
|
||||
image_name: "art",
|
||||
}
|
||||
`)
|
||||
boot_image {
|
||||
name: "mybootimage",
|
||||
image_name: "art",
|
||||
}
|
||||
`),
|
||||
).RunTest(t)
|
||||
|
||||
CheckSnapshot(t, result, "mysdk", "",
|
||||
checkUnversionedAndroidBpContents(`
|
||||
|
|
Loading…
Reference in New Issue