diff options
| author | 2023-02-27 00:41:34 +0000 | |
|---|---|---|
| committer | 2023-02-27 00:41:34 +0000 | |
| commit | 8ecedd4dfc3ccd1c2a4c384e9a6de3906a33a1b4 (patch) | |
| tree | 98c08a4b6a23374f844ab2c7d6e8c49066c4a9ad /filesystem/filesystem_test.go | |
| parent | 2760e81c8292c68a215dfa461ecb882e402254bf (diff) | |
| parent | 54f780505dadcd3f6760699ca6475c6798cd740c (diff) | |
Merge "Prevent sdk variants from install"
Diffstat (limited to 'filesystem/filesystem_test.go')
| -rw-r--r-- | filesystem/filesystem_test.go | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/filesystem/filesystem_test.go b/filesystem/filesystem_test.go index 444ffd0aa..a65d9dd5f 100644 --- a/filesystem/filesystem_test.go +++ b/filesystem/filesystem_test.go @@ -188,3 +188,40 @@ func TestAvbAddHashFooter(t *testing.T) { android.AssertStringDoesContain(t, "Can't find --include_descriptors_from_image", cmd, "--include_descriptors_from_image ") } + +func TestFileSystemShouldInstallCoreVariantIfTargetBuildAppsIsSet(t *testing.T) { + context := android.GroupFixturePreparers( + fixture, + android.FixtureModifyProductVariables(func(variables android.FixtureProductVariables) { + variables.Unbundled_build_apps = []string{"bar"} + }), + ) + result := context.RunTestWithBp(t, ` + android_system_image { + name: "myfilesystem", + deps: [ + "libfoo", + ], + linker_config_src: "linker.config.json", + } + + cc_library { + name: "libfoo", + shared_libs: [ + "libbar", + ], + stl: "none", + } + + cc_library { + name: "libbar", + sdk_version: "9", + stl: "none", + } + `) + + inputs := result.ModuleForTests("myfilesystem", "android_common").Output("deps.zip").Implicits + android.AssertStringListContains(t, "filesystem should have libbar even for unbundled build", + inputs.Strings(), + "out/soong/.intermediates/libbar/android_arm64_armv8-a_shared/libbar.so") +} |