summaryrefslogtreecommitdiff
path: root/tests/endianness.sh
diff options
context:
space:
mode:
authorBreno Rodrigues GuimarĂ£es <brenorg@gmail.com>2023-02-23 22:07:41 -0300
committerGitHub <noreply@github.com>2023-02-23 22:07:41 -0300
commit70a477a252420c3f6a2e8e8d4c63d557df4b7f46 (patch)
treea68dce23c94fe6250b8f3dc3c7ab8ada895e4d84 /tests/endianness.sh
parentafca68f86aa021c5cb991bb810db71eb6af89155 (diff)
parent69a7ae54d27513d7553b4d8bd77ade017e674e22 (diff)
downloadpatchelf-70a477a252420c3f6a2e8e8d4c63d557df4b7f46.tar.gz
Merge branch 'NixOS:master' into breno.457
Diffstat (limited to 'tests/endianness.sh')
-rwxr-xr-xtests/endianness.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/endianness.sh b/tests/endianness.sh
index 4f84a08..fc2994b 100755
--- a/tests/endianness.sh
+++ b/tests/endianness.sh
@@ -1,23 +1,23 @@
#! /bin/sh -e
-SCRATCH=scratch/$(basename $0 .sh)
+SCRATCH=scratch/$(basename "$0" .sh)
PATCHELF="../src/patchelf"
for arch in ppc64 ppc64le; do
- rm -rf ${SCRATCH}
- mkdir -p ${SCRATCH}
+ rm -rf "${SCRATCH}"
+ mkdir -p "${SCRATCH}"
- cp ${srcdir}/endianness/${arch}/main ${srcdir}/endianness/${arch}/libtest.so ${SCRATCH}/
+ cp "${srcdir}/endianness/${arch}/main" "${srcdir}/endianness/${arch}/libtest.so" "${SCRATCH}/"
rpath="${PWD}/${SCRATCH}"
# set rpath to scratch dir
- ${PATCHELF} --output ${SCRATCH}/main-rpath --set-rpath $rpath ${SCRATCH}/main
+ ${PATCHELF} --output "${SCRATCH}/main-rpath" --set-rpath "$rpath" "${SCRATCH}/main"
# attempt to shrink rpath, should not result in empty rpath
- ${PATCHELF} --output ${SCRATCH}/main-shrunk --shrink-rpath --debug ${SCRATCH}/main-rpath
+ ${PATCHELF} --output "${SCRATCH}/main-shrunk" --shrink-rpath --debug "${SCRATCH}/main-rpath"
# check whether rpath is still present
- if ! ${PATCHELF} --print-rpath ${SCRATCH}/main-shrunk | grep -q "$rpath"; then
+ if ! ${PATCHELF} --print-rpath "${SCRATCH}/main-shrunk" | grep -q "$rpath"; then
echo "rpath was removed for ${arch}"
exit 1
fi