Export Soong module type to LOCAL_SOONG_MODULE_TYPE to Make for SBOM generation.
Bug: 266726655 Test: CI Change-Id: If5b1a77930a591b6061ca2749c9c5ad29b4491fb
This commit is contained in:
@@ -15,9 +15,10 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"android/soong/bazel/cquery"
|
||||
"testing"
|
||||
|
||||
"android/soong/bazel/cquery"
|
||||
|
||||
"android/soong/android"
|
||||
)
|
||||
|
||||
@@ -53,6 +54,9 @@ cc_binary {
|
||||
unStrippedFilePath := binMod.(*Module).UnstrippedOutputFile()
|
||||
expectedUnStrippedFile := "outputbase/execroot/__main__/foo.unstripped"
|
||||
android.AssertStringEquals(t, "Unstripped output file", expectedUnStrippedFile, unStrippedFilePath.String())
|
||||
|
||||
entries := android.AndroidMkEntriesForTest(t, ctx, binMod)[0]
|
||||
android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "cc_binary", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0])
|
||||
}
|
||||
|
||||
func TestCcBinaryWithBazelValidations(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user