diff options
| author | 2019-06-11 12:31:14 +0100 | |
|---|---|---|
| committer | 2019-06-13 19:15:10 +0100 | |
| commit | 52d398a84197053a624c13a0bc1cfb78df996966 (patch) | |
| tree | d65ee1085e8111e36abc2f1d42b1400de1434d61 /java/java_test.go | |
| parent | 250e6198d45d7d29bea4c121d42afc8cb6a672d9 (diff) | |
Add sdk_version:"none" to replace no_standard_libs:true
Where possible this duplicates any tests that use no_standard_libs:true
with ones that use sdk_version:"none". If not possible (e.g. in the
default targets included in java/testing.go) it switches some to use
sdk_version:"none" to ensure that there is no regression in the
behavior of no_standard_libs:true.
Follow up changes will switch all usages of no_standard_libs:true over
to use sdk_version:"none" at which point no_standard_libs will be
removed.
Bug: 134566750
Test: m droid
Change-Id: I5f0fd3daa980f6b223abe454cba7f25a97a39d7a
Diffstat (limited to 'java/java_test.go')
| -rw-r--r-- | java/java_test.go | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go index 4c8367bb9..cecc8dacd 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -842,6 +842,19 @@ func TestExcludeFileGroupInSrcs(t *testing.T) {  	}  } +func TestJavaLibrary(t *testing.T) { +	config := testConfig(nil) +	ctx := testContext(config, "", map[string][]byte{ +		"libcore/Android.bp": []byte(` +				java_library { +						name: "core", +						sdk_version: "none", +						system_modules: "none", +				}`), +	}) +	run(t, ctx, config) +} +  func TestJavaSdkLibrary(t *testing.T) {  	ctx := testJava(t, `  		droiddoc_template {  |