diff options
Diffstat (limited to 'tests/no-rpath-prebuild.sh')
-rwxr-xr-x | tests/no-rpath-prebuild.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/no-rpath-prebuild.sh b/tests/no-rpath-prebuild.sh index 0fc96d2..d059dda 100755 --- a/tests/no-rpath-prebuild.sh +++ b/tests/no-rpath-prebuild.sh @@ -1,11 +1,13 @@ #! /bin/sh -e +set -x ARCH="$1" -SCRATCH=scratch/no-rpath-$ARCH if [ -z "$ARCH" ]; then ARCH=$(basename $0 .sh | sed -e 's/.*-//') fi +SCRATCH=scratch/no-rpath-$ARCH + if [ -z "$ARCH" ] || [ $ARCH = prebuild ] ; then echo "Architecture required" exit 1 @@ -34,8 +36,3 @@ if ! echo "$newRPath" | grep -q '/foo:/bar'; then echo "incomplete RPATH" exit 1 fi - -if [ "$(../src/patchelf --print-interpreter $no_rpath_bin)" \ - = "$(../src/patchelf --print-interpreter ../src/patchelf)" ]; then - cd ${SCRATCH} && ./no-rpath -fi |