diff options
author | 2023-01-04 17:12:24 -0800 | |
---|---|---|
committer | 2023-03-06 22:51:03 +0000 | |
commit | 598f92d7048b670c209977bf12c67d2c47d056a6 (patch) | |
tree | 8a71875b9f42b33dfdb23ab23ee1524a20d6d038 /cc/prebuilt_test.go | |
parent | edec71adae47232e967d3ba8f1a6a1c78afcee90 (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/prebuilt_test.go')
-rw-r--r-- | cc/prebuilt_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/prebuilt_test.go b/cc/prebuilt_test.go index 405680c39..e3ec9d5d4 100644 --- a/cc/prebuilt_test.go +++ b/cc/prebuilt_test.go @@ -169,6 +169,11 @@ func TestPrebuilt(t *testing.T) { if !hasDep(crtx, prebuiltCrtx) { t.Errorf("crtx missing dependency on prebuilt_crtx") } + + entries := android.AndroidMkEntriesForTest(t, ctx, prebuiltLiba)[0] + android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "cc_prebuilt_library_shared", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0]) + entries = android.AndroidMkEntriesForTest(t, ctx, prebuiltLibb)[0] + android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "cc_prebuilt_library_static", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0]) } func TestPrebuiltLibraryShared(t *testing.T) { |