diff options
author | 2019-11-07 02:16:29 +0000 | |
---|---|---|
committer | 2019-11-07 02:16:29 +0000 | |
commit | b9a80a071657aacec5c03a5b5baa2ec0d2f5a729 (patch) | |
tree | 91a11232c9e2e732f088db0dc7c510e3edc45596 /sdk/sdk_test.go | |
parent | c48ea97c9c8b7395c645f83b8b825012657c0c0a (diff) | |
parent | 100f3fd118b60a816f9ccc5477ad4372c469fafc (diff) |
Merge "sdk modules are by default compile_multilib: "both""
Diffstat (limited to 'sdk/sdk_test.go')
-rw-r--r-- | sdk/sdk_test.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go index 664bb7c98..96129b838 100644 --- a/sdk/sdk_test.go +++ b/sdk/sdk_test.go @@ -377,6 +377,35 @@ func TestDepNotInRequiredSdks(t *testing.T) { `) } +func TestSdkIsCompileMultilibBoth(t *testing.T) { + ctx, _ := testSdk(t, ` + sdk { + name: "mysdk", + native_shared_libs: ["sdkmember"], + } + + cc_library_shared { + name: "sdkmember", + srcs: ["Test.cpp"], + system_shared_libs: [], + stl: "none", + } + `) + + armOutput := ctx.ModuleForTests("sdkmember", "android_arm_armv7-a-neon_core_shared").Module().(*cc.Module).OutputFile() + arm64Output := ctx.ModuleForTests("sdkmember", "android_arm64_armv8-a_core_shared").Module().(*cc.Module).OutputFile() + + var inputs []string + buildParams := ctx.ModuleForTests("mysdk", "android_common").Module().BuildParamsForTests() + for _, bp := range buildParams { + inputs = append(inputs, bp.Implicits.Strings()...) + } + + // ensure that both 32/64 outputs are inputs of the sdk snapshot + ensureListContains(t, inputs, armOutput.String()) + ensureListContains(t, inputs, arm64Output.String()) +} + var buildDir string func setUp() { |