Skip to content

Commit 5463f43

Browse files
authored
Merge pull request #145 from finagolfin/rpath
Update checked linux rpath to disallow `/opt/`
2 parents b371348 + 9b6aebc commit 5463f43

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ swift-project.
1111

1212
Run the tests using:
1313

14-
sh ./litTest -sv --param package-path=/path/to/downloadable-package .
14+
sh ./litTest -sv --param package-path=/path/to/downloadable-package --param llvm-bin-dir=/usr/bin .
1515

16-
where the path is the unarchived package root path.
16+
where the first path is the unarchived package root path and the second has LLVM
17+
utilities like `FileCheck`.
1718

1819
Tests
1920
-----

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

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
#
4343
# RUN: find %{package_path} -name "lib*\.so" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-LIB %s
4444
# CHECK-LIB-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/
45+
# CHECK-LIB-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/opt/
4546
#
4647
# RUN: find %{package_path}/usr/bin -type f | grep -Ev "\.py|\.txt|\.sh|\.cfg" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-BIN %s
4748
# CHECK-BIN-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/
49+
# CHECK-BIN-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/opt/

0 commit comments

Comments
 (0)