summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-18 10:40:15 (GMT)
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-18 10:40:15 (GMT)
commit2ca39b80600b856f2ae10d253e2088f1714508d3 (patch)
tree888e7250bb4a9a3ec634d66c51d54fe6b012ac45 /tests
parentb3283bd6e332213a942f0e49c0da2dc52c556a1c (diff)
downloadpatchelf-2ca39b80600b856f2ae10d253e2088f1714508d3.zip
patchelf-2ca39b80600b856f2ae10d253e2088f1714508d3.tar.gz
patchelf-2ca39b80600b856f2ae10d253e2088f1714508d3.tar.bz2
no-rpath-prebuild.sh: Don't run resulting binary
This leads to numerous build failures: http://hydra.nixos.org/eval/1136585 because ELF interpreter names are not unique (e.g. ld-linux.so.2 is used on systems other than i686-linux).
Diffstat (limited to 'tests')
-rwxr-xr-xtests/no-rpath-prebuild.sh9
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