summaryrefslogtreecommitdiffstats
path: root/trunk/testsuite/shuffle9.sh
blob: 5768890f9f8edefe541df1077f4c0b51843b3f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
. `dirname $0`/functions.sh
# Kernels before 2.4.10 are known not to work
case "`uname -r`" in
  [01].*|2.[0-3].*|2.4.[0-9]|2.4.[0-9][^0-9]*) exit 77;;
esac
rm -f shuffle9 shuffle9.log
BINS="shuffle9"
$CCLINK -o shuffle9 $srcdir/shuffle9.c -Wl,--rpath-link,. shuffle3lib2.so
savelibs
echo $PRELINK ${PRELINK_OPTS--vm} ./shuffle9 > shuffle9.log
$PRELINK ${PRELINK_OPTS--vm} ./shuffle9 >> shuffle9.log 2>&1 || exit 1
grep -q ^`echo $PRELINK | sed 's/ .*$/: /'` shuffle9.log && exit 2
LD_LIBRARY_PATH=. ./shuffle9 || exit 3
readelf -a ./shuffle9 >> shuffle9.log 2>&1 || exit 4
# So that it is not prelinked again
chmod -x ./shuffle9
comparelibs >> shuffle9.log 2>&1 || exit 5