diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-09-29 15:58:41 (GMT) |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-09-29 15:58:41 (GMT) |
commit | 64e3c5d087dc5c94bf2bc5698608daf546fdcf2d (patch) | |
tree | 36358d765ea090dd04bbf095dec5f0ca6378496b /tests | |
parent | a49db8e56956a9f3a53873977b49090bfc8025cd (diff) | |
download | patchelf-64e3c5d087dc5c94bf2bc5698608daf546fdcf2d.zip patchelf-64e3c5d087dc5c94bf2bc5698608daf546fdcf2d.tar.gz patchelf-64e3c5d087dc5c94bf2bc5698608daf546fdcf2d.tar.bz2 |
* Add an operation `--print-rpath' to print the RPATH of the library
or executable and exit.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/shrink.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/shrink.sh b/tests/shrink.sh index fe50346..563270f 100755 --- a/tests/shrink.sh +++ b/tests/shrink.sh @@ -1,8 +1,8 @@ #! /bin/sh -e -echo -n "RPATH before: " -readelf -a ./libfoo.so | grep RPATH -if ! readelf -a ./libfoo.so | grep RPATH | grep -q /no-such-path; then +rpath=$(../src/patchelf --print-rpath ./libfoo.so) +echo "RPATH before: $rpath" +if ! echo "$rpath" | grep -q /no-such-path; then echo "incomplete RPATH" exit 1 fi @@ -12,10 +12,10 @@ mkdir -p scratch cp libfoo.so scratch/ ../src/patchelf --shrink-rpath scratch/libfoo.so -echo -n "RPATH after: " -readelf -a scratch/libfoo.so | grep RPATH -if readelf -a scratch/libfoo.so | grep RPATH | grep -q /no-such-path; then - echo "incomplete RPATH" +rpath=$(../src/patchelf --print-rpath scratch/libfoo.so) +echo "RPATH after: $rpath" +if echo "$rpath" | grep -q /no-such-path; then + echo "RPATH not shrunk" exit 1 fi |