summaryrefslogtreecommitdiff
path: root/etc/install_symlink_test.go
diff options
context:
space:
mode:
author Satish Yalla <satishy@google.com> 2024-09-30 07:04:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-09-30 07:04:13 +0000
commit43b2454eee86e543f901db6ea77d90673fd77adc (patch)
treee6987f8655bcd1f07f8bf900c40a7617c1385149 /etc/install_symlink_test.go
parente3ddc3d81aac687edd07f44647f49967a7ff9f5a (diff)
parent559356d013cf118a4c1a6c3d1b5cf55a563c32fd (diff)
Merge "Revert "Add install_symlink_host Soong module type"" into main
Diffstat (limited to 'etc/install_symlink_test.go')
-rw-r--r--etc/install_symlink_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/etc/install_symlink_test.go b/etc/install_symlink_test.go
index 2662868c6..d7165e5de 100644
--- a/etc/install_symlink_test.go
+++ b/etc/install_symlink_test.go
@@ -133,33 +133,3 @@ func TestErrorOnInstalledPathStartingWithSlash(t *testing.T) {
}
`)
}
-
-func TestInstallSymlinkHostBasic(t *testing.T) {
- result := prepareForInstallSymlinkTest.RunTestWithBp(t, `
- install_symlink_host {
- name: "foo",
- installed_location: "bin/foo",
- symlink_target: "folder/foo-realpath",
- }
- `)
-
- foo_variants := result.ModuleVariantsForTests("foo")
- if len(foo_variants) != 1 {
- t.Fatalf("expected 1 variant, got %#v", foo_variants)
- }
-
- foo := result.ModuleForTests("foo", "linux_glibc_common").Module()
- androidMkEntries := android.AndroidMkEntriesForTest(t, result.TestContext, foo)
- if len(androidMkEntries) != 1 {
- t.Fatalf("expected 1 androidmkentry, got %d", len(androidMkEntries))
- }
-
- symlinks := androidMkEntries[0].EntryMap["LOCAL_SOONG_INSTALL_SYMLINKS"]
- if len(symlinks) != 1 {
- t.Fatalf("Expected 1 symlink, got %d", len(symlinks))
- }
-
- if !strings.HasSuffix(symlinks[0], "host/linux-x86/bin/foo") {
- t.Fatalf("Expected symlink install path to end in ost/linux-x86/bin/foo, got: %s", symlinks[0])
- }
-}