From 598f92d7048b670c209977bf12c67d2c47d056a6 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Wed, 4 Jan 2023 17:12:24 -0800 Subject: Export Soong module type to LOCAL_SOONG_MODULE_TYPE to Make for SBOM generation. Bug: 266726655 Test: CI Change-Id: If5b1a77930a591b6061ca2749c9c5ad29b4491fb --- apex/apex_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apex/apex_test.go') diff --git a/apex/apex_test.go b/apex/apex_test.go index 707cc632a..1f33eca70 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -4809,6 +4809,9 @@ func TestPrebuilt(t *testing.T) { android.AssertStringEquals(t, "Invalid output", "out/soong/.intermediates/provenance_metadata/myapex/provenance_metadata.textproto", rule.Output.String()) android.AssertStringEquals(t, "Invalid args", "myapex", rule.Args["module_name"]) android.AssertStringEquals(t, "Invalid args", "/system/apex/myapex.apex", rule.Args["install_path"]) + + entries := android.AndroidMkEntriesForTest(t, ctx, testingModule.Module())[0] + android.AssertStringEquals(t, "unexpected LOCAL_SOONG_MODULE_TYPE", "prebuilt_apex", entries.EntryMap["LOCAL_SOONG_MODULE_TYPE"][0]) } func TestPrebuiltMissingSrc(t *testing.T) { -- cgit v1.2.3-59-g8ed1b