Skip to content

Commit 1d246ac

Browse files
committed
Make sure swiftlang/swift#34023, which removes /usr/lib/swift/linux from the RUNPATH of several Swift libraries, stays that way.
1 parent 3ceb61d commit 1d246ac

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

test-snapshot-binaries/test-rpath-linux-repl.py

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Tests that DT_RPATH is correct for the dummy repl executable on Linux.
2+
# REQUIRES: platform=Linux
3+
# RUN: %{readelf} -d %{repl_swift} | %{FileCheck} %s
4+
# CHECK: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}$ORIGIN/../lib/swift/linux
5+
#
6+
# Tests that DT_RUNPATH is correct for the Swift stdlib and other libraries on Linux.
7+
# RUN: %{readelf} -d %{package_path}/usr/lib/swift/linux/libswiftCore.so | %{FileCheck} --check-prefix CHECK-CORE %s
8+
# CHECK-CORE: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN]
9+
#
10+
# RUN: %{readelf} -d %{package_path}/usr/lib/libsourcekitdInProc.so | %{FileCheck} --check-prefix CHECK-SK %s
11+
# CHECK-SK: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN/../lib/swift/linux]
12+
#
13+
# RUN: %{readelf} -d %{package_path}/usr/lib/swift/linux/libswiftRemoteMirror.so | %{FileCheck} --check-prefix CHECK-RM %s
14+
# CHECK-RM: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN]
15+
#
16+
# RUN: %{readelf} -d %{package_path}/usr/lib/swift/linux/libswift_Differentiation.so | %{FileCheck} --check-prefix CHECK-SD %s
17+
# CHECK-SD: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN]
18+
#
19+
# RUN: %{readelf} -d %{package_path}/usr/lib/swift/linux/lib_InternalSwiftSyntaxParser.so | %{FileCheck} --check-prefix CHECK-SP %s
20+
# CHECK-SP: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN]
21+
#
22+
# RUN: %{readelf} -d %{package_path}/usr/lib/swift/linux/libswiftGlibc.so | %{FileCheck} --check-prefix CHECK-SG %s
23+
# CHECK-SG: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN]
24+
#
25+
# RUN: %{readelf} -d %{package_path}/usr/lib/swift/linux/libswiftSwiftOnoneSupport.so | %{FileCheck} --check-prefix CHECK-SON %s
26+
# CHECK-SON: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN]
27+
#
28+
# RUN: %{readelf} -d %{package_path}/usr/lib/libswiftDemangle.so | %{FileCheck} --check-prefix CHECK-SDE %s
29+
# CHECK-SDE: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}[$ORIGIN]

0 commit comments

Comments
 (0)