summaryrefslogtreecommitdiff
path: root/filesystem/filesystem_test.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-11-01 16:57:47 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-11-01 16:57:47 +0000
commitb6d77bf6b7efd9850aa5587a805a173e143ee5cf (patch)
treefdbab4ce0df22cae03a1145e377d75958ab16789 /filesystem/filesystem_test.go
parentafd8aacf5850899cf7ae5bf8d7b88135d6e5fc6a (diff)
parent8fe68dcfd71efa99aebf7f5ef2f3b19d78621a24 (diff)
Merge changes from topic "linker_config_product_soong" into main
* changes: Create linker_config_srcs for autogenerated product partition Dedupe logic to generate linker.config.pb
Diffstat (limited to 'filesystem/filesystem_test.go')
-rw-r--r--filesystem/filesystem_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/filesystem/filesystem_test.go b/filesystem/filesystem_test.go
index cb27f6464..8fe5daca0 100644
--- a/filesystem/filesystem_test.go
+++ b/filesystem/filesystem_test.go
@@ -670,18 +670,21 @@ func TestInstallLinkerConfigFile(t *testing.T) {
android_filesystem {
name: "myfilesystem",
deps: ["libfoo_has_no_stubs", "libfoo_has_stubs"],
- linker_config_srcs: ["linker.config.json"]
+ linker_config_srcs: ["linker.config.json"],
+ partition_type: "vendor",
}
cc_library {
name: "libfoo_has_no_stubs",
+ vendor: true,
}
cc_library {
name: "libfoo_has_stubs",
stubs: {symbol_file: "libfoo.map.txt"},
+ vendor: true,
}
`)
linkerConfigCmd := result.ModuleForTests("myfilesystem", "android_common").Rule("build_filesystem_image").RuleParams.Command
- android.AssertStringDoesContain(t, "", linkerConfigCmd, "conv_linker_config proto --force -s linker.config.json")
- android.AssertStringDoesContain(t, "", linkerConfigCmd, "--key provideLibs --value libfoo_has_stubs.so")
+ android.AssertStringDoesContain(t, "Could not find linker.config.json file in cmd", linkerConfigCmd, "conv_linker_config proto --force -s linker.config.json")
+ android.AssertStringDoesContain(t, "Could not find stub in `provideLibs`", linkerConfigCmd, "--key provideLibs --value libfoo_has_stubs.so")
}