diff options
Diffstat (limited to 'tests/soname.sh')
-rwxr-xr-x | tests/soname.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/soname.sh b/tests/soname.sh index 4a8fb96..683e481 100755 --- a/tests/soname.sh +++ b/tests/soname.sh @@ -1,29 +1,29 @@ #! /bin/sh -e -SCRATCH=scratch/$(basename $0 .sh) +SCRATCH=scratch/$(basename "$0" .sh) -rm -rf ${SCRATCH} -mkdir -p ${SCRATCH} +rm -rf "${SCRATCH}" +mkdir -p "${SCRATCH}" -cp libsimple.so ${SCRATCH}/ +cp libsimple.so "${SCRATCH}/" # set an initial DT_SONAME entry -../src/patchelf --set-soname libsimple.so.1.0 ${SCRATCH}/libsimple.so -newSoname=$(../src/patchelf --print-soname ${SCRATCH}/libsimple.so) +../src/patchelf --set-soname libsimple.so.1.0 "${SCRATCH}/libsimple.so" +newSoname=$(../src/patchelf --print-soname "${SCRATCH}/libsimple.so") if test "$newSoname" != libsimple.so.1.0; then echo "failed --set-soname test. Expected newSoname: libsimple.so.1.0, got: $newSoname" exit 1 fi # print DT_SONAME -soname=$(../src/patchelf --print-soname ${SCRATCH}/libsimple.so) +soname=$(../src/patchelf --print-soname "${SCRATCH}/libsimple.so") if test "$soname" != libsimple.so.1.0; then echo "failed --print-soname test. Expected soname: libsimple.so.1.0, got: $soname" exit 1 fi # replace DT_SONAME entry -../src/patchelf --set-soname libsimple.so.1.1 ${SCRATCH}/libsimple.so -newSoname=$(../src/patchelf --print-soname ${SCRATCH}/libsimple.so) +../src/patchelf --set-soname libsimple.so.1.1 "${SCRATCH}/libsimple.so" +newSoname=$(../src/patchelf --print-soname "${SCRATCH}/libsimple.so") if test "$newSoname" != libsimple.so.1.1; then echo "failed --set-soname test. Expected newSoname: libsimple.so.1.1, got: $newSoname" exit 1 |