From 1228e9c0ba03dc59a8f68842a330b0a91f452d20 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 27 Feb 2020 13:45:35 +0000 Subject: 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 --- sdk/sdk_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sdk/sdk_test.go') 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`), + ) +} -- cgit v1.2.3-59-g8ed1b