Separate out module type specific test config
Bug: 143678475
Test: m conscrypt-module-sdk
Change-Id: I71433a7c89dfae4c27537f1f66bd677cf9fba0b3
diff --git a/sdk/cc_sdk_test.go b/sdk/cc_sdk_test.go
index 96d321d..315669a 100644
--- a/sdk/cc_sdk_test.go
+++ b/sdk/cc_sdk_test.go
@@ -20,10 +20,22 @@
"android/soong/cc"
)
+func testSdkWithCc(t *testing.T, bp string) *testSdkResult {
+ t.Helper()
+
+ fs := map[string][]byte{
+ "Test.cpp": nil,
+ "include/Test.h": nil,
+ "libfoo.so": nil,
+ "aidl/foo/bar/Test.aidl": nil,
+ }
+ return testSdkWithFs(t, bp, fs)
+}
+
// Contains tests for SDK members provided by the cc package.
func TestSdkIsCompileMultilibBoth(t *testing.T) {
- result := testSdk(t, `
+ result := testSdkWithCc(t, `
sdk {
name: "mysdk",
native_shared_libs: ["sdkmember"],
@@ -54,7 +66,7 @@
}
func TestBasicSdkWithCc(t *testing.T) {
- result := testSdk(t, `
+ result := testSdkWithCc(t, `
sdk {
name: "mysdk",
native_shared_libs: ["sdkmember"],
@@ -131,7 +143,7 @@
}
func TestSnapshotWithCcShared(t *testing.T) {
- result := testSdk(t, `
+ result := testSdkWithCc(t, `
sdk {
name: "mysdk",
native_shared_libs: ["mynativelib"],
@@ -226,7 +238,7 @@
// b/145598135 - Generating host snapshots for anything other than linux is not supported.
SkipIfNotLinux(t)
- result := testSdk(t, `
+ result := testSdkWithCc(t, `
sdk {
name: "mysdk",
device_supported: false,