aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-01-12 11:47:57 -0500
committerXavier Claessens <xclaesse@gmail.com>2022-03-07 09:27:02 -0500
commit01e92dc543fb7443fba8a33687ffd726f11433e8 (patch)
tree6d5bc574ff198d35aae363baab191f759cbceac6 /unittests
parent219f40c1e4689060f3c299edd463fc5f5a625608 (diff)
downloadmeson-01e92dc543fb7443fba8a33687ffd726f11433e8.zip
meson-01e92dc543fb7443fba8a33687ffd726f11433e8.tar.gz
meson-01e92dc543fb7443fba8a33687ffd726f11433e8.tar.bz2
Fix default install tag for shared lib symlinks
Versioned shared libraries should have .so file in devel, .so.1 and .so.1.2.3 in runtime. Fixes: #9811
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 3eea9a3..665e0c6 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -3886,10 +3886,12 @@ class AllPlatformTests(BasePlatformTests):
Path(installpath, 'usr/bin/both2.pdb'),
Path(installpath, 'usr/bin/bothcustom.pdb'),
Path(installpath, 'usr/bin/shared.pdb'),
+ Path(installpath, 'usr/bin/versioned_shared-1.pdb'),
Path(installpath, 'usr/lib/both.lib'),
Path(installpath, 'usr/lib/both2.lib'),
Path(installpath, 'usr/lib/bothcustom.lib'),
Path(installpath, 'usr/lib/shared.lib'),
+ Path(installpath, 'usr/lib/versioned_shared.lib'),
}
elif is_windows() or is_cygwin():
expected_devel |= {
@@ -3897,6 +3899,11 @@ class AllPlatformTests(BasePlatformTests):
Path(installpath, 'usr/lib/libboth2.dll.a'),
Path(installpath, 'usr/lib/libshared.dll.a'),
Path(installpath, 'usr/lib/libbothcustom.dll.a'),
+ Path(installpath, 'usr/lib/libversioned_shared.dll.a'),
+ }
+ else:
+ expected_devel |= {
+ Path(installpath, 'usr/' + shared_lib_name('versioned_shared')),
}
expected_runtime = expected_common | {
@@ -3908,6 +3915,20 @@ class AllPlatformTests(BasePlatformTests):
Path(installpath, 'usr/' + shared_lib_name('both2')),
}
+ if is_windows() or is_cygwin():
+ expected_runtime |= {
+ Path(installpath, 'usr/' + shared_lib_name('versioned_shared-1')),
+ }
+ elif is_osx():
+ expected_runtime |= {
+ Path(installpath, 'usr/' + shared_lib_name('versioned_shared.1')),
+ }
+ else:
+ expected_runtime |= {
+ Path(installpath, 'usr/' + shared_lib_name('versioned_shared') + '.1'),
+ Path(installpath, 'usr/' + shared_lib_name('versioned_shared') + '.1.2.3'),
+ }
+
expected_custom = expected_common | {
Path(installpath, 'usr/share'),
Path(installpath, 'usr/share/bar-custom.txt'),