diff options
author | 2024-10-31 19:29:58 +0000 | |
---|---|---|
committer | 2024-10-31 19:29:58 +0000 | |
commit | 3ab5fcd266917104f7425323f6b5c1b7c42cdf1a (patch) | |
tree | 9bb5df15c1c3d76d03ae57e664d1aefae6ae2c13 /filesystem/filesystem_test.go | |
parent | 33b1010060cb9cd9d1e4ca77c8ac16f4655e2b36 (diff) | |
parent | 312cc4116281539b6c64edf02bc72cde9175c807 (diff) |
Merge changes from topic "vendor_linker_config_soong" into main
* changes:
Create linker_config_srcs for autogenerated vendor partition
Add linker.config.pb support to android_filesystem
Diffstat (limited to 'filesystem/filesystem_test.go')
-rw-r--r-- | filesystem/filesystem_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/filesystem/filesystem_test.go b/filesystem/filesystem_test.go index 730006116..cb27f6464 100644 --- a/filesystem/filesystem_test.go +++ b/filesystem/filesystem_test.go @@ -664,3 +664,24 @@ cc_library { fileList := android.ContentFromFileRuleForTests(t, result.TestContext, partition.Output("fileList")) android.AssertDeepEquals(t, "Shared library dep of overridden binary should not be installed", fileList, "bin/binfoo1\nlib64/libc++.so\nlib64/libc.so\nlib64/libdl.so\nlib64/libfoo2.so\nlib64/libm.so\n") } + +func TestInstallLinkerConfigFile(t *testing.T) { + result := fixture.RunTestWithBp(t, ` +android_filesystem { + name: "myfilesystem", + deps: ["libfoo_has_no_stubs", "libfoo_has_stubs"], + linker_config_srcs: ["linker.config.json"] +} +cc_library { + name: "libfoo_has_no_stubs", +} +cc_library { + name: "libfoo_has_stubs", + stubs: {symbol_file: "libfoo.map.txt"}, +} + `) + + 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") +} |