summaryrefslogtreecommitdiff
path: root/cc/library_test.go
diff options
context:
space:
mode:
author Wei Li <weiwli@google.com> 2023-01-04 17:12:24 -0800
committer Wei Li <weiwli@google.com> 2023-03-06 22:51:03 +0000
commit598f92d7048b670c209977bf12c67d2c47d056a6 (patch)
tree8a71875b9f42b33dfdb23ab23ee1524a20d6d038 /cc/library_test.go
parentedec71adae47232e967d3ba8f1a6a1c78afcee90 (diff)
Export Soong module type to LOCAL_SOONG_MODULE_TYPE to Make for SBOM generation.
Bug: 266726655 Test: CI Change-Id: If5b1a77930a591b6061ca2749c9c5ad29b4491fb
Diffstat (limited to 'cc/library_test.go')
-rw-r--r--cc/library_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/library_test.go b/cc/library_test.go
index de3db99db..dbe2be899 100644
--- a/cc/library_test.go
+++ b/cc/library_test.go
@@ -464,6 +464,7 @@ cc_library_shared {
expectedFlags := []string{"-Ioutputbase/execroot/__main__/include", "-isystem outputbase/execroot/__main__/system_include"}
gotFlags := entries.EntryMap["LOCAL_EXPORT_CFLAGS"]
android.AssertDeepEquals(t, "androidmk exported cflags", expectedFlags, gotFlags)
+ android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "cc_library_shared", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0])
}
func TestCcLibrarySharedWithBazel(t *testing.T) {
@@ -510,6 +511,7 @@ cc_library_shared {
expectedFlags := []string{"-Ioutputbase/execroot/__main__/include", "-isystem outputbase/execroot/__main__/system_include"}
gotFlags := entries.EntryMap["LOCAL_EXPORT_CFLAGS"]
android.AssertDeepEquals(t, "androidmk exported cflags", expectedFlags, gotFlags)
+ android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "cc_library_shared", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0])
}
func TestWholeStaticLibPrebuilts(t *testing.T) {