Merge "Tag apex_set's 'set' config with android:"path"" am: 76832f5b10

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2232749

Change-Id: I79aee35e9504f2c43ef0b14bbd037810e5e403ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2022-09-27 22:06:56 +00:00 committed by Automerger Merge Worker
commit b56c637eef
2 changed files with 26 additions and 4 deletions

View file

@ -7276,6 +7276,28 @@ func TestAppSetBundlePrebuilt(t *testing.T) {
android.AssertStringEquals(t, "myapex input", extractorOutput, copiedApex.Input.String()) android.AssertStringEquals(t, "myapex input", extractorOutput, copiedApex.Input.String())
} }
func TestApexSetApksModuleAssignment(t *testing.T) {
ctx := testApex(t, `
apex_set {
name: "myapex",
set: ":myapex_apks_file",
}
filegroup {
name: "myapex_apks_file",
srcs: ["myapex.apks"],
}
`)
m := ctx.ModuleForTests("myapex.apex.extractor", "android_common")
// Check that the extractor produces the correct apks file from the input module
extractorOutput := "out/soong/.intermediates/myapex.apex.extractor/android_common/extracted/myapex.apks"
extractedApex := m.Output(extractorOutput)
android.AssertArrayString(t, "extractor input", []string{"myapex.apks"}, extractedApex.Inputs.Strings())
}
func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, preparer android.FixturePreparer, fragments ...java.ApexVariantReference) { func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, preparer android.FixturePreparer, fragments ...java.ApexVariantReference) {
t.Helper() t.Helper()

View file

@ -840,17 +840,17 @@ type ApexSet struct {
type ApexExtractorProperties struct { type ApexExtractorProperties struct {
// the .apks file path that contains prebuilt apex files to be extracted. // the .apks file path that contains prebuilt apex files to be extracted.
Set *string Set *string `android:"path"`
Sanitized struct { Sanitized struct {
None struct { None struct {
Set *string Set *string `android:"path"`
} }
Address struct { Address struct {
Set *string Set *string `android:"path"`
} }
Hwaddress struct { Hwaddress struct {
Set *string Set *string `android:"path"`
} }
} }