Lineage properties support module references.
They should have had `android:"path"` tags attached so that users can point them to filegroup modules. Test: app_test.go & app_import_test.go Bug: 182175153 Change-Id: I5580408488ffe5fc12c869cbfb7a468713dcbc96
This commit is contained in:
@@ -138,6 +138,32 @@ func TestAndroidAppImport_SigningLineage(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestAndroidAppImport_SigningLineageFilegroup(t *testing.T) {
|
||||
ctx, _ := testJava(t, `
|
||||
android_app_import {
|
||||
name: "foo",
|
||||
apk: "prebuilts/apk/app.apk",
|
||||
certificate: "platform",
|
||||
lineage: ":lineage_bin",
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "lineage_bin",
|
||||
srcs: ["lineage.bin"],
|
||||
}
|
||||
`)
|
||||
|
||||
variant := ctx.ModuleForTests("foo", "android_common")
|
||||
|
||||
signedApk := variant.Output("signed/foo.apk")
|
||||
// Check cert signing lineage flag.
|
||||
signingFlag := signedApk.Args["flags"]
|
||||
expected := "--lineage lineage.bin"
|
||||
if expected != signingFlag {
|
||||
t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAndroidAppImport_DefaultDevCert(t *testing.T) {
|
||||
ctx, _ := testJava(t, `
|
||||
android_app_import {
|
||||
|
Reference in New Issue
Block a user