diff options
author | 2024-11-11 01:49:46 +0000 | |
---|---|---|
committer | 2024-11-11 01:49:46 +0000 | |
commit | a9965a346eba6bfdc34580124cd2fca9813f69e2 (patch) | |
tree | 9d49a0201e43556853befbff79affa89526beab9 /filesystem/filesystem_test.go | |
parent | d6c44cecfb325ec164c5773187a6a28db5562d8e (diff) | |
parent | 67118217ce5b17d5b48e3806595f3a62726a46cc (diff) |
Merge "Use common interface to build linker configuration" into main
Diffstat (limited to 'filesystem/filesystem_test.go')
-rw-r--r-- | filesystem/filesystem_test.go | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/filesystem/filesystem_test.go b/filesystem/filesystem_test.go index 801a17545..f284161c5 100644 --- a/filesystem/filesystem_test.go +++ b/filesystem/filesystem_test.go @@ -156,11 +156,15 @@ func TestFileSystemFillsLinkerConfigWithStubLibs(t *testing.T) { result := fixture.RunTestWithBp(t, ` android_system_image { name: "myfilesystem", + base_dir: "system", deps: [ "libfoo", "libbar", ], - linker_config_src: "linker.config.json", + linkerconfig: { + gen_linker_config: true, + linker_config_srcs: ["linker.config.json"], + }, } cc_library { @@ -176,7 +180,7 @@ func TestFileSystemFillsLinkerConfigWithStubLibs(t *testing.T) { `) module := result.ModuleForTests("myfilesystem", "android_common") - output := module.Output("system/etc/linker.config.pb") + output := module.Output("out/soong/.intermediates/myfilesystem/android_common/root/system/etc/linker.config.pb") android.AssertStringDoesContain(t, "linker.config.pb should have libfoo", output.RuleParams.Command, "libfoo.so") @@ -223,7 +227,10 @@ func TestFileSystemGathersItemsOnlyInSystemPartition(t *testing.T) { deps: ["foo"], }, }, - linker_config_src: "linker.config.json", + linkerconfig: { + gen_linker_config: true, + linker_config_srcs: ["linker.config.json"], + }, } component { name: "foo", @@ -318,7 +325,10 @@ func TestFileSystemWithCoverageVariants(t *testing.T) { deps: [ "libfoo", ], - linker_config_src: "linker.config.json", + linkerconfig: { + gen_linker_config: true, + linker_config_srcs: ["linker.config.json"], + }, } cc_library { @@ -700,8 +710,8 @@ android_filesystem { name: "myfilesystem", deps: ["libfoo_has_no_stubs", "libfoo_has_stubs"], linkerconfig: { - gen_linker_config: true, - linker_config_srcs: ["linker.config.json"], + gen_linker_config: true, + linker_config_srcs: ["linker.config.json"], }, partition_type: "vendor", } |