summaryrefslogtreecommitdiffstats
path: root/testsuite/test00.sh
blob: 8c54dd6ddaef38272b5e9189ba607994c3ec0b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
rm -f prelink.cache
rm -f test00 lib00*.so test00.log
i=10
while [ $i -lt 74 ]; do
  $CXX -shared -fpic -o lib00$i.so $srcdir/lib00.C
  i=`expr $i + 1`
done
$CXXLINK -o test00 $srcdir/test00.C lib00*.so
echo $PRELINK -vR ./test00 > test00.log
$PRELINK -vR ./test00 >> test00.log 2>&1 || exit 1
LD_LIBRARY_PATH=. ./test00 || exit 2
# So that it is not prelinked again
chmod -x ./test00