summaryrefslogtreecommitdiff
path: root/filesystem/filesystem_test.go
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2024-03-18 18:37:10 +0900
committer Jiyong Park <jiyong@google.com> 2024-03-20 17:05:17 +0900
commit8bcf3c64f17fafd86758523b8f660e79be3a44f8 (patch)
treee89ce003542d06a089dbe73334a680615ab079cc /filesystem/filesystem_test.go
parent8fb0e9734c84a4c819963f2e7c532a3198e5df94 (diff)
Add required, host_required, and target_required as dependencies
So far, the installation of required modules were handled by Make. This prevents us from implementing the module installation and packaging entirely in Soong. This CL is the first step towards that goal. Soong now correctly tracks the dependencies and they are correctly returned by TransitivePackagingSpecs(), which is used by packaging modules like android_system_image. Bug: 321626681 Test: build Change-Id: I9192b5333ceaa0b7d1c5c4abeec2af62febcd976
Diffstat (limited to 'filesystem/filesystem_test.go')
-rw-r--r--filesystem/filesystem_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/filesystem/filesystem_test.go b/filesystem/filesystem_test.go
index 6d62746ec..74c79e3bb 100644
--- a/filesystem/filesystem_test.go
+++ b/filesystem/filesystem_test.go
@@ -76,6 +76,11 @@ func TestFileSystemDeps(t *testing.T) {
cc_library {
name: "libbar",
+ required: ["libbaz"],
+ }
+
+ cc_library {
+ name: "libbaz",
}
`)
@@ -87,6 +92,7 @@ func TestFileSystemDeps(t *testing.T) {
"bin/foo",
"lib/libbar.so",
"lib64/libbar.so",
+ "lib64/libbaz.so",
"etc/bpf/bpf.o",
}
for _, e := range expected {