diff options
author | 2020-07-09 12:32:31 +0000 | |
---|---|---|
committer | 2020-07-09 12:32:31 +0000 | |
commit | 2c79c871d9a7e521a77a9fd0466eb932f5c92cc1 (patch) | |
tree | 605d7e000717a5de221f004ce04e738376e4fca5 /apex/apex_test.go | |
parent | 4e7408266597a6f808513d98bcaee068f282147d (diff) | |
parent | 26ab8e80e49640943fb06e1e62a9c1964b2debf6 (diff) |
Merge changes Iefcf4fbe,I450d4769,I1ffc7e7b
* changes:
Prepend default to allow overriding in the bp file.
Do not follow SDK member dependencies for APEX payloads.
Do not follow prebuiltDependencyTags in APEX payload walks.
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r-- | apex/apex_test.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index c2cb2006d..f06433848 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -5791,6 +5791,41 @@ func TestAllowedFiles(t *testing.T) { } } +func TestNonPreferredPrebuiltDependency(t *testing.T) { + _, _ = testApex(t, ` + apex { + name: "myapex", + key: "myapex.key", + native_shared_libs: ["mylib"], + } + + apex_key { + name: "myapex.key", + public_key: "testkey.avbpubkey", + private_key: "testkey.pem", + } + + cc_library { + name: "mylib", + srcs: ["mylib.cpp"], + stubs: { + versions: ["10000"], + }, + apex_available: ["myapex"], + } + + cc_prebuilt_library_shared { + name: "mylib", + prefer: false, + srcs: ["prebuilt.so"], + stubs: { + versions: ["10000"], + }, + apex_available: ["myapex"], + } + `) +} + func TestMain(m *testing.M) { run := func() int { setUp() |