summaryrefslogtreecommitdiff
path: root/apex/apex_test.go
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2020-07-28 17:37:46 -0700
committer Yifan Hong <elsk@google.com> 2020-07-30 18:20:37 -0700
commitd22a84a88bf500c29f4d52ff604b64309ba7a0d9 (patch)
tree3a2356fd14500c1f496f70935d037aba3e3f6e0f /apex/apex_test.go
parent4514d96e1856b41581f47363f4797992a7c637de (diff)
Support com.android.gki.* in apex_available.
com.android.gki.* matches any APEX with the prefix com.android.gki., like com.android.gki.bar. Test: use it Bug: 162267963 Change-Id: Ie46fcb08b031611d26b2b6cde157253f51ba9bfc
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r--apex/apex_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go
index 7db61d5cf..690c2f5fd 100644
--- a/apex/apex_test.go
+++ b/apex/apex_test.go
@@ -412,7 +412,14 @@ func TestBasicApex(t *testing.T) {
system_shared_libs: [],
static_executable: true,
stl: "none",
- apex_available: [ "myapex" ],
+ apex_available: [ "myapex", "com.android.gki.*" ],
+ }
+
+ apex {
+ name: "com.android.gki.fake",
+ binaries: ["foo"],
+ key: "myapex.key",
+ file_contexts: ":myapex-file_contexts",
}
cc_library_shared {