summaryrefslogtreecommitdiff
path: root/apex/apex_test.go
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2020-05-28 23:46:55 +0900
committer Jiyong Park <jiyong@google.com> 2020-05-28 23:48:16 +0900
commita62aa2399031a01620775a06dbae53af0cff5a25 (patch)
tree341cba794389df91ac90a867b1ef3e2e0f7fde64 /apex/apex_test.go
parentf455d1fb0a1d732ce9c0e29485c6c9c39c728e2d (diff)
apex respects stem of java_library modules
apex now respects stem of java_library modules. As a follow-up we need to suppor the same for other types of modules. Bug: 157638999 Test: m Change-Id: Iaf5023020b5440f1ffd4f5414b5a7864655fc22a
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r--apex/apex_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go
index 9633f2713..dee7ff246 100644
--- a/apex/apex_test.go
+++ b/apex/apex_test.go
@@ -414,6 +414,7 @@ func TestBasicApex(t *testing.T) {
java_library {
name: "myjar",
srcs: ["foo/bar/MyClass.java"],
+ stem: "myjar_stem",
sdk_version: "none",
system_modules: "none",
static_libs: ["myotherjar"],
@@ -468,7 +469,7 @@ func TestBasicApex(t *testing.T) {
// Ensure that both direct and indirect deps are copied into apex
ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
ensureContains(t, copyCmds, "image.apex/lib64/mylib2.so")
- ensureContains(t, copyCmds, "image.apex/javalib/myjar.jar")
+ ensureContains(t, copyCmds, "image.apex/javalib/myjar_stem.jar")
// .. but not for java libs
ensureNotContains(t, copyCmds, "image.apex/javalib/myotherjar.jar")
ensureNotContains(t, copyCmds, "image.apex/javalib/msharedjar.jar")