summaryrefslogtreecommitdiff
path: root/sdk/sdk_test.go
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2020-02-27 13:45:35 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2020-03-04 14:20:46 +0000
commit1228e9c0ba03dc59a8f68842a330b0a91f452d20 (patch)
tree54ff6981852c64594e5f0c8ac01af29d6da56a5e /sdk/sdk_test.go
parent20bacabe0bb0b1a13a0e614feb8798255b1c1fa8 (diff)
Add a nice install paths for module SDKs and exports.
Following how NDK also creates its own install path. Bug: 142935992 Test: cc_sdk_test.go, java_sdk_test.go Change-Id: I98a3656903f37f6d7c90e6cf609431b2461a6161
Diffstat (limited to 'sdk/sdk_test.go')
-rw-r--r--sdk/sdk_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go
index d06401a0e..243b9768d 100644
--- a/sdk/sdk_test.go
+++ b/sdk/sdk_test.go
@@ -205,3 +205,19 @@ sdk_snapshot {
}
`))
}
+
+func TestSDkInstall(t *testing.T) {
+ sdk := `
+ sdk {
+ name: "mysdk",
+ }
+ `
+ result := testSdkWithFs(t, ``,
+ map[string][]byte{
+ "Android.bp": []byte(sdk),
+ })
+
+ result.CheckSnapshot("mysdk", "",
+ checkAllOtherCopyRules(`.intermediates/mysdk/common_os/mysdk-current.zip -> mysdk-current.zip`),
+ )
+}