Skip to content
Snippets Groups Projects
Commit 4b0695c7 authored by bwzhou's avatar bwzhou
Browse files

Branch b1_6

b=13285
r=johann, deen

Uses ldd to figure out which libs need to be copied and works for 64 bit ppc SLES9 systems
parent cb7f552e
No related branches found
No related tags found
No related merge requests found
......@@ -2950,18 +2950,15 @@ test_71() {
[ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
SRC=$DBENCH_LIB/client_plain.txt
[ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
echo "copying necessary lib to $DIR"
[ -d /lib64 ] && LIB71=/lib64 || LIB71=/lib
mkdir -p $DIR$LIB71 || error "can't create $DIR$LIB71"
cp $LIB71/libc* $DIR$LIB71 || error "can't copy $LIB71/libc*"
cp $LIB71/ld-* $DIR$LIB71 || error "can't create $LIB71/ld-*"
echo "copying necessary libs to $DIR"
LIBS71=$(ldd $DIR/dbench|sed -e 's/\t*//' -e 's/.*=> //' -e 's/ .*//' -e 's/^\///')
(cd / && tar chf - $LIBS71) | (cd $DIR && tar xf -)
[ $? = 0 ] || error "can't copy libs"
echo "chroot $DIR /dbench -c client.txt 2"
chroot $DIR /dbench -c client.txt 2
RC=$?
rm -rf $DIR/dbench $TGT $DIR$LIB71
rm -rf $DIR/dbench $DIR/lib $DIR/lib64
return $RC
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment