summaryrefslogtreecommitdiff
path: root/java/boot_image_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-03-29 11:02:53 +0100
committer Paul Duffin <paulduffin@google.com> 2021-03-29 11:05:55 +0100
commit4b64ba05b69761f8df40301ab4a56ea46d1b5834 (patch)
tree6f1c75186bbe24f1d0becfabd9f47ecd15eb44ee /java/boot_image_test.go
parent837486d30832a9ba999d7952c171acbb7f933918 (diff)
Add bootclasspath_fragment as an alias for boot_image
This is part of the work to rename boot_image to bootclasspath_fragment which is being done for two reasons: 1. To avoid clashing with the bootimg module type. 2. To better reflect what this represents. While a bootclasspath_fragment can create what ART calls a boot image (which is different to what the bootimg module type represents) it does not have to do so. Bug: 177892522 Test: m nothing Change-Id: Ib45604be7adc790ded9e27a2ac812dd7522ca8db
Diffstat (limited to 'java/boot_image_test.go')
-rw-r--r--java/boot_image_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/boot_image_test.go b/java/boot_image_test.go
index f3d603dd0..37906ff8d 100644
--- a/java/boot_image_test.go
+++ b/java/boot_image_test.go
@@ -41,6 +41,18 @@ func TestUnknownBootImage(t *testing.T) {
`)
}
+func TestUnknownBootclasspathFragmentImageName(t *testing.T) {
+ prepareForTestWithBootImage.
+ ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(
+ `\Qimage_name: Unknown image name "unknown", expected one of art, boot\E`)).
+ RunTestWithBp(t, `
+ bootclasspath_fragment {
+ name: "unknown-boot-image",
+ image_name: "unknown",
+ }
+ `)
+}
+
func TestUnknownPrebuiltBootImage(t *testing.T) {
prepareForTestWithBootImage.
ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(