aboutsummaryrefslogtreecommitdiffstats
path: root/java/java_test.go
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2018-01-31 00:20:13 +0900
committerJiyong Park <jiyong@google.com>2018-02-07 07:35:36 +0900
commit750e557011f9bc240276f8bca7d1caca800a7953 (patch)
tree724fc8f0e4be65616ed6ca23fe2b90b6192148b9 /java/java_test.go
parent97754359ccc87fb5a26358998bd6cd1390540250 (diff)
downloadandroid_build_soong-750e557011f9bc240276f8bca7d1caca800a7953.tar.gz
android_build_soong-750e557011f9bc240276f8bca7d1caca800a7953.tar.bz2
android_build_soong-750e557011f9bc240276f8bca7d1caca800a7953.zip
Support sdk_version: "core_current"
core_current is a pseudo SDK version which is a core Java API subset of the Android API. It is expected to be mainly used for external Java projects which are agnostic to Android; such as junit, guava, etc. A module built with this SDK version can only link to java modules of the same kind. It can't depend on modules built with other sdk (e.g. current) or without sdk. Bug: 72206056 Test: m -j Change-Id: I778e7b4fcb9456a12b418ffd633ea78e29951e84
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go
index db0b7a73..60d9a408 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -146,6 +146,7 @@ func testContext(config android.Config, bp string,
"prebuilts/sdk/14/framework.aidl": nil,
"prebuilts/sdk/current/android.jar": nil,
"prebuilts/sdk/current/framework.aidl": nil,
+ "prebuilts/sdk/current/core.jar": nil,
"prebuilts/sdk/system_current/android.jar": nil,
"prebuilts/sdk/system_current/framework.aidl": nil,
"prebuilts/sdk/system_14/android.jar": nil,
@@ -362,6 +363,14 @@ var classpathTestcases = []struct {
},
{
+ name: "core_current",
+ properties: `sdk_version: "core_current",`,
+ bootclasspath: []string{`""`},
+ system: "bootclasspath", // special value to tell 1.9 test to expect bootclasspath
+ classpath: []string{"prebuilts/sdk/current/core.jar"},
+ },
+ {
+
name: "nostdlib",
properties: `no_standard_libs: true, system_modules: "none"`,
system: "none",