summaryrefslogtreecommitdiff
path: root/apex/apex_test.go
diff options
context:
space:
mode:
author Wei Li <weiwli@google.com> 2022-11-08 16:01:05 -0800
committer Wei Li <weiwli@google.com> 2022-11-11 22:46:33 +0000
commit78c07de1dc31d03bf107a04f638a4f04551837d6 (patch)
treeabeac1ef5c5f3de175b3b78fd56d6d416ea1db2d /apex/apex_test.go
parent35b83adeae07b5dd6eec6b4bf5183443b8270325 (diff)
Add support of <APEX>-installed-files.txt in mixed build.
Bug: 239084750 Test: CIs Change-Id: Ie3823d1a620c3924111e71aa97df727565261c98
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r--apex/apex_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go
index 985ad591f..ea3e73470 100644
--- a/apex/apex_test.go
+++ b/apex/apex_test.go
@@ -9775,6 +9775,7 @@ apex {
SymbolsUsedByApex: "foo_using.txt",
JavaSymbolsUsedByApex: "foo_using.xml",
BundleFile: "apex_bundle.zip",
+ InstalledFiles: "installed-files.txt",
// unused
PackageName: "pkg_name",
@@ -9820,6 +9821,10 @@ apex {
t.Errorf("Expected output file %q, got %q", w, g)
}
+ if w, g := "out/bazel/execroot/__main__/installed-files.txt", ab.installedFilesFile.String(); w != g {
+ t.Errorf("Expected installed-files.txt %q, got %q", w, g)
+ }
+
mkData := android.AndroidMkDataForTest(t, result.TestContext, m)
var builder strings.Builder
mkData.Custom(&builder, "foo", "BAZEL_TARGET_", "", mkData)
@@ -9828,4 +9833,7 @@ apex {
if w := "ALL_MODULES.$(my_register_name).BUNDLE := out/bazel/execroot/__main__/apex_bundle.zip"; !strings.Contains(data, w) {
t.Errorf("Expected %q in androidmk data, but did not find %q", w, data)
}
+ if w := "$(call dist-for-goals,checkbuild,out/bazel/execroot/__main__/installed-files.txt:foo-installed-files.txt)"; !strings.Contains(data, w) {
+ t.Errorf("Expected %q in androidmk data, but did not find %q", w, data)
+ }
}