summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am2
-rwxr-xr-xtests/set-rpath.sh13
2 files changed, 7 insertions, 8 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 45d8c16..ccd86dd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,7 +1,7 @@
check_PROGRAMS = main simple
TESTS = plain-run.sh shrink.sh set-interpreter-short.sh \
- set-interpreter-long.sh $(XFAIL_TESTS) # set-rpath.sh
+ set-interpreter-long.sh set-rpath.sh $(XFAIL_TESTS)
XFAIL_TESTS = plain-fail.sh
diff --git a/tests/set-rpath.sh b/tests/set-rpath.sh
index e3c3fe4..6446395 100755
--- a/tests/set-rpath.sh
+++ b/tests/set-rpath.sh
@@ -1,17 +1,16 @@
#! /bin/sh -e
-oldInterpreter=$(../src/patchelf --print-interpreter ./simple)
-echo "current interpreter is $oldInterpreter"
-
rm -rf scratch
mkdir -p scratch
+mkdir -p scratch/libsA
+mkdir -p scratch/libsB
cp main scratch/
-cp libfoo.so scratch/
-cp libbar.so scratch/
+cp libfoo.so scratch/libsA/
+cp libbar.so scratch/libsB/
-../src/patchelf --set-rpath $(pwd)/scratch scratch/main
-../src/patchelf --set-rpath $(pwd)/scratch scratch/libfoo.so
+../src/patchelf --set-rpath $(pwd)/scratch/libsA scratch/main
+../src/patchelf --set-rpath $(pwd)/scratch/libsB scratch/libsA/libfoo.so
exitCode=0
scratch/main || exitCode=$?