diff options
author | 2023-01-04 17:12:24 -0800 | |
---|---|---|
committer | 2023-03-06 22:51:03 +0000 | |
commit | 598f92d7048b670c209977bf12c67d2c47d056a6 (patch) | |
tree | 8a71875b9f42b33dfdb23ab23ee1524a20d6d038 /java/java_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 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go index 05cc23e29..68b749b6d 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -615,6 +615,13 @@ func TestPrebuilts(t *testing.T) { android.AssertPathRelativeToTopEquals(t, "baz dex jar build path", expectedDexJar, bazDexJar) ctx.ModuleForTests("qux", "android_common").Rule("Cp") + + entries := android.AndroidMkEntriesForTest(t, ctx, fooModule.Module())[0] + android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "java_library", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0]) + entries = android.AndroidMkEntriesForTest(t, ctx, barModule.Module())[0] + android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "java_import", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0]) + entries = android.AndroidMkEntriesForTest(t, ctx, ctx.ModuleForTests("sdklib", "android_common").Module())[0] + android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "java_sdk_library_import", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0]) } func assertDeepEquals(t *testing.T, message string, expected interface{}, actual interface{}) { |