# Copyright (c) 2003, 2005, 2006 MySQL AB # Use is subject to license terms # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; version 2 # of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1335 USA
if [ ! -x ./ft-test-run.sh ] ; then echo"Usage: ./ft-test-run.sh"
exit 1 fi
if [ ! -d t/BEST ] ; then echo"No ./t/BEST directory! Aborting..."
exit 1 fi rm -f t/BEST/report.txt if [ -w $H ] ; then echo"$H is writeable! Aborting..."
exit 1 fi
stop_myslqd rm -rf var > /dev/null 2>&1
mkdir var
mkdir var/test
for batch in t/* ; do
[ ! -d $batch ] && continue
[ $batch -ef t/BEST -a $batch != t/BEST ] && continue
rm -rf var/test/* > /dev/null 2>&1 rm -f $H if [ -f $BASE/$batch/ftdefs.h ] ; then cat $BASE/$batch/ftdefs.h > $H
chmod a-wx $H else
bk get -q $H fi
OPTS="--defaults-file=$BASE/$batch/my.cnf --socket=$SOCK --character-sets-dir=$ROOT/sql/share/charsets"
stop_myslqd rm -f $MYSQLD echo"building $batch" echo"============== $batch ===============" >> var/ft_test.log
(cd $ROOT; gmake) >> var/ft_test.log 2>&1
for prog in $MYSQLD $MYSQL $MYSQLADMIN ; do if [ ! -x $prog ] ; then echo"build failed: no $prog"
exit 1 fi done