summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-09-30 23:04:25 (GMT)
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-09-30 23:04:25 (GMT)
commit58ec67927fb649a8325c016f04e050d17f787d66 (patch)
treea5d409ebedc6425a891445b136e37f8b3c8e0f69 /tests
parentc95131955924d63b2acd26fb9f0f04cdf38fed01 (diff)
downloadpatchelf-58ec67927fb649a8325c016f04e050d17f787d66.zip
patchelf-58ec67927fb649a8325c016f04e050d17f787d66.tar.gz
patchelf-58ec67927fb649a8325c016f04e050d17f787d66.tar.bz2
* `patchelf --set-rpath': short case.
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=$?